Tip:A–D to answerE for explanationV for videoS to reveal answer
Which of the following is NOT a decimal number equivalent of a 5-bit binary number containing three 1s?
- A.
21
- B.
23
(Correct Answer) - C.
26
- D.
22
Explanation
1. Understand the Condition:
The question asks for a number that cannot be represented as a 5-bit binary number containing exactly three 1s (and therefore two 0s).
2. Convert Options to Binary:
Option (a) 21:
21=16+4+1=24+22+20
In binary: 101012
Count of 1s: It contains exactly three 1s. (Valid)
Option (b) 23:
23=16+4+2+1=24+22+21+20
In binary: 101112
Count of 1s: It contains four 1s. (Invalid condition)
Option (c) 26:
26=16+8+2=24+23+21
In binary: 110102
Count of 1s: It contains exactly three 1s. (Valid)
Option (d) 22:
22=16+4+2=24+22+21
In binary: 101102
Count of 1s: It contains exactly three 1s. (Valid)
Correct Answer
Option (b) 23 (Since it contains four 1s instead of three).