
Dictionary in Python
Authored by Amna Sajjad
Computers
8th Grade
Used 14+ times

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
1 min • 1 pt
A dictionary is 'like' a list.
True
False
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
In a dictionary, each key maps to a _____________.
3.
MULTIPLE SELECT QUESTION
1 min • 1 pt
How would you create an empty Dictionary? Select all that apply.
a=dict()
a={}
a=dict[]
a=dict
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Curly braces {} represent a list, the same way square brackets [] represent a dictionary.
True
False
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
When you print a dictionary, the order of the key-value pairs may not be the same!
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What would the len() function print in the following code?
a_dictionary={"a":1,"b":1,"c":1,"d":1,"e":5}
print(len(a_dictionary))
5
10
Error
None of these
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What method in dictionaries takes a key and a default value?
find()
get()
search()
lookup()
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
15 questions
Adivina quien?
Quiz
•
1st - 10th Grade
9 questions
Microbit Features Activity
Quiz
•
6th - 8th Grade
10 questions
DBMS- CLASS8 CBSE
Quiz
•
7th - 10th Grade
10 questions
JSPS Competition Hackathon - Scratch Language - Grade 1
Quiz
•
2nd Grade - University
12 questions
Algoritmos
Quiz
•
8th - 9th Grade
10 questions
QBASIC Programming
Quiz
•
5th - 10th Grade
10 questions
Cos’è la ROM?
Quiz
•
6th - 12th Grade
10 questions
hardware and software(g3)
Quiz
•
2nd - 10th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade