GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE 754-style normalised numbers. How many distinct representable values x satisfy 1 ≤ x ≤ 16?

  1. A. 16
  2. B. 15
  3. C. 20
  4. D. 17

Correct answer: D. 17

Each binade [2^k, 2^(k+1)) for k = 0, 1, 2, 3 contains 4 values (fraction 00 to 11), i.e. 16 values from 1 up to 14, and 16 itself is also representable: 17.

More Digital Logic questions

Exams that ask this topic