CS Data Structure Quiz

CS Data Structure Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

Arrays and Lists

Arrays and Lists

10th - 11th Grade

15 Qs

DATA STRUCTURE USING C

DATA STRUCTURE USING C

KG - University

15 Qs

Java Arrays  Prt 1Quiz

Java Arrays Prt 1Quiz

9th - 12th Grade

15 Qs

GCSE Computing: Lists and Arrays

GCSE Computing: Lists and Arrays

10th - 11th Grade

15 Qs

Arrays and Lists

Arrays and Lists

6th - 12th Grade

10 Qs

CSP Vocab Practice 1

CSP Vocab Practice 1

10th - 12th Grade

16 Qs

Ripasso c++ - Array - 4BI

Ripasso c++ - Array - 4BI

11th Grade

18 Qs

XI Arrays & Structtures 2023

XI Arrays & Structtures 2023

9th - 12th Grade

20 Qs

CS Data Structure Quiz

CS Data Structure Quiz

Assessment

Quiz

Computers

11th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?