
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
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
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 Wayground
15 questions
Python Programming Random Quiz

Quiz
•
11th Grade
10 questions
Class-XII_IP_Revision-3

Quiz
•
12th Grade
12 questions
CodeHS 3.5 String Methods

Quiz
•
9th - 12th Grade
14 questions
Section 4A: Decompose the code using functions

Quiz
•
12th Grade
10 questions
Python Quiz

Quiz
•
12th Grade
10 questions
PYTHON nested if

Quiz
•
11th Grade
13 questions
Informatyka - Bezpieczeństwo i prywatność w sieci

Quiz
•
7th - 12th Grade
15 questions
Python Dictionaries Quiz 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade