ICSE Class 10 Computer Applications Question 15 of 76

Revising Basic Java Concepts — Question 19

Back to all questions
19
Question

Question 14(c)

State the value and type of each expression.

Math.sqrt(0.0064)
Answer

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

Explanation

Math.sqrt() method returns the square root of its argument. As square root of 0.0064 is 0.08 hence that is the output. The return type of Math.sqrt() is double so the type of expression is double.