Skip to content

GATE CS 2004 Q28 — Number Representations (Fixed and Floating Point)

Explain with AI

What is the result of evaluating the following two expressions using three-digit floating point arithmetic with rounding?

(113.+−111.)+7.51(113. + -111.) + 7.51

113.+(−111.+7.51)113. + (-111. + 7.51)

Choose one option
View worked solution

Answer: A

In 3-digit floating-point arithmetic, numbers are represented in scientific notation with exactly 3 significant decimal digits (i.e., in the form d.dd×10ed.dd \times 10^e). After every arithmetic operation, the result must be rounded to 3 significant digits.

1. Evaluating Expression 1: (113.+−111.)+7.51(113. + -111.) + 7.51

  • Step 1: Evaluate (113.+−111.)(113. + -111.) 113.=1.13×102113. = 1.13 \times 10^2 −111.=−1.11×102-111. = -1.11 \times 10^2 Adding them: (1.13−1.11)×102=0.02×102=2.00×100(1.13 - 1.11) \times 10^2 = 0.02 \times 10^2 = 2.00 \times 10^0 This result (2.002.00) already has 3 significant digits.
  • Step 2: Add 7.517.51 2.00×100+7.51×100=9.51×100=9.512.00 \times 10^0 + 7.51 \times 10^0 = 9.51 \times 10^0 = 9.51 This result (9.519.51) has exactly 3 significant digits.

Thus, the first expression evaluates to 9.519.51.

2. Evaluating Expression 2: 113.+(−111.+7.51)113. + (-111. + 7.51)

  • Step 1: Evaluate (−111.+7.51)(-111. + 7.51) −111.=−1.11×102-111. = -1.11 \times 10^2 7.51=0.0751×1027.51 = 0.0751 \times 10^2 Adding them: (−1.11+0.0751)×102=−1.0349×102(-1.11 + 0.0751) \times 10^2 = -1.0349 \times 10^2 Rounding −1.0349×102-1.0349 \times 10^2 to 3 significant digits (the fourth digit is 4<54 < 5, so we round down in magnitude): −1.03×102=−103.-1.03 \times 10^2 = -103.
  • Step 2: Add 113.113. 113.+(−103.)=1.13×102−1.03×102=0.10×102=1.00×101=10.0113. + (-103.) = 1.13 \times 10^2 - 1.03 \times 10^2 = 0.10 \times 10^2 = 1.00 \times 10^1 = 10.0 This result (10.010.0) has exactly 3 significant digits.

Thus, the second expression evaluates to 10.010.0.

Therefore, the results are 9.519.51 and 10.010.0 respectively.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Number Representations (Fixed and Floating Point) questions