Question
Consider three floating point numbers A, B and C stored in registers RA, RB and RC, respectively as per IEEE-754 single precision floating point format. The 32-bit content stored in these registers (in hexadecimal form) are as follows.
Which one of the following is FALSE?
Official answer and solution
- Official answer
- B
- From
- Official GATE 2022 answer key
Solution
Decode the IEEE-754 single precision floating point hexadecimal representations to their real values and evaluate each relationship.
In IEEE-754 single precision: bit 31 is sign , bits 30..23 are biased exponent , and bits 22..0 are fraction .
-
:
- (negative)
- . Unbiased exponent: .
- . Value: .
-
:
- (positive), same magnitude as . Value: .
-
:
- (positive)
- . Unbiased exponent: .
- . Value: .
Testing the options:
- (A) . (TRUE)
- (B) , which is FALSE.
- (C) . (TRUE)
- (D) . (TRUE)
Thus, Option (B) is the FALSE statement.
Option (B)
Incorrectly calculating the fraction value for RB ().
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2022 Computer Science and Information Technology (CS)
- Question
- 41 of 65
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.