GATE Computer ScienceHardGATE CS (PYQ pattern)
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 (integer 7) are multiplied: the 16-bit integer product is shifted right arithmetically by 4 to return to Q4.4. What value does the result represent?
- A. −0.625
- B. −0.75
- C. −0.6875
- D. −0.5625
Correct answer: C. −0.6875
Product = −23 × 7 = −161. Arithmetic shift right by 4 gives floor(−161/16) = floor(−10.06) = −11, which represents −11/16 = −0.6875. Truncation toward zero or rounding would give −10 (−0.625).
More Digital Logic questions
- 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…
- Which of the following are true? (Python-style double precision for I, III, IV; single precision rounding for II.) I. adding 0.1 to a…