GATE Computer ScienceVery hardGATE CS (PYQ pattern)
How many of the 2³² IEEE 754 single-precision bit patterns represent a finite value that is an integer (both zeros included, both signs counted)?
- A. 1761607680 (= 105 × 2²⁴)
- B. 1778384896 (= 212 × 2²³)
- C. 889192448 (= 106 × 2²³)
- D. 1778384898 (= 212 × 2²³ + 2)
Correct answer: B. 1778384896 (= 212 × 2²³)
Per sign: the zero (1 pattern); denormals and exponents below 0 are never integers except zero; unbiased exponent e = 0..22 needs the low 23 − e fraction bits zero, giving 2^e patterns, Σ = 2²³ − 1; e = 23..127 (105 exponents) are all integers, 105 × 2²³. Sum 1 + (2²³ − 1) + 105 × 2²³ = 106 × 2²³; doubled for both signs: 212 × 2²³ = 1778384896.
More Digital Logic questions
- What is the smallest positive integer N such that N + 0.5 is NOT exactly representable in IEEE 754 single precision?
- Which of the following comparisons evaluate to true when done in IEEE 754 double-precision arithmetic (round to nearest even)? I. 0.1 +…
- A hypothetical 8-bit floating-point format follows IEEE 754 conventions: 1 sign bit, 4 exponent bits (bias 7), 3 fraction bits, with…
- 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…
- A floating-point format has a sign bit and 3 fraction bits (so 4 significant bits including the hidden 1), with round-to-nearest…
- A binary floating-point format keeps 4 significant bits (1 hidden + 3 stored fraction bits) with a wide exponent range and…