placeholder image to represent content

Mathematical Library Methods

Quiz by Kavitha Praseed

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
10 questions
Show answers
  • Q1

    Which of the following syntax is the correct one to find the square root of a number?

    Math.sqrt(a)

    None

    sqrt(a)

    Squareroot(a)

    45s
  • Q2

    Give the output of the Math.abs(x); when x=-89.99

    -89.99

    89.99

    -89

    90.0

    45s
  • Q3

    Name the class that is used for different Mathematical functions.

    None

    java.Sqrt

    java.Power

    java.Math

    30s
  • Q4

    What type of value is returned by Math.pow()?

    int

    double

    long

    float

    30s
  • Q5

    What type of value is returned by Math.random()?

    long

    float

    double

    int

    30s
  • Q6

    Which of the following does not find the square of a number?

    Math.pow(a,2)

    a*a

    All of the above

    Math.sqrt(a)

    30s
  • Q7

    Give the ouput of the function Math.floor(-99.51)

    100

    -99

    99

    -100

    30s
  • Q8

    Give the output of the function Math.ceil(-6.35)

    -6.0

    -7.0

    7.0

    6.35

    30s
  • Q9

    Give the output of the function Math.abs(Math.max(-81,-87))

    87

    81

    87.0

    81.0

    30s
  • Q10

    Give the output of the function Math.pow(2,4)

    16

    16.0

    8.0

    8

    30s

Teachers give this quiz to your class