
Unit 7 ArrayLists
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Lauren Olson
Used 146+ times
FREE Resource
Student preview

25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which is the correct way to declare an ArrayList of Strings in Java?
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which is correct syntax to access an element of an ArrayList in Java?
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
How do you add an element with the value "Pikachu" to the back of an ArrayList called "pokemon" in Java?
pokemon.add("Pikachu");
pokemon.append("Pikachu");
pokemon.push_back("Pikachu");
pokemon[last_index + 1] = "Pikachu";
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
How do you get the number of elements in an ArrayList called "list" in Java?
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
If an ArrayList<String> list has been initialized with 5 strings, the statement
list.add(6, "cat");
will throw an IndexOutOfBoundsException.
TRUE
FALSE
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
You can add an item in a(n) ____ and the size expands automatically to accommodate the new item.
Array
ArrayList
ResizableArray
array
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Consider the following code segment:
What is printed as a result of executing the code segment?
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?
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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