How many 1’s are present in the binary representation of 15×256 + 5×16 + 3:

2010

How many 1’s are present in the binary representation of 15×256 + 5×16 + 3:

  1. A.

    8

  2. B.

    9

  3. C.

    10

  4. D.

    11

Attempted by 78 students.

Show answer & explanation

Correct answer: A

First, recognize that 256 = 162.

The expression becomes 15×256 + 5×16 + 3, which corresponds to the hexadecimal number (F53)16.

Convert each hex digit to its 4-bit binary equivalent: F is 1111, 5 is 0101, and 3 is 0011.

Counting the set bits gives 4+2+2 = 8 ones in total.

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

Explore the full course: Nta Ugc Net Paper 1