GATE 2022 CS – Question 41
Consider three floating point numbers $A$, $B$ and $C$ stored in registers $R_A$, $R_B$ and $R_C$, respectively as per IEEE-754 single precision floating point format. The 32-bit content stored in these registers (in hexadecimal form) are as follows.
$R_A$ = 0xC1400000, $R_B$ = 0x42100000, $R_C$ = 0x41400000
Which one of the following is FALSE?
Practise this question in The GATE Grind →
Show answer and explanation
Correct answer: (B) $C=A+B$
Explanation
Interpret the registers using IEEE-754 single precision.
- $R_A=\texttt{0xC1400000}$: sign 1, exponent field $\texttt{10000010}=130\Rightarrow2^3$, mantissa $1.1_2=1.5$. $A=-1.5\times8=-12$.
- $R_B=\texttt{0x42100000}$: sign 0, exponent $\texttt{10000100}=132\Rightarrow2^5$, mantissa $1.001_2=1.125$. $B=1.125\times32=36$.
- $R_C=\texttt{0x41400000}$: sign 0, exponent 130, mantissa 1.5. $C=12$.
Check the options:
- (A) $A+C=-12+12=0$. True.
- (B) $C=A+B$? $A+B=24\ne12$. **False.**
- (C) $B=3C$: $3\times12=36$. True.
- (D) $B-C=24>0$. True.
The false statement is (B).
More Number Representation and Floating Point Arithmetic questions
- GATE 2020 CS Q39
- GATE 2018 CS Q43
- GATE 2014 CS (CS2) Q55
- GATE 2026 CS (CS1) Q22
- GATE 2026 CS (CS1) Q36
- GATE 2026 CS (CS2) Q28
All Number Representation and Floating Point Arithmetic questions →