
Introduction to Lists
Authored by Gholamreza Aqajade
Education
1st - 5th Grade
Used 8+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to draw a window of the car using the third color in the list, which command should you use?
turtle.pencolor(colors[0])
turtle.pencolor(colors[1])
turtle.pencolor(colors[2])
turtle.pencolor(colors[3])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly initializes a list of colors in Python?
colors = ["#fcecc9", "#b3ddff", "#fcb0b3", "#517664"]
colors = ("#fcecc9", "#b3ddff", "#fcb0b3", "#517664")
colors = {"#fcecc9", "#b3ddff", "#fcb0b3", "#517664"}
colors = {"color1": "#fcecc9", "color2": "#b3ddff", "color3": "#fcb0b3", "color4": "#517664"}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command correctly sets the fill color of the turtle to the first color in the list?
turtle.fillcolor(colors[0])
turtle.fillcolor(colors[1])
turtle.fillcolor(colors[2])
turtle.fillcolor(colors[-1])
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you correctly draw a circle for the car's wheel at position (-30, -30) using the fourth color in the list?
turtle.goto(-30, -30); turtle.fillcolor(colors[0]); turtle.circle(20)
turtle.goto(-30, -30); turtle.fillcolor(colors[1]); turtle.circle(20)
turtle.goto(-30, -30); turtle.fillcolor(colors[2]); turtle.circle(20)
turtle.goto(-30, -30); turtle.fillcolor(colors[3]); turtle.circle(20)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the second color in the list colors = ["#fcecc9", "#b3ddff", "#fcb0b3", "#517664"]?
colors[0]
colors[1]
colors[2]
colors[-1]
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?