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
Dictionaries are also called _____
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 Wayground
7 questions
Dictionary Operations Quiz

Quiz
•
11th Grade
16 questions
Python Review

Quiz
•
9th - 12th Grade
10 questions
AP Computer Science Principles - Unit 1: Digital Information

Quiz
•
9th - 12th Grade
15 questions
Python Built-in Functions

Quiz
•
11th - 12th Grade
10 questions
STRING MANIPULATION (PYTHON)

Quiz
•
11th - 12th Grade
10 questions
Python Exception Handling

Quiz
•
10th - 12th Grade
15 questions
Basic Python Coding

Quiz
•
11th - 12th Grade
15 questions
Java Math

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
20 questions
Points, Lines & Planes

Quiz
•
9th - 11th Grade