GATE / CS ARCHIVE

GATE CSE 2025 SET 2 / QUESTION 49

GATE CSE 2025 Set 2 Q49

Computer Organization & Architecture · Data Representation & Arithmetic · Full GATE CSE 2025 Set 2 paper

GATE 2025 Set 2, Q49 2 marks · MSQ
Report issue

Data Representation & Arithmetic

Question 49, GATE 2025: IEEE 754 binary32 registers hold RX=0xC1100000, RY=0x40C00000, RZ=0x41400000, representing numbers X,Y,Z. Select true equations.
A. 4(X+Y)+Z=0. B. 2Y−Z=0. C. 4X+3Z=0. D. X+Y+Z=0.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Step through it (9 steps)

For a normal binary32 number, value=(−1)s·(1+f/223)·2e−127, where s is the sign bit, e the 8-bit biased exponent, and f the 23-bit fraction integer.

RX has s=1, e=130, and f=0x100000=220. Its fractional contribution is 220/223=1/8, so X=−(1+1/8)·23=−9. RY has s=0,e=129,f=0x400000=222, giving Y=(1+1/2)·22=6. RZ has s=0,e=130 and the same fraction, giving Z=(1+1/2)·23=12.

Now evaluate the choices directly: A gives 4(−9+6)+12=−12+12=0; B gives 2·6−12=0; C gives 4·(−9)+3·12=−36+36=0. D gives −9+6+12=9, not zero. These small integer values and intermediate results are exactly representable, so floating-point rounding does not change the conclusions. Select A,B,C.

Original paper, page 38 · Answer key