
python dictionary

Quiz
•
Computers
•
11th Grade
•
Hard

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
The code snippet above outputs
error
None
NaN
-1
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Quiz for Grade 11 List, Tuple & Strings

Quiz
•
11th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
20 questions
Mastering Python Loops and Functions

Quiz
•
10th Grade - University
15 questions
Python Skills

Quiz
•
1st Grade - Professio...
10 questions
Python Generators

Quiz
•
10th Grade - University
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
15 questions
Python Programming

Quiz
•
5th Grade - University
10 questions
Python Data Types Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade