- Practice
- 15 practice questions
Final self-assessment: number systems
Test yourself on the whole course: 15 questions with answers explained.
If something looks wrong, please tell us.
Attempt all 15 questions before checking any answer; they are a little harder than the lesson checks. Then revisit the lesson for any question you missed - questions 1-3: lesson 1, Binary and decimal conversion; questions 4-6: lesson 2, Octal and hexadecimal systems; questions 7-9: lesson 3, Binary arithmetic and complements; questions 10-12: lesson 4, Bits, bytes and how many values fit; questions 13-15: lesson 5, Number systems mixed practice.
Final self-assessment
-
1. Convert binary 101110110 to decimal.
- 366
- 374
- 382
- 375
Show answer
Answer: B. Place values 256, 128, 64, 32, 16, 8, 4, 2, 1 with digits 1, 0, 1, 1, 1, 0, 1, 1, 0: 256 + 64 + 32 + 16 + 4 + 2 = 374.
-
2. Convert decimal 163 to binary.
- 11000101
- 10100101
- 10100011
- 10010011
Show answer
Answer: C. 163 / 2 = 81 r1, 81 / 2 = 40 r1, 40 / 2 = 20 r0, 20 / 2 = 10 r0, 10 / 2 = 5 r0, 5 / 2 = 2 r1, 2 / 2 = 1 r0, 1 / 2 = 0 r1. Upward: 10100011. Check: 128 + 32 + 2 + 1 = 163.
-
3. Which binary number equals decimal 96?
- 1010000
- 1100100
- 110000
- 1100000
Show answer
Answer: D. 96 = 64 + 32, so the 64 and 32 places hold 1: 1100000. (110000 is 48.)
-
4. Convert hexadecimal 9D to binary.
- 1001 1101
- 1101 1001
- 1001 1011
- 1010 1101
Show answer
Answer: A. Each hex digit becomes 4 bits: 9 = 1001 and D = 13 = 1101.
-
5. Convert decimal 500 to octal.
- 467
- 764
- 754
- 744
Show answer
Answer: B. 500 / 8 = 62 r4, 62 / 8 = 7 r6, 7 / 8 = 0 r7. Upward: 764. Check: 7 x 64 + 6 x 8 + 4 = 448 + 48 + 4 = 500.
-
6. Convert hexadecimal 2AB to decimal.
- 673
- 693
- 683
- 427
Show answer
Answer: C. 2 x 256 + 10 x 16 + 11 = 512 + 160 + 11 = 683.
-
7. In 4 bits, what is the two's complement of 1010?
- 0101
- 1011
- 0111
- 0110
Show answer
Answer: D. Flip to 0101, then add 1: 0110. Check: 16 - 10 = 6, which is 0110.
-
8. Subtract binary 1110 from 11011.
- 1101
- 1011
- 1111
- 1001
Show answer
Answer: A. 11011 is 27 and 1110 is 14; 27 - 14 = 13, which is 1101.
-
9. Work out 1011 + 1011 + 1 in binary.
- 10110
- 10111
- 11011
- 10101
Show answer
Answer: B. 11 + 11 + 1 = 23 = 16 + 4 + 2 + 1, which is 10111.
-
10. A code must give a different pattern to 26 capital letters, 26 small letters and 10 digits. What is the minimum number of bits?
- 5
- 7
- 6
- 8
Show answer
Answer: C. 26 + 26 + 10 = 62 items. 2^5 = 32 is too few; 2^6 = 64 is enough, so 6 bits.
-
11. What is the largest unsigned number that fits in 12 bits?
- 4096
- 2047
- 1023
- 4095
Show answer
Answer: D. 2^12 = 4096 patterns, from 0 to 4096 - 1 = 4095.
-
12. A device stores 4 bits for each of red, green and blue. How many colours can it show?
- 4096
- 48
- 12
- 256
Show answer
Answer: A. Total bits = 3 x 4 = 12, and 2^12 = 4096 (also 16 x 16 x 16 = 4096).
-
13. Convert decimal 222 to hexadecimal.
- ED
- DE
- CE
- DD
Show answer
Answer: B. 222 / 16 = 13 remainder 14; 13 = D and 14 = E, so DE. Check: 13 x 16 + 14 = 208 + 14 = 222.
-
14. Which number is valid in both octal and hexadecimal but NOT in binary?
- 1101
- 19A
- 527
- 786
Show answer
Answer: C. 527 uses digits 0 to 7 only, so it is valid octal and hex, but binary allows only 0 and 1. 1101 is valid binary too; 19A and 786 are not octal.
-
15. Add binary 1111 and 1111.
- 11111
- 10000
- 111110
- 11110
Show answer
Answer: D. 15 + 15 = 30 = 16 + 8 + 4 + 2, which is 11110.
Sign in to keep track of the lessons you finish.