Math Methods Quiz

By Mickey Arnold
Last updated 10 months ago
10 Questions

What is output by the code below?
System.out.println( Math.sqrt(49) );

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.ceil(7.1) );

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.round(5.2) );

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.round( 10 / 4) );

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.abs( -9 ) );

What is output by the code below?
System.out.println( Math.max(Math.min(9,5),11) );