मराठी

Given: double m = Math.max(Math.cei1(14.55),15.5); What will be the final value stored in the variable m? - Computer Applications

Advertisements
Advertisements

प्रश्न

Given: double m = Math.max(Math.cei1(14.55),15.5); 

What will be the final value stored in the variable m?

पर्याय

  • 15.0

  • 14.0

  • 15.5 

  • 14.5

MCQ

उत्तर

15.5

Explanation:

  1. Math.ceil(14.55): This function returns the smallest integer larger than or equal to the specified number. For 14.55, Math.ceil(14.55) gives 15.0.
  2. Math.max(15.0, 15.5): This function returns the bigger of two values. Between 15.0 and 15.5, the greater value is 15.5. 
  3. So the final amount saved in the variable m is 15.5.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.07: Mathematical Library Methods - EXERCISES [पृष्ठ ८०]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.07 Mathematical Library Methods
EXERCISES | Q I. 2. | पृष्ठ ८०
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×