Data Structures Quiz

Data Structures Quiz

12th Grade

10 Qs

quiz-placeholder

Similar activities

Debugging Challenge 2

Debugging Challenge 2

7th - 12th Grade

15 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Recap

Recap

12th Grade

10 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

HARD DISK DRIVE

HARD DISK DRIVE

11th - 12th Grade

10 Qs

Chapter 8 Week 1

Chapter 8 Week 1

9th - 12th Grade

11 Qs

Data Structures Quiz

Data Structures Quiz

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

Estebelle Khong

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a List?

An unordered collection of immutable items

A collection of distinct/unique items

An ordered collection of mutable items

A collection of key/value pairs

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the main difference between a List and a Tuple?

A Tuple is immutable while a List is mutable

A List is enclosed by square brackets while a Tuple is enclosed by curly braces

A Tuple is an ordered collection while a List is an unordered collection

A List can contain key/value pairs while a Tuple cannot

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the .append() function do in Python Lists?

Adds an item to the end of the List

Insert an item to the List based on index position

Removes an item from the List

Returns the number of items in the List

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the .values() function do in Python Dictionaries?

Returns the number of items in the Dictionary

Prints out all the keys within the Dictionary

Removes a key with its value from the Dictionary

Prints out all the values within the Dictionary

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one of these is correct about a set?

x = (1, 2, 3, 4)

x = {1, 2, 3, 4}

x = [1, 2, 3, 4]

x = {"a": 1, "b": 2, "c":3, "d": 4}

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the len() function in Python?

Adds items to a List or Dictionary

Deletes items from a List or Dictionary

Returns the number of items in a List, Tuple, or Dictionary

Sorts the items in a List or Dictionary

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is a Set in Python?

A collection of key/value pairs

An unordered collection of unique items

A collection of items enclosed by round brackets ( )

An ordered collection of mutable items

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?