
Dictionary in Python

Quiz
•
Computers
•
11th Grade
•
Hard
Lalita joshi
Used 28+ times
FREE Resource
17 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
Items are accessed by their position in a dictionary
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionary keys must be immutable
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, Dictionaries are immutable
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
________________method removes all items from the particular dictionary.
clear( )
pop( )
del ( )
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
IT QUEST

Quiz
•
11th Grade
20 questions
Iteration

Quiz
•
11th Grade
15 questions
PYTHON PROGRAMMING FUNDAMENTALS

Quiz
•
11th Grade
20 questions
Python Intermediate Quiz (Including pygame)

Quiz
•
3rd - 12th Grade
15 questions
Python Basics

Quiz
•
KG - University
15 questions
Grade 12-Python selection&iteration

Quiz
•
11th - 12th Grade
14 questions
PYTHON DICTIONARIES

Quiz
•
11th Grade
13 questions
computer science

Quiz
•
11th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade