GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 41

GATE CSE 2022 Q41

Computer Organization & Architecture · Data Representation & Arithmetic · Full GATE CSE 2022 paper

GATE 2022, Q41 2 marks · MCQ
Report issue

Data Representation & Arithmetic

Question 41, GATE 2022: IEEE-754 binary32 register patterns for A,B,C are C1400000,42100000,41400000 (hex). Which is false? A A+C=0; B C=A+B; C B=3C; D B−C>0.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (9 steps)

Decode the binary32 values: 0xC1400000 has sign 1, exponent 130 and significand 1.5, giving −12. 0x42100000 has exponent 132 and significand 1.125, giving 36. 0x41400000 gives 12. Therefore C=A+B is false, since 12≠−12+36=24. The other offered relations hold, so B.

For normalized binary32, value=(−1)^sign ×(1+fraction/223)×2exponent−127. A has unbiased exponent 3 and fraction 0.5: −1.5×8=−12. B has exponent 5 and fraction 0.125: 1.125×32=36. C is +12. Thus A+C=0, B=3C, and B−C=24>0.

Original paper, page 27 · Answer key