
Chapter 9 Tuples, Lists, & Dictionaries
Authored by Dottie Holland
others
Used 7+ 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
30 sec • 10 pts
colors = ["red", "green", "burnt sienna", "blue"] colors[2] What is the output of the colors[2] expression?
2.
FILL IN THE BLANK QUESTION
30 sec • 10 pts
colors = ["red", "green", "burnt sienna", "blue"]
Select the value 'red' from the above list?
(a)
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
colors = ["red", "green", "burnt sienna", "blue"] "yellow" in colors What is the result of the yellow in colors expression?
4.
FILL IN THE BLANK QUESTION
30 sec • 10 pts
Consider the following nested list definition:
x = [10, [3.141, 20, [30, 'baz', 2.718]], 'foo']
What is the expression that returns the 'z' in 'baz'?
(a)
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What’s the main difference between Python lists and tuples?
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
How do you assign a tuple of length 1 to the variable a?
7.
MULTIPLE SELECT QUESTION
30 sec • 10 pts
Which of the following are true of Python dictionaries:
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?