Items are accessed by their position in a dictionary

Dictionary1

Quiz
•
Computers
•
11th - 12th Grade
•
Medium
sabna sathar
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True
False
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following create an empty dictionary (D)?
D = dict()
D = ()
D = []
D = {}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
quiz = ("Do you help out at home? ":"yes" }
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python, Dictionaries are immutable
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a valid way to define this dictionary in Python:
d = dict([
('foo', 100),
('bar', 200),
('baz', 300)
])
d = {}
d['foo'] = 100
d['bar'] = 200
d['baz'] = 300
d = dict(foo=100, bar=200, baz=300)
d = {'foo': 100, 'bar': 200, 'baz': 300}
d = { ('foo', 100), ('bar', 200), ('baz', 300) }
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about dictionary keys in Python is false?
Keys must be immutable
Keys can be of any data type
Keys can be duplicated
Keys are case-sensitive
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is used to create an empty set?
{ }
set()
[ ]
( )
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Dictionary in Python

Quiz
•
11th - 12th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
15 questions
Problem Solving using Python and R - UNIT II - Dictionary

Quiz
•
12th Grade
11 questions
DIctionary

Quiz
•
11th Grade
15 questions
python dictionary

Quiz
•
11th Grade
9 questions
Intermediate python

Quiz
•
9th - 12th Grade
15 questions
Python Quiz

Quiz
•
12th Grade
10 questions
Python Generators

Quiz
•
10th Grade - University
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
30 questions
Linear Inequalities

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

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