The number of 1's in the binary representation of are:
GATE CSE 1995Digital Logic › Number Systems & RepresentationVerified
GATE CSE 1995 PYQ: The number of 1 1 1 's in the binary representation of ( 3 ∗ 4096 + 15 ∗ 256 + 5 ∗ 16 + 3 ) (3\ast4096 +…
- A8
- B9
- C10Correct answer
- D12
Answer
(C) 10 10 10
Approach
Recognize that $4096=16^3, 256=16^2$, and $16=16^1$, so the given sum is simply the hexadecimal number $(3F53)_{16}$. Convert each hex digit to its 4-bit binary form and count the 1s.
The expression is just a hexadecimal representation because each coefficient multiplies a power of 16. Writing it as $(3F53)_{16}$ and expanding each hex digit into 4 bits gives $(0011111101010011)_2$, which contains 10 ones. Hence option C is correct.
Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.