
Quiz 02 - ArrayList

Quiz
•
Other
•
University
•
Medium
Mclyn Rinon
Used 44+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a built-in array and an ArrayList in Java?
Arrays can store objects only.
ArrayLists can be resized dynamically.
Arrays can be resized dynamically.
ArrayLists can only store strings.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add an element to an ArrayList?
append()
add()
insert()
push()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the first element of an ArrayList named 'cars'?
cars[0]
cars.get(1)
cars.get(0)
cars.first()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method would you use to remove an element from an ArrayList?
erase()
discard()
remove()
delete()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the size() method return?
The type of elements in the ArrayList.
The index of the last element.
The maximum capacity of the ArrayList.
The number of elements in the ArrayList.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create an ArrayList of integers?
ArrayList
ArrayList
ArrayList
ArrayList
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to sort an ArrayList?
organize()
sort()
order()
arrange()
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Mastery Quiz - LinkedList

Quiz
•
University
10 questions
TCM Knowledge

Quiz
•
University
15 questions
Quiz-4: Function & Array

Quiz
•
University
12 questions
the show some assembly required

Quiz
•
KG - Professional Dev...
10 questions
Exploring Dictionaries and Arrays in Python

Quiz
•
University
10 questions
Java Single Array Quiz

Quiz
•
University
10 questions
Uji Pemahaman Algoritma dan Struktur Data

Quiz
•
University
16 questions
Exploring Stacks in Data Structures

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University