GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER ORGANIZATION & ARCHITECTURE

Recognize IEEE normalized-range boundaries

2 questions solved the same way, newest first. Back to Computer Organization & Architecture

How these are solved

Distinguish normalized exponents from reserved all-zero/all-one patterns, then choose the required finite-range boundary. One asks smallest positive normal fields; the other largest numeric offered value and includes NaN.

1 mark · MCQ
Report issue

Recognize the reserved IEEE exponent pattern

Data Representation & Arithmetic

Question 14, GATE 2024: Choose the largest numeric IEEE 754 binary32 value among these sign/exponent/fraction fields. All signs are 0. A exponent 01111111, 23 fraction bits all 1; B exponent 11111110, fraction all 1; C exponent 11111111, fraction all 1; D exponent 01111111, fraction all 0.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (6 steps)

Approach: Classify special encodings before comparing the ordinary positive values.

1. Derivation. For a normal binary32 value the magnitude is(1+fraction)×2E−127. B has the largest finite exponent 254 and an all-one fraction, giving(2−2⁻²³)×2¹²⁷, the largest finite positive binary32 value. A is just below 2; D is 1. C has exponent 255 and a nonzero fraction, so it is NaN, not a larger number. Answer B.

2. Explanation and checks. An all-ones exponent is reserved: a zero fraction would encode positive infinity, but the nonzero fraction in C encodes NaN. NaN is unordered and is not a numeric maximum. For B the biased exponent 254 becomes 127, and the fraction sum is 1−2−23, giving significand 2−2−23. A instead has actual exponent zero, and D has both exponent zero and fraction zero, so both are much smaller.

Original paper, page 11 · Answer key

1 mark · MCQ
Report issue

Data Representation & Arithmetic

Question 4, GATE 2021: For IEEE 754 binary32, identify the smallest positive normalized number's exponent and fraction fields. A exponent 00000000/fraction all zero; B exponent 00000000/fraction integer 1; C exponent 00000001/fraction all zero; D exponent 00000001/fraction integer 1. Fraction width is 23 bits.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

A normalized binary32 number has a nonzero exponent field. The smallest positive one uses biased exponent 1 and fraction 0: exponent 00000001, fraction all zeros. Its value is 1.0·21−127=2−126, C. Exponent0 encodes zero or subnormals instead.

Binary32 uses sign 0 for positive, bias 127, and an implicit leading 1 for normal numbers. The least positive normal has the smallest allowed normal exponent and smallest significand. Option B is instead the smallest positive subnormal, 2−149; it is positive but fails the word normalized.

Original paper, page 56 · Answer key