Single Choice Easy

Q

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

ID: #23947 ICSE Computer Application - Class X - 2023 PYQ 93 views
Question Info
#23947Q ID
EasyDifficulty
ICSE Computer Application - Class X - 2023 PYQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

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

Challenge a friend or share with your study group.