Python L20 Dictionary
Quiz
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Medium
Future Teacher
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol is used to define a dictionary in Python?
[]
{}
()
<>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct dictionary entry in Python?
["Bug": "An error in the program"]
{Bug, "An error in the program"}
{"Bug": "An error in the program"}
("Bug": "An error in the program")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you retrieve the value of the key "Bug" from programming_dictionary?
programming_dictionary["Bug"]
programming_dictionary("Bug")
programming_dictionary.Bug
programming_dictionary["Function"]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You can use a comma to separate different key-value pairs in a dictionary.
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionaries in Python are indexed using numbers like lists.
True
False
Answer explanation
Dictionaries in Python are not indexed using numbers like lists. Instead, they use keys to access values.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An empty dictionary can be created using empty_dictionary = {}.
True
False
7.
MATCH QUESTION
1 min • 1 pt
Match the key with its correct definition:
Bug
A piece of code that you can call over and over again
Function
The action of doing something repeatedly
Loop
An error in a program that prevents it from running as expected
Create a free account and access millions of resources
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
14 questions
Computing figures
Quiz
•
4th - 12th Grade
10 questions
Photoshop Basics
Quiz
•
8th Grade
10 questions
IT Microsoft excel
Quiz
•
8th Grade
10 questions
Quiz #1
Quiz
•
7th Grade
15 questions
KKHP Roblox Game Development Quiz
Quiz
•
4th - 12th Grade
10 questions
Computer Basics Quiz
Quiz
•
8th Grade - University
10 questions
Kuis Pengenalan Scratch
Quiz
•
7th Grade
14 questions
Y8 - Module 3 - KT1 Comic Books
Quiz
•
8th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
