हिंदी

Given: double b = Math.ceil(3.4) + Math.pow(2, 3); - Computer Applications

Advertisements
Advertisements

प्रश्न

Given: double b = Math.ceil(3.4) + Math.pow(2, 3);

विकल्प

  • 12.0

  • 11.0

  • 11.4

  • 11.5

MCQ

उत्तर

12.0

Explanation:

Math.ceil() returns the smallest whole number that is bigger than or equal to the argument. Math.pow(a,b) gives the value ab. Therefore, the ultimate value of b will be:

b = Math.ceil(3.4) + Math.pow(2,3);

b = 4.0 + 8.0

b = 12.0

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.07: Mathematical Library Methods - EXERCISES [पृष्ठ ८०]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×