
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
UJIAN PRAKTEK TIK KELAS 8
Quiz
•
8th Grade
11 questions
Website constructs
Quiz
•
6th - 8th Grade
11 questions
Ethical Issues of I.T.
Quiz
•
7th - 8th Grade
10 questions
ciencia vs ingenieria
Quiz
•
1st - 10th Grade
10 questions
Kiểm tra TX tin 8
Quiz
•
8th Grade
15 questions
Examen de Tecnología II BIM
Quiz
•
6th - 8th Grade
11 questions
Excel
Quiz
•
1st - 10th Grade
13 questions
EXAMEN-2°AÑO-INFORMATICA P3-2021
Quiz
•
1st - 9th 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