The number of 1's in the binary representation of (3*4096 + 15*256 + 5*16 + 3)…

2015

The number of 1's in the binary representation of (3*4096 + 15*256 + 5*16 + 3) are: ISRO 2015

  1. A.

    8

  2. B.

    9

  3. C.

    10

  4. D.

    12

Attempted by 140 students.

Show answer & explanation

Correct answer: C

The expression 3*4096 + 15*256 + 5*16 + 3 corresponds to the hexadecimal number 3F53, as coefficients align with powers of 16.

Converting each hex digit to binary: 3 -> 0011, F(15) -> 1111, 5 -> 0101, 3 -> 0011.

Counting the set bits: 2 + 4 + 2 + 2 = 10 ones.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro