
Python L21 Nesting & Dictionaries
Authored by Future Teacher
Computers
6th - 8th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does nesting mean in Python dictionaries?
Using only one dictionary
Putting a dictionary or list inside another dictionary
Repeating the same key multiple times
Creating a long list of values
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly shows a list nested inside a dictionary?
{"Germany": "Berlin", ["Munich", "Frankfurt"]}
["Germany": ["Munich", "Berlin"]]
{"Germany": ["Munich", "Berlin"]}
{["Germany"]: "Berlin"}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access "Jakarta" from the following dictionary?
travel_log = { "Indonesia": ["Surabaya", "Jakarta", "Bali"] }
travel_log[1]["Indonesia"]
travel_log["Jakarta"]
travel_log["Indonesia"][1]
travel_log["Indonesia"]["Jakarta"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A dictionary can store only one value per key unless you nest a list or another dictionary inside it.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In nested structures, you can combine dictionaries and lists together.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This structure is valid
Dictionary : {"A": ["X", {"Y": "Z"}]}
True
False
Answer explanation
7.
MATCH QUESTION
1 min • 1 pt
Match the concept to the correct structure:
Dictionary inside Dictionary
{"France": "Paris"}
Simple Dictionary
{"Malaysia": {"total_visited": 14}}
Nested List in Dictionary
{"Indonesia": ["Surabaya", "Bali"]}
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
ADOBE SPARKS
Quiz
•
7th Grade
17 questions
Codesters Vocabulary
Quiz
•
7th - 8th Grade
8 questions
Destiny Discover
Quiz
•
4th - 8th Grade
10 questions
Y8 Recap
Quiz
•
7th - 9th Grade
15 questions
How to use WhatsApp, Google Meet and Google Classroom
Quiz
•
7th Grade
14 questions
Minutes & Agendas
Quiz
•
7th Grade
17 questions
Cyber Camps 2018 - Review Day 3 Windows
Quiz
•
7th - 12th Grade
16 questions
Network - Types of Network & Encryption
Quiz
•
8th - 10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade