GATE Computer ScienceHardGATE CS (PYQ pattern)
An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE-style denormals and exponent field 31 reserved for ∞/NaN. What are its smallest positive value and its largest finite value?
- A. 2⁻¹⁶ and 57344
- B. 2⁻¹⁷ and 57344
- C. 2⁻¹⁶ and 61440
- D. 2⁻¹⁴ and 57344
Correct answer: A. 2⁻¹⁶ and 57344
Denormals are 0.ff × 2^(1−15) = 0.ff × 2⁻¹⁴, so the smallest is 0.01₂ × 2⁻¹⁴ = 2⁻¹⁶. The largest finite uses field 30: 1.11₂ × 2^(30−15) = 1.75 × 2¹⁵ = 57344. Using field 31 would give 61440, and forgetting denormals gives 2⁻¹⁴.
More Digital Logic questions
- An 8-bit floating-point format has 1 sign bit, 5 exponent bits (bias 15) and 2 fraction bits, with IEEE 754-style normalised numbers. How…
- A signed Q4.4 fixed-point format stores x as the integer round(16x) in 8 bits. Two values A = −1.4375 (integer −23) and B = 0.4375…
- The double-dabble algorithm converts the 8-bit binary number 10110111 (183) to BCD. Before each of the 8 shifts, every BCD digit that is 5…
- A CRC-8 uses the generator polynomial x⁸ + x² + x + 1 (0x107), initial register value 0 and no final XOR. What is the CRC of the single…
- The Internet checksum (one's complement of the 16-bit one's complement sum) of the words 0xF0F0, 0x0F0F, 0x8001, 0xFFFF is 0x7FFE. Which…
- The (8, 4) extended Hamming code is the (7, 4) Hamming code with an overall even-parity bit appended. How many of its 16 codewords have…