Search Header Logo

Python Dictionary

Authored by Beena M

Computers

9th - 11th Grade

Used 177+ times

Python Dictionary
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

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

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol surrounds a dictionary?

{
(
[
:

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is this code correct?
quiz = {"Do you help out at home? ":"yes",         }

Yes
No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

is this code correct?
quiz = {"Do you help out at home? ":"no it is not correct"      }

No
Yes
Both

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the left part of a dictionary eg:
quiz = {"Do you help out at home? ":"yes",       }

Keey
Value
Keu
Key

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the right part of a dictionary eg:
quiz = {"Do you help out at home? ":"yes",       }

Keey
Value
Valuu
Key

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write the output of the following codes.

a)

>>>dl={1:10,2:20,3:30,4:40, 5:50}

>>>dl.items ()

[10, 20, 30, 40, 50]

[1, 2, 3, 4, 5]

[(1, 10), (2, 20), (3, 30), (4, 40), (5, 50)]

Access all questions and much more by creating a free account

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

Already have an account?