DIctionary
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
NAVTESH DAGUR
Used 10+ times
FREE Resource
Enhance your content in a minute
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
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
Animation Production Methods
Quiz
•
6th Grade - University
10 questions
Information Technology - 3
Quiz
•
KG - University
16 questions
A2 Computer Science 4.10 Databases
Quiz
•
10th - 12th Grade
10 questions
NSB AppStudio
Quiz
•
11th Grade
10 questions
Chapter 4 - Latihan
Quiz
•
1st - 12th Grade
10 questions
Tarkie Seminar for Disers
Quiz
•
9th - 12th Grade
15 questions
PH3 Sistem Keamanan Jaringan Komputer
Quiz
•
11th Grade
10 questions
conditional and iterative statements
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
