What is a List?
Data Structures Quiz

Quiz
•
Computers
•
12th Grade
•
Hard

Estebelle Khong
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Python Revision Tour

Quiz
•
12th Grade
10 questions
H466 - Arrays, Records, Tuples and Lists

Quiz
•
11th Grade - University
15 questions
Strings, sets, dicts, files, exceptions

Quiz
•
9th - 12th Grade
10 questions
9 . Lists, Tuples, Sets and Dictionary - 4

Quiz
•
12th Grade
10 questions
Vocabulary Do Now 1

Quiz
•
9th - 12th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
14 questions
Arrays, lists, tuples, stacks and queues

Quiz
•
11th - 12th Grade
10 questions
12 th cs one mark 7 to 9

Quiz
•
12th Grade
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
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

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

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University