
AP Java Unit 2 Quiz

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Richard Whitehead
Used 69+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Linguaggio C++

Quiz
•
10th - 12th Grade
24 questions
Java Loops

Quiz
•
10th - 12th Grade
20 questions
Computer Science: Chapter 2 Test Review

Quiz
•
9th - 12th Grade
25 questions
Feb 20, 2025 AP CompSci - 1st Period

Quiz
•
12th Grade - University
27 questions
AP CS A CH 1 Review

Quiz
•
10th - 12th Grade
20 questions
Unit 1 - Introduction to Kotlin (L2)[ID]

Quiz
•
12th Grade
25 questions
Java Programming Quizz-GX

Quiz
•
9th - 12th Grade
20 questions
Java-Control Statements Part 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade