Math Class in Java
Quiz
•
Computers
•
12th Grade
•
Medium
J Patterson
Used 34+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println(Math.random());
0.0 <= x <1.0
0 < = 1
0.0 < = x1.0
1.0
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println(Math.sqrt(49));
7
-7
7.0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println((int)Math.random()* 50);
integer from 1 to 50 incusive
integer from 3 to 7 inclusive
integer from 0 to 49 inclusive
integer from 1 to 49 inclusive
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println(Math.pow(4, 2));
8
16
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println(Math.abs(-4));
-4
4
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println((int)Math.random()* 4 +2);
integer from 3 to 5 inclusive
integer from 2 to 5 inclusive
integer from 4 to 5 inclusive
integer from 3 to 6 inclusive
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println(Math.abs(6.3));
6.3
-6.3
6.0
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be output by the following Java code?
System.out.println((int)Math.random()* 7) + 1);
integer from 1 to 8 inclusive
integer from 0 to 8 inclusive
integer from 0 to 7 inclusive
integer from 1 to 7 inclusive
Similar Resources on Wayground
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
11 questions
Identifying devices
Quiz
•
12th Grade
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
10 questions
INTRODUCCION A LA PROGRAMACION
Quiz
•
6th Grade - University
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
13 questions
Stepwise Refinement
Quiz
•
11th - 12th Grade
10 questions
Quiz Perangkat Keras Komputer
Quiz
•
10th Grade - University
12 questions
แบบทดสอบความรู้ทั่วไปเกี่ยวกับคอมพิวเตอร์และเทคโนโลยีสารสนเทศ
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
