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
Bahasa inggris kelas 3

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

Quiz
•
5th Grade
11 questions
Guess the car

Quiz
•
3rd - 9th Grade
10 questions
Urdu

Quiz
•
2nd - 8th Grade
12 questions
Spanish-fruits and vegetables

Quiz
•
6th - 9th Grade
20 questions
Spanish Foods

Quiz
•
6th Grade
20 questions
Food and drink

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

Quiz
•
4th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Other
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

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

Quiz
•
5th Grade
30 questions
Teacher Facts

Quiz
•
6th Grade
10 questions
Common Denominators

Quiz
•
5th Grade