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 754-style normalised numbers. How many distinct representable values x satisfy 1 ≤ x ≤ 16?
- A. 16
- B. 15
- C. 20
- D. 17
Correct answer: D. 17
Each binade [2^k, 2^(k+1)) for k = 0, 1, 2, 3 contains 4 values (fraction 00 to 11), i.e. 16 values from 1 up to 14, and 16 itself is also representable: 17.
More Digital Logic questions
- 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…
- A 4 × 4 block of data bits is protected by two-dimensional even parity: a parity bit per row, a parity bit per column and a corner bit…