Math Methods Quiz
By Mickey Arnold
starstarstarstarstarstarstarstarstarstar
Last updated 10 months ago
10 Questions
1 point
1
Question 1
1.
What is output by the code below?System.out.println( Math.sqrt(49) );
What is output by the code below?
System.out.println( Math.sqrt(49) );
1 point
1
Question 2
2.
What is output by the code below?System.out.println( Math.floor(5.7) );
What is output by the code below?
System.out.println( Math.floor(5.7) );
1 point
1
Question 3
3.
What is output by the code below?System.out.println( Math.ceil(7.1) );
What is output by the code below?
System.out.println( Math.ceil(7.1) );
1 point
1
Question 4
4.
What is output by the code below?System.out.println( Math.pow(3,2) );
What is output by the code below?
System.out.println( Math.pow(3,2) );
1 point
1
Question 5
5.
What is output by the code below?System.out.println( Math.round(5.2) );
What is output by the code below?
System.out.println( Math.round(5.2) );
1 point
1
Question 6
6.
What is output by the code below?System.out.println( Math.pow( Math.sqrt(16),3) );
What is output by the code below?
System.out.println( Math.pow( Math.sqrt(16),3) );
1 point
1
Question 7
7.
What is output by the code below?
System.out.println( Math.round( 10 / 4) );
What is output by the code below?
System.out.println( Math.round( 10 / 4) );
1 point
1
Question 8
8.
What is output by the code below?
System.out.println( Math.round(10.0 /4) );
What is output by the code below?
System.out.println( Math.round(10.0 /4) );
1 point
1
Question 9
9.
What is output by the code below?System.out.println( Math.abs( -9 ) );
What is output by the code below?
System.out.println( Math.abs( -9 ) );
1 point
1
Question 10
10.
What is output by the code below?System.out.println( Math.max(Math.min(9,5),11) );
What is output by the code below?
System.out.println( Math.max(Math.min(9,5),11) );