PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

quiz-placeholder

Similar activities

Dictionary

Dictionary

11th Grade

9 Qs

Dictionary in Python

Dictionary in Python

5th - 12th Grade

12 Qs

OCR A Level Computer Science (H446) - Component 1.3.1 - Compression, Encryption and Hashing

OCR A Level Computer Science (H446) - Component 1.3.1 - Compression, Encryption and Hashing

11th Grade - University

9 Qs

Dictionaries

Dictionaries

11th Grade

10 Qs

Python Quiz

Python Quiz

7th - 12th Grade

10 Qs

4.6 Word Quizizz

4.6 Word Quizizz

8th - 12th Grade

10 Qs

Python2 M1

Python2 M1

5th - 12th Grade

11 Qs

My First HTML

My First HTML

9th - 12th Grade

15 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

Assessment

Quiz

Computers, Other

11th Grade

Medium

Created by

Archana Pataskar

Used 533+ 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?