The GATE Grind

GATE 2022 CS – Question 41

Digital Logic · Number Representation and Floating Point Arithmetic · 2 marks · Multiple choice

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?

  1. $A+C=0$
  2. $C=A+B$
  3. $B=3C$
  4. $(B-C)>0$

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.

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

All Number Representation and Floating Point Arithmetic questions →