GATE Computer ScienceVery hardGATE CS (PYQ pattern)

In a custom 8-bit floating-point format there is 1 sign bit, 4 exponent bits (bias 7) and 3 fraction bits, with IEEE-like rules (exponent 1111 reserved for infinities and NaN, exponent 0000 for zero and denormals). What are the largest finite value and the smallest positive denormal?

  1. A. 240 and 2⁻⁷
  2. B. 248 and 2⁻⁶
  3. C. 240 and 2⁻⁹
  4. D. 480 and 2⁻⁹

Correct answer: C. 240 and 2⁻⁹

Largest exponent field is 1110 = 14 → 2⁷; significand 1.111₂ = 1.875; 1.875 × 128 = 240. Denormals use exponent 2⁻⁶ (1 − bias) and fraction steps of 1/8: 2⁻⁶ × 2⁻³ = 2⁻⁹.

More Computer Organization and Architecture questions

Exams that ask this topic