GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8-bit floating-point format follows IEEE 754 conventions: 1 sign bit, 4 exponent bits (bias 7; field 15 reserved for ∞/NaN), 3 fraction bits, with denormals. How many distinct non-negative integers (0 included) are exactly representable?

  1. A. 48
  2. B. 47
  3. C. 16
  4. D. 56

Correct answer: A. 48

Zero (1). Unbiased exponent 0 (1.000 to 1.875): only 1. Exponent 1 (step 0.25): 2, 3. Exponent 2 (step 0.5): 4..7 (4). Exponent 3 (step 1): 8..15 (8). Exponents 4..7 (fields 11-14) give 8 values each, all integers (16..30 step 2, 32..60 step 4, 64..120 step 8, 128..240 step 16): 32. Total 1 + 1 + 2 + 4 + 8 + 32 = 48.

More Digital Logic questions

Exams that ask this topic