Dictionaries are also called _____
DIctionary

Quiz
•
Computers
•
11th Grade
•
Hard
NAVTESH DAGUR
Used 10+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
mappings
hashes
associative arrays
all of the above
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following will raise an error if the given key is not found in the dictionary ?
del statement
pop()
getitem()
all of these
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What type of error will occur when the following code is run?
myDict = {"Sam": 100, "Nak": 99, "Paul": 99, "Ronnie": 99}
print(myDict["Hemant"])
ValueError
KeyError
Typeerror
Syntaxerror
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code:
dict1 = {}
d2 = dict1.fromkeys(["key1", "key2", "key3"], ["value"])
print(d2)
{‘key1’ : ‘value’ , ’key2’ : ’value’, ‘key3’ : ’value’}
{‘key1’ : ‘value’ , ’key2’ : ’none’, ‘key3’ : ’none’}
{‘key1’ : [‘value’] , ’key2’ : None, ‘key3’ : None}
{‘key1’ : [‘value’] , ’key2’ : [‘value’] , ‘key3’ : [‘value’]}
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The keys and values of a dictionary are:
mutable, immutable
immutable, mutable
both immutable
both mutable
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code:
d = {"Inception": "Christopher Nolan",
"Endgame": "Russo Brothers",
"No Way Home": "Jon Watts"}
for i in d:
print(i)
Inception: Christopher Nolan
Endgame: Russo Brothers
No Way home: Jon Watts
Inception
Endgame
No Way Home
Inception
Endgame
No Way Home
Error
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Dictionary are set of elements
sorted
ordered
unordered
random
Create a free account and access millions of resources
Similar Resources on Quizizz
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
15 questions
Web I: CSS Debug

Quiz
•
9th - 12th Grade
12 questions
U1 Digital Information Vocab

Quiz
•
9th - 12th Grade
11 questions
AP CSP Vocab Quiz BI 1, 2

Quiz
•
9th - 12th Grade
11 questions
Python Boolean

Quiz
•
11th - 12th Grade
13 questions
Year 10 Data Transmission

Quiz
•
9th - 12th Grade
15 questions
python dictionary

Quiz
•
11th Grade
10 questions
Python Quiz for Grade 11 List, Tuple & Strings

Quiz
•
11th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University