
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);
Create a free account and access millions of resources
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
EOC Review (Units 2 & 4)
Flashcard
•
11th Grade
15 questions
Flashcard - Co-terminal Angles
Flashcard
•
11th Grade
15 questions
Final exam review2
Flashcard
•
11th Grade
15 questions
Review-1
Flashcard
•
11th Grade
15 questions
Factoring Quadratics
Flashcard
•
11th Grade
15 questions
Naming Compounds
Flashcard
•
10th - 11th Grade
14 questions
Taxonomy
Flashcard
•
11th Grade
15 questions
Complex Numbers
Flashcard
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Instructional Technology
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University