Question

Consider the real valued variables XX, YY and ZZ represented using the IEEE 754 single-precision floating-point format. The binary representations of XX and YY in hexadecimal notation are as follows:

X:35C00000Y:34A00000X: \text{35C00000} \qquad Y: \text{34A00000}

Let Z=X+YZ = X + Y.

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

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2026 answer key

Solution

Unpack the sign, 8-bit biased exponent, and 23-bit mantissa of XX and YY, align the smaller exponent to the larger exponent, add the significands, and repack into hexadecimal.

  1. Unpack X=0x35C00000X = \text{0x35C00000}:
    • In binary: 0011 0101 1100 0000 ... =0∣01101011∣1000000…= 0 \mid 01101011 \mid 1000000\dots
    • Sign SX=0S_X = 0, biased exponent EX=011010112=107E_X = 01101011_2 = 107, significand =1.10002= 1.1000_2.
  2. Unpack Y=0x34A00000Y = \text{0x34A00000}:
    • In binary: 0011 0100 1010 0000 ... =0∣01101001∣0100000…= 0 \mid 01101001 \mid 0100000\dots
    • Sign SY=0S_Y = 0, biased exponent EY=011010012=105E_Y = 01101001_2 = 105, significand =1.01002= 1.0100_2.
  3. Align exponents and add significands:
    • Since EX−EY=107−105=2E_X - E_Y = 107 - 105 = 2, shift YY's significand right by 22 bits to match exponent 107107: 1.01002×2−2=0.010121.0100_2 \times 2^{-2} = 0.0101_2.
    • Add significands at exponent EZ=107E_Z = 107:
      1.10002+0.01012=1.110121.1000_2 + 0.0101_2 = 1.1101_2
  4. Pack ZZ into IEEE 754 single-precision format:
    • Sign SZ=0S_Z = 0, biased exponent EZ=011010112E_Z = 01101011_2, fraction =1101000…2= 1101000\dots_2:
      0 01101011 1101000…2=0011 0101 1110 1000 0000…2=35E80000160\,01101011\,1101000\dots_2 = 0011\,0101\,1110\,1000\,0000\dots_2 = \text{35E80000}_{16}
Final answer

Option (C)

Common trap

Forgetting the implicit leading 1 of YY's normalized significand (1.0121.01_2) when shifting right by 2 bits.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
36 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.