#How to you define an empty dictionary called myDict
Python 05 Dictionary/2D List

Quiz
•
Other
•
4th - 8th Grade
•
Hard
codeJuniors codeJuniors
Used 11+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
myDict = " "
myDict = 0
myDict = [ ]
myDict = { }
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#Which is the key and value
car = {"Brand" : "BMW"}
Key: Brand. Value: BMW
Key BMW, Value: Brand
{"Brand" : "BMW"}
"Brand" : "BMW"
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#Can the keys in a dictionary be the same name?
Yes
No
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#What is the output?
3
a,b,c
amt,bull,cow
6
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#What is the output?
"A", "B", "C"
"Apple", "Banana","Carrot"
"A": "Apple", "B": "Banana", "C":"Carrot"
Error
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#What is the output?
"Apple", "Banana", "Carrot"
"A","B","C"
"A": "Apple", "B": "Banana", "C":"Carrot"
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#How to print "Apple"
myDict = {"A": "Apple", "B": "Banana", "C":"Carrot"}
print(myDict["A"])
print(myDict[0])
print(myDict{0})
print(myDict{"A"})
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Fun with Food

Quiz
•
1st Grade - University
20 questions
Food and drink

Quiz
•
1st Grade - University
10 questions
FRUIT AND VEGETABLES

Quiz
•
4th Grade
15 questions
Bahasa inggris kelas 3

Quiz
•
3rd - 12th Grade
20 questions
Realidades 1 Chapter 3 A

Quiz
•
KG - 12th Grade
15 questions
Commas in a Series

Quiz
•
5th Grade
11 questions
Guess the car

Quiz
•
3rd - 9th Grade
20 questions
Article A, An, The

Quiz
•
7th - 10th 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 Other
15 questions
Character Analysis

Quiz
•
4th Grade
20 questions
Reading Comprehension

Quiz
•
5th 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
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check

Quiz
•
5th - 7th Grade
10 questions
Identifying equations

Quiz
•
KG - University