Computer Applications
For which of the following purposes, the Scanner class is used?
- To display a value
- To find square root of a number
- To input a value
- To find maximum of two numbers
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
What type of value is returned by Math.sqrt( )?
- int
- float
- double
- long
Which of the following functions will find the square root of a number 'a'?
- sqrt(a)
- Math.sqrt(a)
- Squareroot(a)
- √a