
ArrayList Practice Questions
Flashcard
•
Instructional Technology
•
11th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

18 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What method is used to get the number of elements in an ArrayList?
Back
size()
2.
FLASHCARD QUESTION
Front
Which of the following is NOT true about ArrayLists?
They can hold primitive types directly,
They are mutable,
They are part of the java.util package,
They can change size during runtime
Back
They can hold primitive types directly
3.
FLASHCARD QUESTION
Front
Why do ArrayLists use get and set methods instead of the index operator?
Back
Because ArrayLists are a class with methods.
4.
FLASHCARD QUESTION
Front
Which statement below is the correct way to retrieve the first element in the nums ArrayList? Options: nums.get(0), nums[0], nums(0), nums[1]
Back
nums.get(0)
5.
FLASHCARD QUESTION
Front
What is the starting index of an ArrayList?
Back
0
6.
FLASHCARD QUESTION
Front
What happens automatically when primitive types are added to an ArrayList?
Back
They are wrapped in objects.
7.
FLASHCARD QUESTION
Front
What is the correct way to add an integer to an ArrayList in all Java versions? Options: list.add(new Integer(5));, list.add(5);, list.add(Integer.valueOf(5));, list.add(5.0);
Back
list.add(5);
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?
Similar Resources on Wayground
15 questions
Geometry Fall Semester Exam Review 2024
Flashcard
•
10th Grade
15 questions
Matrices
Flashcard
•
10th - 12th Grade
15 questions
Cybersecurity and Crime
Flashcard
•
11th Grade
15 questions
Operations with Vectors
Flashcard
•
11th Grade
12 questions
Essay Writing
Flashcard
•
11th - 12th Grade
15 questions
Angles in the Coordinate Plane
Flashcard
•
11th - 12th Grade
15 questions
Simplify, add and subtract complex numbers
Flashcard
•
11th - 12th Grade
16 questions
Colon and Semicolor Review
Flashcard
•
10th - 11th Grade
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade