The number of digit 1 present in the binary representation of 3 × 512 + 7 × 64…

2007

The number of digit 1 present in the binary representation of

3 × 512 + 7 × 64 + 5 × 8 + 3
  1. A.

    8

  2. B.

    9

  3. C.

    10

  4. D.

    12

Attempted by 173 students.

Show answer & explanation

Correct answer: B

First, evaluate the expression: 3 × 512 + 7 × 64 + 5 × 8 + 3 = 1536 + 448 + 40 + 3 = 2027. Next, convert the decimal number 2027 to binary. Dividing by 2 repeatedly shows that 2027 in binary is 11111101011. Finally, count the number of 1s in this binary representation. There are exactly 9 ones.

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

Explore the full course: Isro