Python Dictionaries 1

Python Dictionaries 1

12th Grade

10 Qs

quiz-placeholder

Similar activities

bruh

bruh

KG - 12th Grade

10 Qs

Python Dictionary Methods - 9

Python Dictionary Methods - 9

12th Grade

10 Qs

Tuples 1

Tuples 1

12th Grade

10 Qs

Quiz Time

Quiz Time

11th - 12th Grade

15 Qs

Python - Change Dictionary Items 3

Python - Change Dictionary Items 3

12th Grade

10 Qs

Python Types (Beginners)

Python Types (Beginners)

1st - 12th Grade

10 Qs

List 1

List 1

12th Grade

9 Qs

EME316 Quiz 02

EME316 Quiz 02

10th Grade - University

15 Qs

Python Dictionaries 1

Python Dictionaries 1

Assessment

Quiz

Other

12th Grade

Easy

Created by

Amy Austin

Used 1+ times

FREE Resource

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

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?