A merican school of ulaanbaatar ap computer science principals mock exam questions


Give two reasons why this IP address is invalid. 1


Download 33.28 Kb.
bet2/2
Sana30.04.2023
Hajmi33.28 Kb.
#1403276
1   2
Bog'liq
MOCK TEST

12.258.3
Give two reasons why this IP address is invalid.
1................................................................................................................................................................................................................................................................................................................................................................................................
2................................................................................................................................................................................................................................................................................................................................................................................................
10. The following table shows four IPv6 addresses. State if each address is valid or invalid.

1 1. Draw a flowchart to reads two values, determines the largest value and prints the largest value with an identifying message.


1 2. Draw a flowchart to compute the area of a circle of Radius R. Use from formula

13. Insert the missing part of the code below to output "Hello World".



14. Find the error from this code and give your explanation
System.out.println( This sentence will produce an error);
………………………………………………………………………………………………………………………………………………….………………………………………………………………………………………………………………………………………………………………………………………………………………………………….
1 5. Create a variable named carName and assign the value Volvo to it.

1 6. Add the correct data type for the following variables:

17. Use the correct method to find the square root of x.

18. Print "1" if x is equal to y, print "2" if x is greater than y, otherwise print "3".

19. Use a for loop to print "Yes" 5 times:



2 0. Change the value from "Volvo" to "Opel", in the cars array.
Download 33.28 Kb.

Do'stlaringiz bilan baham:
1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling