Skip to content
Official PYQ · 1991

GATE CS 1991 Q01-iii — Number Representations (Fixed and Floating Point)

Explain with AI
Consider the number given by the decimal expression:
163∗9+162∗7+16∗5+316^3*9 + 16^2*7 + 16*5+3
The number of 1’s1’s in the unsigned binary representation of the number is ______
View worked solution

Answer: 9

The given decimal expression is:

N=9×163+7×162+5×161+3×160N = 9 \times 16^3 + 7 \times 16^2 + 5 \times 16^1 + 3 \times 16^0

This expression represents a number in base-16 (hexadecimal) notation. Writing it directly in hexadecimal form:

N=(9753)16N = (9753)_{16}

To find the number of 11s in its unsigned binary representation, we can convert each hexadecimal digit into its equivalent 44-bit binary representation:

  • 916=100129_{16} = 1001_2 (contains 22 ones)
  • 716=011127_{16} = 0111_2 (contains 33 ones)
  • 516=010125_{16} = 0101_2 (contains 22 ones)
  • 316=001123_{16} = 0011_2 (contains 22 ones)

Combining these, the binary representation of the number is:

N=(1001 0111 0101 0011)2N = (1001\ 0111\ 0101\ 0011)_2

Now, we sum the number of 11s in each digit:

Total number of 1’s=2+3+2+2=9\text{Total number of } 1\text{'s} = 2 + 3 + 2 + 2 = 9

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions