Exam-style question
Try this first
If a CPU register is designed to hold a 4-bit unsigned binary number, what is the largest decimal value it can correctly represent before an overflow occurs?.
- A.7
- B.15
- C.16
- D.255
Answer and explanation
Concise answer
15
Why this is correct
A 4-bit unsigned binary number can represent 2^4 - 1 values, ranging from 0 to 15. Therefore, 15 (1111 in binary) is the largest value it can represent.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
