Computer Applications
What type of value is returned by Math.sqrt( )?
- int
- float
- double
- long
Input in Java
8 Likes
Answer
double
Reason ā Return type of Math.sqrt( ) is double.
Answered By
4 Likes
Related Questions
Which of the following statements is true for nextDouble( )?
- It accepts an integer type value
- It accepts a double type value
- It accepts a float type value
- It accepts a long type value
Which of the following does not find the square of a number?
- Math.pow(a,2)
- a*a
- Math.sqrt(a,2)
- a**2
Which of the following functions will find the square root of a number 'a'?
- sqrt(a)
- Math.sqrt(a)
- Squareroot(a)
- āa
Which of the following package will you import to use Scanner class?
- java_util;
- Scanner.class;
- java.util;
- java.scanner.util;