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
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
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
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic