The GATE Grind

GATE 2025 CS (CS2) – Question 49

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

Three floating point numbers $X, Y$, and $Z$ are stored in three registers $R_X$, $R_Y$, and $R_Z$, respectively in IEEE 754 single precision format as given below in hexadecimal:

$R_X$ = 0xC1100000, $R_Y$ = 0x40C00000, and $R_Z$ = 0x41400000

Which of the following option(s) is/are CORRECT?

  1. $4(X + Y) + Z = 0$
  2. $2Y - Z = 0$
  3. $4X + 3Z = 0$
  4. $X + Y + Z = 0$

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: (A) $4(X + Y) + Z = 0$; (B) $2Y - Z = 0$; (C) $4X + 3Z = 0$

Explanation

Decode IEEE-754 single precision (1 sign, 8 exponent with bias 127, 23 fraction).

Check the options:
- (A) $4(X+Y)+Z=4(-3)+12=0$. True.
- (B) $2Y-Z=12-12=0$. True.
- (C) $4X+3Z=-36+36=0$. True.
- (D) $X+Y+Z=9\ne0$. False.

Answer: A, B, C.

More Number Representation and Floating Point Arithmetic questions

All Number Representation and Floating Point Arithmetic questions →