Skip to content
Official PYQ · 2001

GATE CS 2001 Q2.10 — Number Representations (Fixed and Floating Point)

Explain with AI

The 2′s2's complement representation of (-539)10 in hexadecimal is

Choose one option
View worked solution

Answer: C

To find the 22's complement representation of (−539)10(-539)_{10} in hexadecimal, we can use either the binary method or the direct hexadecimal subtraction method.

Method 1: Direct Hexadecimal Subtraction

First, convert the magnitude 53910539_{10} to hexadecimal:

539=2×256+1×16+11=21B16539 = 2 \times 256 + 1 \times 16 + 11 = 21\text{B}_{16}

Since the options contain 33 hexadecimal digits (representing 1212 bits), we find the 22's complement by subtracting 21B1621\text{B}_{16} from 163=10001616^3 = 1000_{16}:

FF16−21BDE5\begin{array}{rccc} & F & F & 16 \\ - & 2 & 1 & \text{B} \\ \hline & \text{D} & \text{E} & 5 \\ \hline \end{array}

Thus, the representation is DE516\text{DE5}_{16}.


Method 2: Binary Conversion

  1. Convert +53910+539_{10} to 1212-bit binary: 53910=512+16+8+2+1=0010 0001 10112539_{10} = 512 + 16 + 8 + 2 + 1 = 0010\ 0001\ 1011_2
  2. Find the 11's complement: 1101 1110 010021101\ 1110\ 0100_2
  3. Add 11 to get the 22's complement: 1101 1110 010121101\ 1110\ 0101_2
  4. Convert groups of 44 bits to hexadecimal:
    • 11012=D161101_2 = \text{D}_{16}
    • 11102=E161110_2 = \text{E}_{16}
    • 01012=5160101_2 = 5_{16}
    This gives DE516\text{DE5}_{16}.

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

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