GATE / CS ARCHIVE

GATE CSE 2014 SET 2 / QUESTION 45

GATE CSE 2014 Set 2 Q45

Digital Logic · Number Systems & Computer Arithmetic · Full GATE CSE 2014 Set 2 paper

GATE 2014 Set 2, Q45 2 marks · MCQ
Report issue

Number Systems & Computer Arithmetic

Question 45, GATE 2014: IEEE-754 binary32 uses 1 sign bit, 8 biased-exponent bits and 23 fraction bits. A float X is assigned -14.25. What is its hexadecimal representation? A C1640000H; B 416C0000H; C 41640000H; D C16C0000H.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (6 steps)

1. Set up the reasoning. Convert the magnitude exactly: 14 is 1110₂ and 0.25 is .01₂. Normalize to 1.11001₂×2³, then encode sign, biased exponent, and the fraction after the implicit leading 1.

2. Derive the result. 14.25=1110.01₂=1.11001₂×2³. The negative sign gives sign bit1, the biased exponent is 127+3=130=10000010₂, and the fraction is 11001000000000000000000. Combining fields gives binary11000001011001000000000000000000, hexadecimalC1640000, A.

3. Check the interpretation. The leading 1 is not stored in the fraction field. The negative sign changes the top bit only; exponent bias is 127, so exponent 3 becomes 130. Group the final 32 bits into nibbles to distinguish C164 from the similar distractor C16C.

Original paper, page 41 · Answer key