Mathematical Library Methods — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
Which package contains the Math class (and is auto-imported)?
Ajava.util
Bjava.lang
Cjava.io
Djava.math
Question 2
Math.sqrt(81) returns…
A9.0
B81
C3.0
D6561
Question 3
Math.ceil(4.1) returns…
A4.0
B5.0
C4
D4.1
Question 4
What does 7 / 2 give in Java (both ints)?
A3.5
B3
C4
D3.0
Question 5
Math.pow(2, 5) returns…
A10.0
B25.0
C32.0
D7.0