Python L20 Dictionary

Python L20 Dictionary

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Sequencing

Sequencing

4th - 6th Grade

15 Qs

PLTW CSIM 1.4

PLTW CSIM 1.4

6th Grade

7 Qs

Express Course Lessons 1-3 Review

Express Course Lessons 1-3 Review

6th - 7th Grade

10 Qs

Coding - Basic Syntax - Quiz

Coding - Basic Syntax - Quiz

6th Grade

14 Qs

Python Coding

Python Coding

6th - 8th Grade

12 Qs

Introduction to Programming

Introduction to Programming

7th Grade

10 Qs

Lesson 10 Dictionary Review

Lesson 10 Dictionary Review

8th Grade

9 Qs

Gaming Lesson 3

Gaming Lesson 3

6th - 8th Grade

14 Qs

Python L20 Dictionary

Python L20 Dictionary

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Future Teacher

Used 1+ 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

A piece of code that you can call over and over again

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?