WorksheetsMATHEMATICAL FUNCTION
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
All mathematical functions are included in a class called
a)
Math
b)
System
c)
Scanner
2.
what will be the output of Math.sqrt(-4.0)
a)
2
b)
-2
c)
NaN
3.
What will be the return value of Math.pow(2.0,3.0)
a)
8.0
b)
8
c)
NaN
4.
The return value of Math.cbrt(-15.625) is
a)
2.5
b)
-2.5
c)
NaN
5.
The return data type for the Math.round() is________
a)
float
b)
integer
c)
double
6.
Math.ceil() will always return _____ data type
a)
integer
b)
float
c)
double
7.
The output of the function Math.ceil(-31.987)
a)
-31
b)
-32
c)
-30
8.
The output of Math.floor(36.987) is
a)
36
b)
37
c)
35
9.
The output of the function Math.floor(-0.9)
a)
1
b)
0
c)
-1
10.
Math.max(-43,-41) will return
a)
-43
b)
-41
c)
NaN
100 %
