WorksheetsCodeHS 5.9 Binary
Total questions: 10
Worksheet time: 8mins
Using eight bits, write the decimal number 132 in binary.
(a)
Write the binary number 00110110 in decimal
(a)
Write the lowest possible value for an int in any version of Java
(a)
Write the highest possible value for an int in any version Java
(a)
What happens in Java when an integer variable is incremented higher than the highest possible int?
it wraps around to the lowest possible int
it stops at the maximum value
it is converted to a long by late binding
it is converted to a double by late binding
Chef Brian gives you free lunch
What happens in Java when an integer variable is decremented lower than the lowest possible int?
it wraps around to the highest possible int
it stops at the minimum value
it is converted to a long by late binding
it is converted to a double by late binding
Mr. Borowski eats your lunch
Which of these are hexadecimal digits?
F
G
6
0
H
What is the decimal number 12 in octal?
(a)
What is the decimal equivalent of the binary number 1111?
7
8
9
15
