GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A binary floating-point format keeps 4 significant bits (1 hidden + 3 stored fraction bits) with a wide exponent range and round-to-nearest, ties-to-even after every operation. What are the computed values of (7 × 3) × 3 and 7 × (3 × 3)?

  1. A. 64 and 64
  2. B. 60 and 60
  3. C. 60 and 64
  4. D. 63 and 63

Correct answer: C. 60 and 64

Representable values in [16, 32) step 2, in [32, 64) step 4, in [64, 128) step 8. 7 × 3 = 21 is a tie between 20 (1.010) and 22 (1.011): ties-to-even gives 20; then 20 × 3 = 60 (1.111 × 2⁵) is exact. 3 × 3 = 9 is exact; 7 × 9 = 63 lies between 60 and 64 and is nearer 64. Exact arithmetic would give 63, which is not representable.

More Digital Logic questions

Exams that ask this topic