Binary, hex and characters
Answers are for parents and teachers.
1
Fill in the table of values: 5 bits give ___ values (0 to ___), and 10 bits give ___ values.
5 bits: 32 values (0 to 31); 10 bits: 1,024 values.
2
Convert binary 0110 1001 to decimal and to hexadecimal.
64 + 32 + 8 + 1 = 105; in hex 0110 = 6 and 1001 = 9, so 69.
3
Convert decimal 20 to binary by repeated division by 2.
20 ÷ 2 = 10 r 0; 10 ÷ 2 = 5 r 0; 5 ÷ 2 = 2 r 1; 2 ÷ 2 = 1 r 0; 1 ÷ 2 = 0 r 1; reading upward: 10100 (16 + 4 = 20).
4
Using A = 65, decode the codes 70 65 68 69. (Hint: count forward from A.)
70 = F, 65 = A, 68 = D, 69 = E: FADE.
5
A note has 5,120 characters, one byte each. With 1 KB = 1,024 bytes, how many KB is it?
5,120 ÷ 1,024 = 5 KB.