Question

The format of a single-precision floating-point number as per the IEEE 754 standard is:

SignExponentMantissa
(1 bit)(8 bits)(23 bits)

Choose the largest floating-point number among the following options.

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2024 answer key

Solution

Exclude 1111 1111 (reserved for Infinity/NaN) to identify the maximum normalized exponent 1111 1110 with an all-ones mantissa.

In the IEEE 754 single-precision format:

  • An exponent field of all ones (1111 1111 =255= 255) is reserved for special values: if the mantissa is zero, it represents ±∞\pm\infty; if the mantissa is non-zero (as in Option C), it represents NaN (Not a Number).
  • The largest valid biased exponent for a normalized finite number is 1111 1110 (25410254_{10}, giving true exponent E=254−127=127E = 254 - 127 = 127).
  • With Sign =0= 0 (positive), Exponent =1111 1110= \texttt{1111 1110}, and Mantissa == all 1s, Option (B) represents (2−2−23)×2127(2 - 2^{-23}) \times 2^{127}, which is the largest finite single-precision floating-point number (whereas Options A and D have biased exponent 127127, i.e., E=0E = 0).
Final answer

Option (B)

Common trap

Selecting Option (C) without realizing that Exponent = 1111 1111 with a non-zero mantissa encodes NaN, not a numeric value.

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

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 2 (CS2)
Question
14 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.