Question:medium

Consider the following statements: \[ \begin{aligned} (i) &\ \text{Perform addition/subtraction on the mantissas} (ii) &\ \text{Set the exponent of the result} (iii) &\ \text{Choose the number with the smaller exponent and shift its mantissa} (iv) &\ \text{Normalize the result} \end{aligned} \] Find the correct add/subtract rule sequence.

Show Hint

Floating-point addition rule: \[ \text{Align Exponents} \rightarrow \text{Add/Subtract Mantissas} \rightarrow \text{Normalize} \rightarrow \text{Adjust Exponent} \] Always remember: exponent alignment comes first.
  • (i), (iii), (ii), (iv)
  • (iii), (i), (iv), (ii)
  • (i), (ii), (iv), (iii)
  • (iii), (ii), (i), (iv)
Show Solution

The Correct Option is B

Solution and Explanation


Step 1:
Align the exponents.
When two floating-point numbers have different exponents, the mantissa corresponding to the smaller exponent is shifted until both exponents become equal. Therefore the first operation is: \[ (iii) \]

Step 2:
Perform mantissa addition/subtraction.
After alignment of exponents, the mantissas are added or subtracted. \[ (i) \]

Step 3:
Normalize the result.
The obtained result may not be in normalized form. Hence normalization is performed. \[ (iv) \]

Step 4:
Determine the final exponent.
After normalization, the exponent of the result is adjusted accordingly. \[ (ii) \]

Step 5:
Write the correct sequence.
\[ (iii)\rightarrow(i)\rightarrow(iv)\rightarrow(ii) \] Thus, \[ {(iii),(i),(iv),(ii)} \] Hence option (B) is correct.
Was this answer helpful?
0


Questions Asked in Karnataka PGCET exam