Math Methods Quiz
star
star
star
star
star
Last updated over 1 year ago
10 questions
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
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
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
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
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
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
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
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
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
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) );