
Practice for 8th AP Java Quiz
Authored by Arthur Simon
Computers
10th - 12th Grade
Used 109+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Java String is a
primitive
Object
char
bother
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
false true
true false
true true
false false
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using + with Strings results in
concatenation
addition
encapsulation
an error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which replacement for /* missing code */ would print abba?
a+b+b+a
b+a+a+b
x+y+y+x
y+x+x+y
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following would return "x" for String s = new String("abcxcba")?
s.substring(3)
s.substring(4)
s.substring(3,4)
s.substring(4,5)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of this program?
j
the empty String
abcdefghij
error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which replacement for /* missing code */ would print zy?
s.substring(1,2)
s.substring(0,2)
str.substring(1,2)
str.substring(0,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?