Skip to content
Official PYQ · 2026

GATE CS 2026 Set 1 Q26 — Number Representations (Fixed and Floating Point)

Explain with AI

Consider the real valued variables X,YX, Y and ZZ represented using the IEEE 754754 singleprecision floating-point format. The binary representations of XX and YY in hexadecimal notation are as follows:
X:35C00000Y:34A00000X: 35 \mathrm{C} 00000 \quad Y: 34 \mathrm{A} 00000
Let Z=X+YZ=X+Y.

Which one of the following is the binary representation of ZZ, in hexadecimal notation?

Choose one option
View worked solution

Answer: C

To find Z=X+YZ = X + Y, we first decode the IEEE 754 single-precision representations of XX and YY. The format consists of 1 sign bit (SS), 8 exponent bits (EE), and 23 fraction bits (FF).

1. Decoding X=35C0000016X = 35\text{C}00000_{16}:

  • Binary: 0011 0101 1100 0000 0000 0000 0000 000020011\ 0101\ 1100\ 0000\ 0000\ 0000\ 0000\ 0000_2
  • S=0S = 0 (positive)
  • E=011010112=10710  ⟹  Actual Exponent=107−127=−20E = 01101011_2 = 107_{10} \implies \text{Actual Exponent} = 107 - 127 = -20
  • F=1000…2  ⟹  Mantissa=1.12F = 1000\dots_2 \implies \text{Mantissa} = 1.1_2
  • X=1.12×2−20X = 1.1_2 \times 2^{-20}

2. Decoding Y=34A0000016Y = 34\text{A}00000_{16}:

  • Binary: 0011 0100 1010 0000 0000 0000 0000 000020011\ 0100\ 1010\ 0000\ 0000\ 0000\ 0000\ 0000_2
  • S=0S = 0 (positive)
  • E=011010012=10510  ⟹  Actual Exponent=105−127=−22E = 01101001_2 = 105_{10} \implies \text{Actual Exponent} = 105 - 127 = -22
  • F=0100…2  ⟹  Mantissa=1.012F = 0100\dots_2 \implies \text{Mantissa} = 1.01_2
  • Y=1.012×2−22Y = 1.01_2 \times 2^{-22}

3. Aligning Exponents and Addition:

Align YY to the larger exponent of −20-20:

Y=0.01012×2−20Y = 0.0101_2 \times 2^{-20}Z=X+Y=(1.12+0.01012)×2−20=1.11012×2−20Z = X + Y = (1.1_2 + 0.0101_2) \times 2^{-20} = 1.1101_2 \times 2^{-20}

4. Encoding ZZ back to IEEE 754:

  • S=0S = 0
  • Actual Exponent=−20  ⟹  E=−20+127=107=011010112\text{Actual Exponent} = -20 \implies E = -20 + 127 = 107 = 01101011_2
  • Mantissa=1.11012  ⟹  F=11010000…2\text{Mantissa} = 1.1101_2 \implies F = 11010000\dots_2

Combining these fields into a 32-bit binary representation:

Z=0⏟Sign 0110 1011⏟Exponent 1101 0000 0000 0000 0000 000⏟FractionZ = \underbrace{0}_{\text{Sign}}\ \underbrace{0110\ 1011}_{\text{Exponent}}\ \underbrace{1101\ 0000\ 0000\ 0000\ 0000\ 000}_{\text{Fraction}}

Grouping into 4-bit hexadecimal nibbles:

Z=0011 0101 1110 1000 0000 0000 0000 00002=35E8000016Z = 0011\ 0101\ 1110\ 1000\ 0000\ 0000\ 0000\ 0000_2 = 35\text{E}80000_{16}

Thus, the correct option is C.

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

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