ICSE Class 10 Computer Applications Question 14 of 76

Revising Basic Java Concepts — Question 18

Back to all questions
18
Question

Question 14(b)

State the value and type of each expression.

Math.abs(-1e-1) +  Math.abs(-2e-2)
Answer

The output value is 0.12. The type of expression is double.

Explanation

    Math.abs(-1e-1) + Math.abs(-2e-2)
⇒ 0.1 + 0.02
⇒ 0.12