
Practice for 11th AP Java Quiz
Authored by Arthur Simon
Computers
9th - 12th Grade
Used 348+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the replacements for A and B would produce the output shown?
A=5 B=4
A=4 B=5
A=4 B=3
A=3 B=4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
2
3
4
ArrayIndexOutOfBoundsException
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
2
3
4
ArrayIndexOutOfBoundsException
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which replacement for < MISSING CODE > traverses the array in row column order?
A only
B only
C only
D only
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given the declarations and initializations, which of the following would cause an error?
letters1.contains('a')
letters2.contains('a')
letters3.contains("a")
none of these would cause an error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
2
3
4
ArrayIndexOutOfBoundsException
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
1
2
num: 1
num: 2
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?