Dictionary in Python
Quiz
•
Computers
•
11th - 12th Grade
•
Practice Problem
•
Hard
Suman Joshi
Used 501+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 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
45 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
1 min • 1 pt
Items are accessed by their position in a dictionary
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Dictionary keys must be immutable
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
In Python, Dictionaries are immutable
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
________________method removes all items from the particular dictionary.
clear( )
pop( )
del ( )
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
11 questions
Database Management
Quiz
•
12th Grade - University
15 questions
Cybersecurity Quiz
Quiz
•
12th Grade
10 questions
Discovering Quality Information
Quiz
•
9th - 12th Grade
15 questions
DETECTING AND PREVENTING CYBER SECURITY THREATS
Quiz
•
9th - 12th Grade
12 questions
CIW/IBA REVIEW PART-C
Quiz
•
9th - 12th Grade
12 questions
Dataframe
Quiz
•
10th - 12th Grade
10 questions
Internet threats
Quiz
•
11th Grade
10 questions
Track Changes and Comments
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
