GATE Computer ScienceEasyGATE CS (PYQ pattern)
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 cannot represent exactly?
- A. 2048
- B. 1025
- C. 4097
- D. 2049
Correct answer: D. 2049
With 10 stored fraction bits plus the hidden bit there are 11 significant bits, so every integer up to 2¹¹ = 2048 is exact. Above 2048 the spacing is 2, so 2049 is the first gap. (The largest finite value, 65504, is far above.)
More Digital Logic questions
- 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?
- Which of the following identities hold for all A, B, C? I. A + (B ⊕ C) = (A + B) ⊕ (A + C) II. A·(B ⊕ C) = AB ⊕ AC III. A ⊕ (B + C) = (A ⊕…