
APCSA unit 3 practice question set 2
Authored by Caleb Kim
Computers
9th - 12th Grade
Used 3+ 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.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the output of the below code?
String a = "This#car#is#fast";
System.out.println(a.split("i")[2]);
(a)
2.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the name of the String method that accesses a portion of the calling String?
(a)
3.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What String method returns an Array of Strings created by breaking up the calling String?
(a)
4.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What String method is used to search the calling String for another String and then return the index where it was found?
(a)
5.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What does indexOf return when the value being searched for is not present in the calling String?
(a)
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What boolean String method is used to determine if the calling String contains another String?
(a)
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
What is the output of the below code?
String s= "This is a String";
System.out.println(s.endsWith("ring"));
(a)
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 Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?