
Dictionaries

Quiz
•
Computers
•
11th Grade
•
Easy
Reshma Surendran
Used 7+ times
FREE Resource
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.
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?
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"}
(a) del di["tiger"]
(b) di[“tiger”].delete()
(c) delete(di.["tiger"])
(d) del(di.["tiger])
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Python_quiz

Quiz
•
11th Grade
14 questions
Threats to computer systems and networks

Quiz
•
9th - 11th Grade
10 questions
Quiz1_HPB2021_2010t1

Quiz
•
1st - 12th Grade
15 questions
Python and PseudoCode Quiz

Quiz
•
10th Grade - University
13 questions
2018 Winter Olympics

Quiz
•
5th - 12th Grade
5 questions
Dictionary-Built in functions- len,clear,get

Quiz
•
11th Grade
10 questions
Logo Quiz - part 1

Quiz
•
7th - 11th Grade
10 questions
Redes Sociales

Quiz
•
3rd Grade - Professio...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade