CS Data Structure Quiz

Quiz
•
Computers
•
11th Grade
•
Hard

Matias Sutter
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A collection in Java is a group of objects which are represented as a single unit.
True
False
Maybe
Ok
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the collection framework in Java hold?
All the collection classes and interfaces
Only the collection classes
Only the collection interfaces
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between an array and a collection in Java?
Arrays are dynamic, collections are fixed
Arrays are fixed-size, collections are dynamic
There is no difference
Arrays and collections are the same thing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of an array over a collection?
Arrays can grow or shrink dynamically
Arrays have a fixed size and provide direct access to elements using an index
Arrays can only store objects
Arrays can only store primitive types
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the advantage of a collection over an array?
Collections have a fixed size
Collections can only store objects
Collections can grow or shrink dynamically
Collections can only store primitive types
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method adds an element to the collection?
add(E element)
remove(Object o)
clear()
size()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method 'isEmpty()' do?
Adds an element to the collection
Removes an element from the collection
Returns the number of elements in the collection
Returns true if the collection contains no elements
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Data Structures & Types

Quiz
•
11th Grade
20 questions
APCS A - Array 6.1,6.2,6.3,6.

Quiz
•
9th - 12th Grade
20 questions
Season 5 #Spaic Python Weekly Quiz

Quiz
•
KG - Professional Dev...
12 questions
Javascript Arrays

Quiz
•
9th - 12th Grade
16 questions
As - Data Structures Quiz

Quiz
•
11th Grade
10 questions
8.2 Arrays Cambridge IGCSE 0478

Quiz
•
10th Grade - University
20 questions
Programming Fundamentals Part 2

Quiz
•
9th - 11th Grade
17 questions
Data Structures: 1D,2D & List

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade