Which of the following is a difference between an Array and an ArrayList?
PreTrainingCollectionsArrays

Quiz
•
Computers, Professional Development
•
Professional Development
•
Medium
Keven N Mitchell
Used 22+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Arrays can change in size
ArrayLists can store primitive values
Arrays are not a class in the collections Framework
ArrayLists can be created with an array literal
2.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
How do we retrieve an element at a particular index from an ArrayList?
using square brackets
using the find method
using the get method
using the pop method
3.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
True/False: collections can contain primitive variables
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 5 pts
Which of the following is true for a HashMap?
HashMaps can be used in a for-each loop
HashMaps can store duplicate keys
HashMaps store entries in Key,Value pairs
HashMaps can store primitive values
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Queues store values in __in, __out order
Last, First
First, Last
First, First
6.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Stacks store values in __in, __out order
Last, Last
First, First
Last, First
7.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
To pull an element from a queue and reduce the size by 1, we use the ____ method
find
push
poll
get
8.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Array indexes start at _
0
1
10
11
9.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
To get the 5th item in an array or ArrayList, we would get index _
6
5
4
Similar Resources on Quizizz
8 questions
GO4 x FE23! Quiz Zerius Day 3

Quiz
•
Professional Development
10 questions
Data Types and Variables

Quiz
•
Professional Development
6 questions
Section D - 1 - How Data is Organised - Data Structures 1

Quiz
•
Professional Development
12 questions
BFM3002 - QUIZ 2

Quiz
•
University - Professi...
9 questions
Javascript Array and Object

Quiz
•
University - Professi...
10 questions
Quiz Collections in Java

Quiz
•
Professional Development
10 questions
C Structures

Quiz
•
Professional Development
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade