In Python, Dictionaries are

grade 11 - CS -Assessment

Quiz
•
Computers
•
10th - 12th Grade
•
Medium
Bhoomika Anand
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
immutable
mutable
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Items are accessed by their keys in a dictionary
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionary keys must be _________
immutable
mutable
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would be the output of the following code snippet?
a_dict = {'color': 'blue', 'fruit': 'apple', 'pet': 'dog'}
for key in a_dict:
print(key)
'blue'
'apple'
'dog'
color
fruit
pet
blue
apple
dog
'color'
'fruit'
'pet'
5.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Select correct ways to create an empty dictionary
sampleDict = {}
sampleDict = dict()
sampleDict = dict{}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is the best description of a list in Python?
A list is a collection of data that has an order and can be changed
A list is a lot of variables
A list is used for shopping
A list is a collection of data that cannot hold duplicated data and cannot be changed
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these pieces of code would return the name "Harry" from the following list?
nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]
nameList()
nameList[1]
NameList(4)
nameList["4"]
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Problem Solving using Python and R - UNIT II - Dictionary

Quiz
•
12th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th Grade
10 questions
Python lists & file operations

Quiz
•
10th Grade
10 questions
Kiểm tra 15 phút - Lập trình python

Quiz
•
10th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
11 questions
Python Arrays

Quiz
•
9th - 10th Grade
15 questions
Python Lists

Quiz
•
10th - 12th Grade
15 questions
Python Programming Random Quiz

Quiz
•
11th 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