Number Systems MCQs — Computer Science
4 practice MCQs
The correct answer is marked on every question, with its full explanation.
Computer ScienceNumber Systems CSS PPSC FPSC NTSID: NWG-017
In the binary number system, how many different digits are used?
- ATwo digits, 0 and 1. ✓ Correct answer
- BEight digits, 0 to 7.
- CTen digits, 0 to 9.
- DSixteen digits, 0 to 9 and A to F.
✓ Correct answer: Two digits, 0 and 1.
Full explanation
The binary number system uses 'Two digits, 0 and 1.' Why the others are wrong: 'Eight digits, 0 to 7.' — that is the octal system, not binary. 'Ten digits, 0 to 9.' — that is the decimal system, not binary. 'Sixteen digits, 0 to 9 and A to F.' — that is the hexadecimal system, not binary.
Computer ScienceNumber Systems CSS PPSC FPSC NTSID: CMP-024
What is the decimal equivalent of the binary number 101?
- A5 ✓ Correct answer
- B3
- C7
- D101
✓ Correct answer: 5
Full explanation
The binary number 101 equals 5. Working it out: the 1 in the fours place is 4, the 0 in the twos place is 0, and the 1 in the ones place is 1, so 4 + 0 + 1 = 5. Why the others are wrong: 3 — that is the decimal value of binary 11, not 101. 7 — that is the decimal value of binary 111, not 101. 101 — that is the binary number itself, not its decimal value.
Computer ScienceNumber Systems CSS PPSC FPSC NTSID: CMP-045
What is the decimal equivalent of the binary number 110?
- A4
- B5
- C6 ✓ Correct answer
- D7
✓ Correct answer: 6
Full explanation
The binary number 110 equals 6 in decimal: 1x4 + 1x2 + 0x1 = 6. The decimal equivalent of binary 110 is 6. Why the others are wrong: 4 — the binary number 100 equals 4, not 110. 5 — the binary number 101 equals 5, not 110. 7 — the binary number 111 equals 7, not 110.
Computer ScienceNumber Systems CSS PPSC FPSC NTSID: CMP-068
How is the decimal number 7 written in binary?
- A100
- B110
- C101
- D111 ✓ Correct answer
✓ Correct answer: 111
Full explanation
The decimal number 7 is 4 + 2 + 1, and in binary that is 111, so the binary equivalent is 111. Why the others are wrong: 101 — that is the binary equivalent of 5. 110 — that is the binary equivalent of 6. 100 — that is the binary equivalent of 4.
Practise these MCQs interactively →
← Computer Science MCQs