CS Data Structure Quiz
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Matias Sutter
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
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
10 questions
ICT Activity 403 | Webpage Building
Quiz
•
11th Grade
18 questions
Systemy operacyjne
Quiz
•
8th Grade - Professio...
20 questions
Web development
Quiz
•
9th - 12th Grade
15 questions
Soal Java
Quiz
•
11th Grade - University
10 questions
JSPS Competition Hackathon - HTML Language Grade 4 & 5
Quiz
•
4th Grade - University
15 questions
Mảng 1 chiều
Quiz
•
8th - 11th Grade
18 questions
What's In Your Phone?
Quiz
•
9th - 12th Grade
15 questions
Data Analysis Pop Quiz
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
