Question
Consider the real valued variables , and represented using the IEEE 754 single-precision floating-point format. The binary representations of and in hexadecimal notation are as follows:
Let .
Which one of the following is the binary representation of , in hexadecimal notation?
Official answer and solution
- Official answer
- C
- From
- Official GATE 2026 answer key
Solution
Unpack the sign, 8-bit biased exponent, and 23-bit mantissa of and , align the smaller exponent to the larger exponent, add the significands, and repack into hexadecimal.
- Unpack :
- In binary:
0011 0101 1100 0000 ... - Sign , biased exponent , significand .
- In binary:
- Unpack :
- In binary:
0011 0100 1010 0000 ... - Sign , biased exponent , significand .
- In binary:
- Align exponents and add significands:
- Since , shift 's significand right by bits to match exponent : .
- Add significands at exponent :
- Pack into IEEE 754 single-precision format:
- Sign , biased exponent , fraction :
- Sign , biased exponent , fraction :
Option (C)
Forgetting the implicit leading 1 of 's normalized significand () when shifting right by 2 bits.
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 36 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.