Python L20 Dictionary

Quiz
•
Computers
•
6th - 8th Grade
•
Medium
Future Teacher
Used 2+ times
FREE Resource
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:
Loop
A piece of code that you can call over and over again
Bug
The action of doing something repeatedly
Function
An error in a program that prevents it from running as expected
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Coding Vocabulary

Quiz
•
4th - 6th Grade
13 questions
Code.org Express Course Vocab Lessons 1-10

Quiz
•
6th Grade
13 questions
Coding Vocabulary

Quiz
•
4th - 6th Grade
14 questions
CSD Intro to Programming

Quiz
•
1st - 7th Grade
10 questions
Algorithms & Pseudocode

Quiz
•
8th - 12th Grade
10 questions
Week 6 Homework - Python Revision

Quiz
•
8th Grade
15 questions
Intro to Small Basic

Quiz
•
KG - 7th Grade
10 questions
CS First Vocabulary

Quiz
•
5th - 6th Grade
Popular Resources on Wayground
10 questions
Video Games

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

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Digital Footprint

Quiz
•
6th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade