Answer: C
To find Z = X + Y Z = X + Y Z = X + Y , we first decode the IEEE 754 single-precision representations of X X X and Y Y Y . The format consists of 1 sign bit (S S S ), 8 exponent bits (E E E ), and 23 fraction bits (F F F ).
1. Decoding X = 35 C 00000 16 X = 35\text{C}00000_{16} X = 35 C 0000 0 16 :
Binary: 0011 0101 1100 0000 0000 0000 0000 0000 2 0011\ 0101\ 1100\ 0000\ 0000\ 0000\ 0000\ 0000_2 0011 0101 1100 0000 0000 0000 0000 000 0 2 S = 0 S = 0 S = 0 (positive)E = 01101011 2 = 107 10 ⟹ Actual Exponent = 107 − 127 = − 20 E = 01101011_2 = 107_{10} \implies \text{Actual Exponent} = 107 - 127 = -20 E = 0110101 1 2 = 10 7 10 ⟹ Actual Exponent = 107 − 127 = − 20 F = 1000 … 2 ⟹ Mantissa = 1.1 2 F = 1000\dots_2 \implies \text{Mantissa} = 1.1_2 F = 1000 … 2 ⟹ Mantissa = 1. 1 2 X = 1.1 2 × 2 − 20 X = 1.1_2 \times 2^{-20} X = 1. 1 2 × 2 − 20 2. Decoding Y = 34 A 00000 16 Y = 34\text{A}00000_{16} Y = 34 A 0000 0 16 :
Binary: 0011 0100 1010 0000 0000 0000 0000 0000 2 0011\ 0100\ 1010\ 0000\ 0000\ 0000\ 0000\ 0000_2 0011 0100 1010 0000 0000 0000 0000 000 0 2 S = 0 S = 0 S = 0 (positive)E = 01101001 2 = 105 10 ⟹ Actual Exponent = 105 − 127 = − 22 E = 01101001_2 = 105_{10} \implies \text{Actual Exponent} = 105 - 127 = -22 E = 0110100 1 2 = 10 5 10 ⟹ Actual Exponent = 105 − 127 = − 22 F = 0100 … 2 ⟹ Mantissa = 1.01 2 F = 0100\dots_2 \implies \text{Mantissa} = 1.01_2 F = 0100 … 2 ⟹ Mantissa = 1.0 1 2 Y = 1.01 2 × 2 − 22 Y = 1.01_2 \times 2^{-22} Y = 1.0 1 2 × 2 − 22 3. Aligning Exponents and Addition:
Align Y Y Y to the larger exponent of − 20 -20 − 20 :
Y = 0.0101 2 × 2 − 20 Y = 0.0101_2 \times 2^{-20} Y = 0.010 1 2 × 2 − 20 Z = X + Y = ( 1.1 2 + 0.0101 2 ) × 2 − 20 = 1.1101 2 × 2 − 20 Z = X + Y = (1.1_2 + 0.0101_2) \times 2^{-20} = 1.1101_2 \times 2^{-20} Z = X + Y = ( 1. 1 2 + 0.010 1 2 ) × 2 − 20 = 1.110 1 2 × 2 − 20 4. Encoding Z Z Z back to IEEE 754:
S = 0 S = 0 S = 0 Actual Exponent = − 20 ⟹ E = − 20 + 127 = 107 = 01101011 2 \text{Actual Exponent} = -20 \implies E = -20 + 127 = 107 = 01101011_2 Actual Exponent = − 20 ⟹ E = − 20 + 127 = 107 = 0110101 1 2 Mantissa = 1.1101 2 ⟹ F = 11010000 … 2 \text{Mantissa} = 1.1101_2 \implies F = 11010000\dots_2 Mantissa = 1.110 1 2 ⟹ F = 11010000 … 2 Combining these fields into a 32-bit binary representation:
Z = 0 ⏟ Sign 0110 1011 ⏟ Exponent 1101 0000 0000 0000 0000 000 ⏟ Fraction Z = \underbrace{0}_{\text{Sign}}\ \underbrace{0110\ 1011}_{\text{Exponent}}\ \underbrace{1101\ 0000\ 0000\ 0000\ 0000\ 000}_{\text{Fraction}} Z = Sign 0 Exponent 0110 1011 Fraction 1101 0000 0000 0000 0000 000 Grouping into 4-bit hexadecimal nibbles:
Z = 0011 0101 1110 1000 0000 0000 0000 0000 2 = 35 E 80000 16 Z = 0011\ 0101\ 1110\ 1000\ 0000\ 0000\ 0000\ 0000_2 = 35\text{E}80000_{16} Z = 0011 0101 1110 1000 0000 0000 0000 000 0 2 = 35 E 8000 0 16 Thus, the correct option is C .