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?

  1. A. −0.625
  2. B. −0.75
  3. C. −0.6875
  4. 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

Exams that ask this topic