• Foundation
  • 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, Why computers use binary: place value and bases; questions 4-6: lesson 2, Converting between binary and decimal; questions 7-9: lesson 3, Octal and hexadecimal; questions 10-12: lesson 4, Binary arithmetic and complements; questions 13-15: lesson 5, Codes: BCD, ASCII, Unicode and bit capacity.

Final self-assessment

  1. 1. Which of these cannot be a number in base 6?

    1. 5432
    2. 1260
    3. 1005
    4. 3214
    Show answer

    Answer: B. Base 6 uses only the digits 0 to 5. 1260 contains the digit 6.

  2. 2. In the octal number 352, what is the place value of the digit 3?

    1. 300
    2. 24
    3. 192
    4. 96
    Show answer

    Answer: C. Octal places are 64, 8 and 1. The 3 is in the 64s place: 3 x 64 = 192.

  3. 3. In hexadecimal, what is the third place from the right worth?

    1. 16
    2. 100
    3. 48
    4. 256
    Show answer

    Answer: D. Each place is 16 times the one to its right: 1, 16, 256.

  4. 4. Convert binary 1110011 to decimal.

    1. 115
    2. 103
    3. 99
    4. 117
    Show answer

    Answer: A. Place values 64, 32, 16, 8, 4, 2, 1 with digits 1, 1, 1, 0, 0, 1, 1: 64 + 32 + 16 + 2 + 1 = 115.

  5. 5. Convert decimal 58 to binary.

    1. 101110
    2. 111010
    3. 111001
    4. 110110
    Show answer

    Answer: B. 58 / 2 = 29 r0, 29 / 2 = 14 r1, 14 / 2 = 7 r0, 7 / 2 = 3 r1, 3 / 2 = 1 r1, 1 / 2 = 0 r1. Upward: 111010. Check: 32 + 16 + 8 + 2 = 58.

  6. 6. Convert decimal 0.875 to binary.

    1. 0.101
    2. 0.110
    3. 0.111
    4. 0.011
    Show answer

    Answer: C. 0.875 x 2 = 1.75 (1); 0.75 x 2 = 1.5 (1); 0.5 x 2 = 1.0 (1). So 0.111. Check: 0.5 + 0.25 + 0.125 = 0.875.

  7. 7. Convert hexadecimal 7B to octal.

    1. 123
    2. 371
    3. 175
    4. 173
    Show answer

    Answer: D. 7 = 0111 and B = 1011, so 1111011. Groups of three from the right: 1, 111, 011 = 1, 7, 3, giving 173. Check: 7B = 112 + 11 = 123 and 173 octal = 64 + 56 + 3 = 123.

  8. 8. Convert octal 237 to decimal.

    1. 159
    2. 237
    3. 147
    4. 169
    Show answer

    Answer: A. 2 x 64 + 3 x 8 + 7 = 128 + 24 + 7 = 159.

  9. 9. Convert decimal 250 to hexadecimal.

    1. AF
    2. FA
    3. FF
    4. F10
    Show answer

    Answer: B. 250 / 16 = 15 remainder 10, so F then A: FA. Check: 15 x 16 + 10 = 250. (AF is 175 and FF is 255.)

  10. 10. Add binary 10111 and 1101.

    1. 100010
    2. 110100
    3. 100100
    4. 11100
    Show answer

    Answer: C. 23 + 13 = 36. In binary: 1+1 = 0 c1; 1+0+1 = 0 c1; 1+1+1 = 1 c1; 0+1+1 = 0 c1; 1+0+1 = 0 c1; final 1: 100100 = 32 + 4 = 36.

  11. 11. In 5 bits, what is the 2's complement of 01101?

    1. 10010
    2. 01110
    3. 10100
    4. 10011
    Show answer

    Answer: D. Flip to 10010, then add 1: 10011. Check: 01101 is 13 and 32 - 13 = 19, which is 10011.

  12. 12. In a 4-bit system using 2's complement, which pattern represents -5?

    1. 1011
    2. 1010
    3. 0101
    4. 1101
    Show answer

    Answer: A. 5 is 0101; flip to 1010 and add 1: 1011. (1010 is only the 1's complement; 1101 is -3.)

  13. 13. The BCD code 0101 1000 stands for which decimal number?

    1. 88
    2. 58
    3. 85
    4. 13
    Show answer

    Answer: B. Read each 4-bit group as one digit: 0101 = 5 and 1000 = 8, so 58. Read as pure binary, 01011000 would be 88.

  14. 14. In ASCII, capital A is 65 and small a is 97. What is small c?

    1. 67
    2. 98
    3. 99
    4. 100
    Show answer

    Answer: C. c is two letters after a: 97 + 2 = 99. (67 is capital C.)

  15. 15. What is the minimum number of bits needed to give a different code to each of 200 items?

    1. 7
    2. 9
    3. 16
    4. 8
    Show answer

    Answer: D. 2^7 = 128 is too few; 2^8 = 256 is enough, so 8 bits.

Privacy · Terms · Refunds · Delivery