
AP Java Unit 2 Quiz
Authored by Richard Whitehead
Computers
10th - 12th Grade
Used 70+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the name of the method to print out text in Java?
System.out.println()
System.out.PRINTLN()
System.output()
System.out.printline()
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following lines?
int x = 24;
System.out.println("The total is " + x + x);
The total is x + x
The total is 48
The total is 2424
The total is 24
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a primitive type?
String
char
boolean
int
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of x after this code?
int x = 5;
x = 10;
x = 4;
5
true
10
4
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the proper syntax to declare and initialize a double called temperature to have the value 70.4?
int temperature = 70.4;
double temperature = 70.4;
temperature = 70.4;
float temperature = 70.4;
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of this expression?
(int) (5 + 2 / 3 + 1)
6
5
6,67
0
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which expression returns the 1’s place of an integer x?
x + 1
x % 10
x % 100
x / 10
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
21 questions
Sets
Quiz
•
11th Grade
20 questions
Bài tập về chương trình con
Quiz
•
11th Grade
20 questions
Data structure test1
Quiz
•
12th Grade
20 questions
Pemrograman Dasar 3
Quiz
•
9th - 12th Grade
20 questions
مراجعة-علوم الحاسب-نهاية ف2
Quiz
•
11th Grade
20 questions
Quiz on Excel
Quiz
•
12th Grade
20 questions
TEST1.PY
Quiz
•
10th Grade - University
20 questions
UKK TKJ 2022-P2
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade