ICSE Class 10 Computer Applications Question 5 of 30

Solved 2023 Question Paper ICSE Class 10 Computer Applications — Question 5

Back to all questions
5
Question

Question 1(v)

What value will Math.sqrt(Math.ceil(15.3)) return?

  1. 16.0
  2. 16
  3. 4.0
  4. 5.0
Answer

4.0

Reason — Math.ceil method returns the smallest double value that is greater than or equal to the argument and Math.sqrt method returns the square root of its argument as a double value. Thus the given expression is evaluated as follows:

Math.sqrt(Math.ceil (15.3))
= Math.sqrt(16.0)
= 4.0