English

Math.sqrt(−225) can't be defined. - Computer Applications

Advertisements
Advertisements

Question

Math.sqrt(−225) can't be defined.

Options

  • True

  • False

MCQ
True or False

Solution

This statement is True.

Explanation:

The Math.sqrt() function in Java returns the square root of an integer. The square root of negative numbers cannot be calculated inside the set of real numbers. Instead, it returns NaN (Not a Number), indicating that the square root of a negative number is fictitious. As a result, it is true to state that the square root of −225 cannot be defined in the natural number system.

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. 4. | Page 80
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×