PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

quiz-placeholder

Similar activities

Le passé composé

Le passé composé

9th - 12th Grade

19 Qs

SA 1 recall

SA 1 recall

11th Grade

19 Qs

Quiz Jurnal penyesuaian dan NL P Jasa

Quiz Jurnal penyesuaian dan NL P Jasa

11th Grade

15 Qs

Saneamento Básico

Saneamento Básico

10th Grade - University

10 Qs

Compositors del segle XX

Compositors del segle XX

8th - 12th Grade

11 Qs

Project mc²

Project mc²

2nd Grade - Professional Development

11 Qs

Pangngalan- Uri, Kasarian at kailanan

Pangngalan- Uri, Kasarian at kailanan

1st - 12th Grade

10 Qs

ULANGAN HARIAN

ULANGAN HARIAN

11th Grade

15 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

Assessment

Quiz

Computers, Other

11th Grade

Medium

Created by

Archana Pataskar

Used 541+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?