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:
- A.
8
- B.
9
- C.
10
- 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.