PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

quiz-placeholder

Similar activities

Dictionaries

Dictionaries

11th - 12th Grade

17 Qs

Intermediate python

Intermediate python

9th - 12th Grade

9 Qs

python dictionary

python dictionary

11th Grade

15 Qs

PythonTest

PythonTest

6th Grade - Professional Development

11 Qs

Dictionary in Python

Dictionary in Python

7th - 12th Grade

10 Qs

Review Python Dictionaries

Review Python Dictionaries

9th - 12th Grade

18 Qs

UT3

UT3

11th Grade

10 Qs

Python: списки, кортеж, словник, множина

Python: списки, кортеж, словник, множина

9th - 12th Grade

14 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

Assessment

Quiz

Computers, Other

11th Grade

Medium

Created by

Archana Pataskar

Used 512+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 1 pt

A dictionary is an example of a sequence ...

True

False

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

A Python dictionary stores ...

value - key pairs

key - value pairs

3.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following create an empty dictionary (D)?

D = dict()

D = ()

D = []

D = {}

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is this?
quiz = {"Do you help out at home? ":"yes",        
"Do you beleive in Santa? ":"yes"
}
list
string
dictionart
dictionary

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which symbol surrounds a dictionary?
{
(
[
:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is this code correct?
quiz = ("Do you help out at home? ":"yes"      }
No
Yes
Both

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You have the following dictionary definition:


d = {'foo': 100, 'bar': 200, 'baz': 300}


What method call will delete the entry whose value is 200?

delete d('bar')

d.pop("bar")

d.remove("bar")

None of the above

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?