
Dictionary Operations Quiz
Authored by Nisreen Ariwala
Computers
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function creates a dictionary from a sequence of key-value pairs?
tuple()
list()
dict()
set()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method dict1.keys() return?
A list of items
A single value
A list of values
A list of keys
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will dict1.get('Sohan') return if 'Sohan' is not a key in dict1?
0
None
Error
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the method dict1.update(dict2) do?
Appends key-value pairs from dict2 to dict1
Creates a new dictionary
Clears dict1
Deletes dict1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of dict1.clear()?
An empty dictionary
An error
None
The original dictionary
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does dict1.items() return?
A list of keys
A list of values
A list of key-value pairs
A single key-value pair
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method returns a list of values in the dictionary?
dict1.keys()
dict1.items()
dict1.get()
dict1.values()
Access all questions and much more by creating a free account
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
12 questions
Computer Science
Quiz
•
3rd - 12th Grade
10 questions
Web Quzizz
Quiz
•
9th - 12th Grade
12 questions
Python - Abstractions, Comments, Data Types, Variables
Quiz
•
9th - 12th Grade
10 questions
Unit 10 AP CSP Advanced
Quiz
•
9th - 12th Grade
11 questions
Python Code Quiz
Quiz
•
8th - 12th Grade
12 questions
Dictionary Class 11
Quiz
•
11th - 12th Grade
10 questions
BTEC DIT C3 LAB - Data Level Protection 1
Quiz
•
10th - 11th Grade
12 questions
Photoshop Basics
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade