GATE Computer ScienceHardGATE CS (PYQ pattern)
Values from −1000 to +1000 must be stored with a resolution of at least 0.0001. Design (i) is a two's complement binary fixed-point format (integer bits plus fraction bits, spacing a power of two). Design (ii) stores the exact count of ten-thousandths as a two's complement integer. What is the minimum total number of bits for each?
- A. 26 and 25
- B. 25 and 26
- C. 24 and 25
- D. 25 and 25
Correct answer: D. 25 and 25
(i) Spacing 2^−f ≤ 0.0001 needs f = 14 (2⁻¹³ ≈ 0.000122 is too coarse); the integer part including the sign needs 11 bits, since −1024 ≤ x < 1024 covers ±1000 (10 bits would stop at ±512): 25 bits. Adding a separate sign bit to 11 magnitude bits gives the 26 trap. (ii) The count runs from −10,000,000 to +10,000,000; 2²⁴ = 16,777,216 > 10⁷, so 25 bits (range ±2²⁴) suffice.
More Digital Logic questions
- How many 8-bit patterns have no two adjacent 1 bits and an even number of 1 bits?
- A memory word uses the (72, 64) SEC-DED code: a Hamming code with 7 check bits over the 64 data bits (71 bits in all), plus an overall…
- An (8, 4) SEC-DED code uses even-parity Hamming bits at positions 1, 2, 4, data bits d1..d4 at positions 3, 5, 6, 7 (positions numbered…
- A binary block code has minimum Hamming distance 6. A decoder must correct every pattern of up to 1 bit error and, at the same time…
- A binary (n, k) code correcting t errors is perfect if the radius-t spheres around its 2^k codewords exactly fill all 2^n words. Which of…
- A CRC uses the generator x³ + x + 1 (1011). The 9 data bits 110101101 are sent followed by their 3-bit CRC. Four corrupted 12-bit frames…