Skip to content

GATE CS 2019 Q4 — Number Representations (Fixed and Floating Point)

Explain with AI

In 1616-bit 22’s complement representation, the decimal number −28-28 is:

Choose one option
View worked solution

Answer: C

To find the 1616-bit 22’s complement representation of the decimal number −28-28, we can follow these steps:

  1. Represent +28+28 in binary:

    The binary representation of 2828 is 16+8+4=(11100)216 + 8 + 4 = (11100)_2.

    Extending this to 1616 bits by padding with leading zeros:

    +28=0000 0000 0001 1100\text{+28} = 0000 \: 0000 \: 0001 \: 1100
  2. Find the 11’s complement:

    Invert all the bits (change 00 to 11 and 11 to 00):

    1’s complement=1111 1111 1110 0011\text{1's complement} = 1111 \: 1111 \: 1110 \: 0011
  3. Find the 22’s complement:

    Add 11 to the 11’s complement:

    1111 1111 1110 0011+11111 1111 1110 0100\begin{array}{r}1111 \: 1111 \: 1110 \: 0011 \\+ \quad \quad \quad \quad \quad \quad \quad \quad 1 \\ \hline 1111 \: 1111 \: 1110 \: 0100\end{array}

Thus, the 1616-bit 22’s complement representation of −28-28 is 1111 1111 1110 01001111 \: 1111 \: 1110 \: 0100, which corresponds to Option C.

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

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