GATE Computer ScienceModerateGATE CS (PYQ pattern)
How many IEEE 754 single-precision values x satisfy 0 < x < 2⁻¹²⁵?
- A. 2²⁴ − 1
- B. 2²³ − 1
- C. 2²⁴
- D. 2²⁴ + 2²³ − 1
Correct answer: A. 2²⁴ − 1
The positive denormals (0.f × 2⁻¹²⁶, f ≠ 0) number 2²³ − 1, all below 2⁻¹²⁶. The normals with biased exponent 1 lie in [2⁻¹²⁶, 2⁻¹²⁵): 2²³ more. Total 2²⁴ − 1. Counting only the denormals gives 2²³ − 1.
More Digital Logic questions
- IEEE 754 half precision has 1 sign bit, 5 exponent bits (bias 15) and 10 fraction bits. What is the smallest positive integer that it…
- What is the minimum two's complement width that can hold every exact product of (i) two 12-bit two's complement integers, and (ii) a…
- A two's complement accumulator starts at 0 and adds 100 signed 8-bit values (−128 to 127) and 100 unsigned 8-bit values (0 to 255), in any…
- In 3-digit BCD arithmetic, 254 − 783 is computed by adding the 10's complement of 783 to 254 (with decimal correction in each digit). What…
- A 4-bit cyclic Gray code is a cyclic sequence through all sixteen 4-bit words in which consecutive words, including the last and the…
- F(A,B,C,D) = (A ⊕ B)(B ⊕ C) + (A ⊙ C)·B' + ABCD, where ⊙ is XNOR. What is the minimal sum-of-products of F?