PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

quiz-placeholder

Similar activities

Python Quiz for Grade 11 List, Tuple &  Strings

Python Quiz for Grade 11 List, Tuple & Strings

11th Grade

10 Qs

Dictionary

Dictionary

11th Grade

14 Qs

القواميس والقوائم المتداخلة في بايثون

القواميس والقوائم المتداخلة في بايثون

9th - 12th Grade

18 Qs

Quiz on 19 Dec

Quiz on 19 Dec

11th Grade

10 Qs

11th Class Python Basics

11th Class Python Basics

11th Grade

10 Qs

Python Data Types Quiz

Python Data Types Quiz

11th Grade

10 Qs

Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

Christmas

Christmas

KG - 12th Grade

12 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

Assessment

Quiz

Computers, Other

11th Grade

Medium

Created by

Archana Pataskar

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