Python L20 Dictionary

Python L20 Dictionary

6th - 8th Grade

10 Qs

quiz-placeholder

Similar activities

Sequencing

Sequencing

4th - 6th Grade

15 Qs

6th grade Code.org Quiz

6th grade Code.org Quiz

6th Grade

10 Qs

PLTW CSIM 1.4

PLTW CSIM 1.4

6th Grade

7 Qs

Python

Python

8th Grade

13 Qs

Introduction to Programming

Introduction to Programming

7th Grade

10 Qs

Code Express Vocab

Code Express Vocab

6th - 8th Grade

10 Qs

Gaming Lesson 3

Gaming Lesson 3

6th - 8th Grade

14 Qs

Coding Vocabulary

Coding Vocabulary

4th - 6th Grade

13 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:

Loop

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

Bug

An error in a program that prevents it from running as expected

Function

The action of doing something repeatedly

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?