Search Header Logo

Python Dictionaries 1

Authored by Amy Austin

Other

12th Grade

Used 1+ times

Python Dictionaries 1
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

As of which Python version are dictionaries ordered?

Python 3.8

Python 3.6

Python 3.7

Python 2.7

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data type is used to store data values in key:value pairs in Python?

List

Tuple

Set

Dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Are duplicates allowed in Python dictionaries?

Yes, but only keys

Yes, both keys and values

Yes, but only values

No

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to create a dictionary in Python?

create()

dict()

Dictionary()

newDict()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of len(thisdict) if thisdict = {'brand': 'Ford', 'model': 'Mustang', 'year': 1964}?

1

4

3

2

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which collection type in Python is ordered and changeable, and allows duplicate members?

List

Set

Tuple

Dictionary

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you add items to a dictionary after it has been created?

Using the add() method

Using the update() method

By reassigning values

Dictionaries cannot be changed after creation

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?