python dictionary

python dictionary

11th Grade

15 Qs

quiz-placeholder

Similar activities

Python Dictionary Quiz

Python Dictionary Quiz

9th - 12th Grade

10 Qs

Python Intermediate Quiz (Including pygame)

Python Intermediate Quiz (Including pygame)

3rd - 12th Grade

20 Qs

Python Programming Random Quiz

Python Programming Random Quiz

11th Grade

15 Qs

Dictionary -Python - XI -IP

Dictionary -Python - XI -IP

11th Grade

15 Qs

Python Quiz

Python Quiz

7th - 12th Grade

10 Qs

PYTHON DICTIONARIES

PYTHON DICTIONARIES

11th Grade

14 Qs

Dictionary

Dictionary

11th Grade

14 Qs

Python Quiz for Grade 11 List, Tuple &  Strings

Python Quiz for Grade 11 List, Tuple & Strings

11th Grade

10 Qs

python dictionary

python dictionary

Assessment

Quiz

Computers

11th Grade

Hard

Created by

uma maheswari

Used 17+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code

dict1 = {"key1":1, "key2":2}

dict2 = {"key2":2, "key1":1}

print(dict1 == dict2)

True

False

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Select correct ways to create an empty dictionary

sampleDict = {}

sampleDict = dict()

sampleDict = dict{}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Please select all correct ways to empty the following dictionary

student = {

"name": "Emma",

"class": 9,

"marks": 75

}

del student

del student[0:2]

student.clear()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dictionary keys must be immutable

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_________________ method will not only delete the item from dictionary, but also return the deleted value.

del ( )

pop( )

Clear( )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_______________this method deletes the item from the dictionary

pop( )

del( )

clear( )

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code snippet above outputs

error

None

NaN

-1

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?