Dictionary Class 11

Dictionary Class 11

11th - 12th Grade

12 Qs

quiz-placeholder

Similar activities

Python Lists and Dictionaries

Python Lists and Dictionaries

11th - 12th Grade

7 Qs

Quiz on Introduction to Programming with Python

Quiz on Introduction to Programming with Python

9th - 12th Grade

9 Qs

MIL Review Challenge 2

MIL Review Challenge 2

12th Grade

10 Qs

Navigating and Customizing Photoshop

Navigating and Customizing Photoshop

11th Grade

12 Qs

computer science

computer science

11th Grade

13 Qs

CS Python Fundamentals Test 12 PRACTICE

CS Python Fundamentals Test 12 PRACTICE

9th - 12th Grade

10 Qs

Project Stem Python

Project Stem Python

9th - 12th Grade

10 Qs

Revision Quiz  Game- 1

Revision Quiz Game- 1

12th Grade

10 Qs

Dictionary Class 11

Dictionary Class 11

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Parveena undefined

Used 69+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions will return the key, value pairs of a dictionary?

keys()

values()

items()

all of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which value is assigned to keys, if no value is specified with the fromkeys() method?

0

1

None

any of these

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dictionaries are ________ data types if Python

mutable

immutable

simple

all of thses

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function returns the number of items in the dictionary?

len()

get()

values()

keys()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of

d={'a':1,'b':2,"c":3}

print(d[0])

a

b

c

Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by the following statement?

d={"cat":12,"dog":6,"elephant":23,"bear":20}

print("dog" in d)

True

False

Error

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be printed by the following statement?

d={"cat":12,"dog":6,"elephant":23,"bear":20}

print("dog" in d.values())

True

False

Error

None

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?