What is the result of evaluating the following two expressions using…

GATE · 2004 · CS

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) 

  1. A.

    9.51 and 10.0 respectively

  2. B.

    10.0 and 9.51 respectively

  3. C.

    9.51 and 9.51 respectively

  4. D.

    10.0 and 10.0 respectively

Attempted by 195 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…