
Dictionaries
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Reshma Surendran
Used 7+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionaries are set of elements.
Ordered
Unordered
Sorted
Random
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dictionaries are _____ data types of Python.
Dictionaries are _____ data types of Python.
Mutable
Simple
Immutable
All of these
3.
MULTIPLE CHOICE QUESTION
30 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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct with respect to above Python code?
Which of the following is correct with respect to above Python code?
d = {"a":3,"b":7}
(a) a dictionary d is created.
(b) a and b are the keys of dictionary d.
(c) 3 and 7 are the values of dictionary d.
(d) All of these.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the following code print?
d = {'spring': 'autum', "autumn": "fall", "fall":"spring"}
print (d["autumn"])
(a) autumn
(b) fall
(c) spring
(d) Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following statements?
D1 = {"cat":17, "dog":6, "elephant":23, "bear":20}
print ("dog" in D1)
(a) True
(b) False
(c) Error
(d) None
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following will delete key_value pair for key = "tiger" in dictionary?
di = {"loin" : "wild", "tiger" : "wild", "cat": "domestic" : "dog" : "domestic"}
Which of the following will delete key_value pair for key = "tiger" in dictionary?
di = {"loin" : "wild", "tiger" : "wild", "cat": "domestic" : "dog" : "domestic"}
(a) del di["tiger"]
(b) di[“tiger”].delete()
(c) delete(di.["tiger"])
(d) del(di.["tiger])
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
10 questions
Địa lý
Quiz
•
10th - 12th Grade
13 questions
Introduction à l'informatique
Quiz
•
9th - 11th Grade
11 questions
Clase muestra 09/12/24
Quiz
•
8th Grade - University
13 questions
Kuis Simulasi Burung dan Bank Darah Informatika Kelas XI SMA
Quiz
•
11th Grade
10 questions
HTML (3CS)
Quiz
•
10th - 11th Grade
11 questions
Computer Programming: Graphics
Quiz
•
8th - 11th Grade
15 questions
REVISION-Primary & Secondary Storage
Quiz
•
10th - 11th Grade
9 questions
CÂU HỎI TRẮC NGHIỆM BÀI 3 - TIN HỌC 12
Quiz
•
10th - 12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
