Font size
WorksheetsPython L26 Color Tuple & Hirst Drawing
Total questions: 10
Worksheet time: 7mins
What does turtle.colormode(255) allow you to do?
Use turtle commands faster
Enable RGB color format (0–255)
Change the background image
Resize the turtle
What does random.randint(0, 255) return?
A color name
A floating-point number
A random number between 0 and 255
A boolean value
What is the purpose of tom.setheading(90)?
Rotate the turtle right by 90°
Make the turtle move forward
Turn the turtle to face up
Reset the turtle's position
What does dot(20, random_color()) do?
Draw a circle with a radius of 20
Move forward 20 units
Draw a dot of size 20 with a random color
Print the color to console
Which function creates a random RGB color tuple?
generate_color()
color()
random_color()
color_picker()
tom.penup() means the turtle will stop drawing lines while moving.
True
False
What is the correct function to make the turtle point down?
tom.setheading(270)
tom.setheading(0)
tom.setheading(90)
tom.setheading(180)
The loop for dot_count in range(1, 101): runs how many times?
(a)
Match the function with its purpose:
Stop drawing lines
penup()
Draw a dot
dot(20, color)
Face right
setheading(0)
Allow RGB colors
colormode(255)
Match the pattern to the project:
Repeated pendown, walk and penup
Dash Line
Random directions and colors
Random Walk
Grid of colorful dots
Dot Painting
