ICSE Class 10 Computer Applications Question 7 of 30

Solved Sample Paper 2 — Question 7

Back to all questions
7
Question

Question 1(vii)

Give the output of Math.sqrt(x); when x = 9.0.

  1. 3
  2. 3.0
  3. 3.00
  4. All of these
Answer

3.0

Reason — Math.sqrt() method returns the square root of an argument. Thus, 3.0 is returned by Math.sqrt(9.0).