GATE Computer ScienceVery hardGATE CS (PYQ pattern)

An 8-bit floating-point format has 1 sign bit, 4 exponent bits with bias 7 and 3 fraction bits, with IEEE-style rules (exponent field 0000 for zero and denormals with exponent 1 − bias, 1111 for infinities and NaN). How many distinct values lie strictly between 0 and 1, and what is the largest of them?

  1. A. 48; 0.9375
  2. B. 56; 0.875
  3. C. 55; 0.875
  4. D. 55; 0.9375

Correct answer: D. 55; 0.9375

Normals below 1 have exponent fields 1…6 (2⁻⁶ … 2⁻¹), each with 8 fractions: 48 values. Denormals add fractions 001…111 at 2⁻⁶ × f/8: 7 more. Total 55. The largest is 1.111₂ × 2⁻¹ = 0.9375. Forgetting denormals gives 48.

More Computer Organization and Architecture questions

Exams that ask this topic