NEW
Font size
WorksheetsJava Math
Total questions: 10
Worksheet time: 5mins
What is the displayed value for Java coding below:
System.out.println(Math.min(100, 200, 300, 400));
100
200
300
400
What is the displayed value for Java coding below:
System.out.println(Math.max(100, 200, 300, 400));
100
200
300
400
What is the displayed value for Java coding below:
System.out.println(Math.abs(-7.25));
7.25
+7.25
-7.25
+7.25-
What is the displayed value for Java coding below:
System.out.println(Math.pow(8, 3));
6561
6424
64
24
What is the displayed value for Java coding below:
System.out.println(Math.PI);
3.141592653589793
3.142
31.41592653589793
π
What is the displayed value for Java coding below:
System.out.println(Math.ceil(2.6));
3
2
2.5
3.5
What is the displayed value for Java coding below:
System.out.println(Math.floor(2.6));
3
2
2.5
3.5
What is the displayed value for Java coding below:
System.out.println(Math.min(-100, -200, 100, 200));
-100
-200
100
200
What is the displayed value for Java coding below:
System.out.println(Math.max(-100, -200, +100, +200));
+100
+200
100
200
What is the displayed value for Java coding below:
System.out.println(Math.pow(2, 2));
4
8
2
16
