Question
The format of the single-precision floating-point representation of a real number as per the IEEE 754 standard is as follows:
Sign bit: 1 bit, Exponent: 8 bits, Mantissa: 23 bits.
Which one of the following choices is correct with respect to the smallest normalized positive number represented using the standard?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2021 answer key
Solution
Apply IEEE 754 single-precision format specifications for normalized floating-point numbers.
In IEEE 754 single-precision (32-bit) floating-point format:
- Sign bit (): 1 bit
- Exponent field (): 8 bits, biased with bias = 127
- Fraction/Mantissa (): 23 bits
An exponent field of 00000000 () is reserved for zero and subnormal (denormalized) numbers. An exponent field of 11111111 () is reserved for infinities and NaN.
For a normalized number, the exponent field ranges from (00000001) to (11111110). The smallest exponent for a normalized number is therefore (00000001), which corresponds to an unbiased exponent of .
The value of a positive normalized number is . To minimize this positive value, the mantissa bits must all be 0 (00000000000000000000000), yielding .
C
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2021 Computer Science and Information Technology - Session 2 (CS2)
- Question
- 14 of 65, printed as CS Q.4
- 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.