English

The output of Math.abs(−99.99) is 100.00. - Computer Applications

Advertisements
Advertisements

Question

The output of Math.abs(−99.99) is 100.00.

Options

  • True

  • False 

MCQ
True or False

Solution

This statement is False.

Explanation:

  1. The Math.abs() function obtains the argument's absolute value, removing the negative sign and returning the positive value.
  2. Math.abs(−99.99) will return 99.99, not 100.00.
shaalaa.com
  Is there an error in this question or solution?
Chapter 1.07: Mathematical Library Methods - EXERCISES [Page 80]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.07 Mathematical Library Methods
EXERCISES | Q II. 3 | Page 80
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×