Computer Applications
Give the output of Math.sqrt(x); when x = 9.0.
- 3
- 3.0
- 3.00
- All of these
Java Math Lib Methods
1 Like
Answer
3.0
Reason — Math.sqrt() method returns the square root of an argument. Thus, 3.0 is returned by Math.sqrt(9.0).
Answered By
1 Like
Related Questions
The statement
(1 > 0) || (1 < 0)evaluates to- 0
- 1
- false
- true
The parameters that are passed to the method when it is invoked are called
- formal parameters
- actual parameters
- informal parameters
- void parameters
What will be the output of the following code?
String a[] = {"MI", "Samsung", "Micromax", "One Plus"}; System.out.println(a[3].length());- 8
- 7
- 5
- 9
Polymorphism is broadly used in implementing ……………
- inheritance
- encapsulation
- abstraction
- literals