
ArrayList Practice Questions

Flashcard
•
Instructional Technology
•
11th Grade
•
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
Similar Resources on Wayground
15 questions
Java Inheritance Flashcard

Flashcard
•
11th Grade
15 questions
ArrayList Practice

Flashcard
•
9th - 12th Grade
15 questions
Multiplying Radicals

Flashcard
•
11th Grade
15 questions
Light and Color and Refraction

Flashcard
•
11th Grade
14 questions
Unit 7: Investing Vocab (Level 2)

Flashcard
•
11th - 12th Grade
15 questions
Forensic Science: Trace Evidence: Glass & Paint Review

Flashcard
•
11th - 12th Grade
15 questions
Understanding Pseudocode Concepts

Flashcard
•
12th Grade
15 questions
Test 1:9/19-Sheets Classes

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Instructional Technology
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade