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:
Function
The action of doing something repeatedly
Bug
An error in a program that prevents it from running as expected
Loop
A piece of code that you can call over and over again
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
15 questions
Python Basics

Quiz
•
KG - University
10 questions
KS3 GCSE Computer Science (Programming / Python)

Quiz
•
7th - 11th Grade
15 questions
Coding Pre-quiz

Quiz
•
6th - 9th Grade
13 questions
Coding Block Vocabulary

Quiz
•
7th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
14 questions
Coding Vocabulary

Quiz
•
8th Grade
13 questions
Coding Vocabulary

Quiz
•
4th - 6th 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 Computers
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
30 questions
Teacher Facts

Quiz
•
6th Grade
24 questions
Flinn Lab Safety Quiz

Quiz
•
5th - 8th Grade
22 questions
Figurative Language

Quiz
•
7th Grade