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
#How to you define an empty dictionary called myDict
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 Wayground
15 questions
Reviewing Macronutrients

Quiz
•
7th - 8th Grade
20 questions
INDIANA HORTICULTURE CDE VEGETABLE ID 2

Quiz
•
6th - 12th Grade
10 questions
HE HE

Quiz
•
6th Grade
18 questions
October Monthly evaluation

Quiz
•
3rd - 6th Grade
20 questions
English Quizizz For Class 5

Quiz
•
5th Grade
10 questions
Review Falcon Pretest - Condensed Version

Quiz
•
8th Grade
10 questions
English Grade 4

Quiz
•
1st - 5th Grade
20 questions
Diagnostic Test Modul 2 English Year 8

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Finding Volume of Rectangular Prisms

Quiz
•
5th Grade