IAE Academy

GATE 2025 CS2 Q.49: solution and answer

GATE 2025 · CS2Q.49 · 2 marks · MSQ

Three floating point numbers , and are stored in three registers , , and , respectively in IEEE 754 single precision format as given below in hexadecimal:

= 0xC1100000, = 0x40C00000, and = 0x41400000

Which of the following option(s) is/are CORRECT?

  1. (A)

  2. (B)

  3. (C)

  4. (D)

See the question in the paper

Answer and solution

ANSWER

Options A, B and C are correct: X = -9, Y = 6, Z = 12.

Official answer: A, B, CSource: Official answer key, GATE 2025 CS2 (IIT Roorkee)

  1. IEEE 754 single precision: value , with 1 sign bit, 8 exponent bits and 23 fraction bits.

  2. 0xC1100000 = 1100 0001 0001 0000 ..., so , exponent field 10000010 (exponent ), fraction 0010000... . Hence .

  3. 0x40C00000 = 0100 0000 1100 0000 ..., so , exponent field 10000001 (exponent ), fraction 1000000... . Hence .

  4. 0x41400000 = 0100 0001 0100 0000 ..., so , exponent field 10000010 (exponent ), fraction 1000000... . Hence .

  5. (A) . Correct.

  6. (B) . Correct.

  7. (C) . Correct.

  8. (D) . Wrong.

  9. So the correct options are A, B and C.

KEY IDEA

Split each hexadecimal word into sign, 8 exponent bits and 23 fraction bits, decode with bias 127 and the implicit leading 1, then test each relation with the decoded values.

WATCH OUT FOR

Forgetting the implicit leading 1 in the mantissa, or reading the exponent field without subtracting the bias 127. Misaligning the hex digits against the 1+8+23 bit fields is another frequent slip.

From the GATE 2025 CS2 paper. Every question of this paper · Download the full paper · All 18 Number systems questions, with notes

More Number systems questions