
Dictonaries
Authored by Innovator Sir
Computers
9th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the keys() method return for a dictionary in Python?
Values of the dictionary
Keys of the dictionary
Both keys and values as tuples
Values sorted in ascending order
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to get the value associated with a key in a dictionary?
get()
value()
retrieve()
fetch()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you check if a key exists in a dictionary?
Using the exists() method
Using the contains() method
Using the in keyword
Using the has_key() method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to add a new key-value pair to a dictionary in Python?
add()
insert()
update()
append()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, can a dictionary have multiple values for the same key?
Yes
No
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you remove a key-value pair from a dictionary in Python?
Using the pop() method
Using the remove() method
Using the delete() method
Using the discard() method
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the values() method return for a dictionary in Python?
Keys of the dictionary
Values of the dictionary
Both keys and values as tuples
Values sorted in ascending order
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
10 questions
TQ - Review Quiz Week 1
Quiz
•
9th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
Photo Essay
Quiz
•
9th Grade
15 questions
MS Office Basic
Quiz
•
9th Grade
10 questions
Ch 37 Development of Manufacturing
Quiz
•
9th - 11th Grade
10 questions
Technology Integration
Quiz
•
5th Grade - University
12 questions
Python
Quiz
•
7th - 9th Grade
8 questions
Gathering Evidence
Quiz
•
9th - 12th 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