MCQ Practice Single Best Answer Topic: ICSE Computer Application - Class X - 2023 PYQ

Q

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

Question ID
#23947
Subchapter
ICSE Computer Application - Class X - 2023 PYQ
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is correct.

  • A 16.0
  • B 16
  • C 4.0
  • D 5.0
Correct Answer: C

Explanation

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

Share This Question

Share this MCQ with your friends or study group.