GATE Computer ScienceHardGATE CS

How many distinct IEEE 754 single-precision numbers x satisfy 0.5 ≤ x ≤ 4 (counting both endpoints)?

  1. A. 33554433
  2. B. 25165825
  3. C. 25165824
  4. D. 25165826

Correct answer: B. 25165825

The ranges [0.5, 1), [1, 2) and [2, 4) each contain 2²³ = 8388608 values (23 fraction bits per binade), giving 3 × 2²³ = 25165824, and 4 itself adds one more: 25165825.

More Computer Organization and Architecture questions

Exams that ask this topic