Quiz

Time to test your fundamental knowledge!

Question 1

Will the following code compile?

Question 2

Label each of the following numerical values with their number bases (decimal, octal, binary or hexadecimal) by filling in the blanks:

57 is
0o10 is
0x40 is
0b1010 is

Question 3

What is the printed output of the following code?

Question 4

Will the following code compile?

Question 5

Fill in the missing upper bound of the for loop so that the main function prints the five times table up to 60.