Skip to main content

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 +…

The number of 1's in the binary representation of (3∗4096+15∗256+5∗16+3)(3\ast4096 + 15\ast256 + 5\ast16 + 3) are:

  1. A
    8
  2. B
    9
  3. C
    10
    Correct answer
  4. D
    12

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.