Java Math
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Bob Powers
Used 57+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(4 / 5);
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(4 * 2.0);
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println("b" + 2 * 2);
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(1 / 2.0);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
int x = 5.0 + 2;
7
7.0
There will be a runtime error
There will be a syntax error
5.02
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the value in variable x after this code segment is executed?
String x = "" + 4 + 2;
"6"
"6.0"
There will be a runtime error
There will be a syntax error
"42"
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will the following code segment print?
System.out.println(17 % 3);
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
1.8 Open Source & Closed Source TRUE or FALSE
Quiz
•
10th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
13 questions
9G4 CS Python Programming Sequence and Vocabs
Quiz
•
9th Grade
10 questions
Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội
Quiz
•
10th - 12th Grade
17 questions
Operating System
Quiz
•
12th Grade
11 questions
Chapter 6 Part 2 - 4
Quiz
•
11th - 12th Grade
15 questions
ôn tập giữa kì 1
Quiz
•
9th Grade
20 questions
Term 3 - CCDI - Adv - Checkpoint Quiz1
Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
