Question
The format of a single-precision floating-point number as per the IEEE 754 standard is:
| Sign | Exponent | Mantissa |
|---|---|---|
| (1 bit) | (8 bits) | (23 bits) |
Choose the largest floating-point number among the following options.
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) is reserved for special values: if the mantissa is zero, it represents ; 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(, giving true exponent ). - With Sign (positive), Exponent , and Mantissa all
1s, Option (B) represents , which is the largest finite single-precision floating-point number (whereas Options A and D have biased exponent , i.e., ).
Option (B)
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.