
Dictionary1
Authored by sabna sathar
Computers
11th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Items are accessed by their position in a dictionary
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
is this code correct?
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()
[ ]
( )
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
15 questions
AV1/R1 2TEC_PM_1 A 11_História e Reconhecimento da UX
Quiz
•
1st Grade - University
15 questions
Polecenia sieciowe
Quiz
•
1st - 12th Grade
15 questions
4.6.4 Logic Gates
Quiz
•
10th Grade - Professi...
10 questions
Evaluación Final UNDECIMO 11
Quiz
•
11th Grade
15 questions
ONLINE Quiz - Computer Hardware Basics (COMSYS 1)
Quiz
•
12th Grade
14 questions
Copyright Quiz Stolen from eff.org
Quiz
•
9th - 12th Grade
10 questions
discrimination rapide x-ways
Quiz
•
1st - 12th Grade
10 questions
EVALUAME EPT
Quiz
•
9th - 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