wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python L26 Color Tuple & Hirst Drawing

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

What does turtle.colormode(255) allow you to do?

a)

Use turtle commands faster

b)

Enable RGB color format (0–255)

c)

Change the background image

d)

Resize the turtle

2.

What does random.randint(0, 255) return?

a)

A color name

b)

A floating-point number

c)

A random number between 0 and 255

d)

A boolean value

3.

What is the purpose of tom.setheading(90)?

a)

Rotate the turtle right by 90°

b)

Make the turtle move forward

c)

Turn the turtle to face up

d)

Reset the turtle's position

4.

What does dot(20, random_color()) do?

a)

Draw a circle with a radius of 20

b)

Move forward 20 units

c)

Draw a dot of size 20 with a random color

d)

Print the color to console

5.

Which function creates a random RGB color tuple?

a)

generate_color()

b)

color()

c)

random_color()

d)

color_picker()

6.

tom.penup() means the turtle will stop drawing lines while moving.

a)

True

b)

False

7.

What is the correct function to make the turtle point down?

a)

tom.setheading(270)

b)

tom.setheading(0)

c)

tom.setheading(90)

d)

tom.setheading(180)

8.

The loop for dot_count in range(1, 101): runs how many times?

(a)  

9.

Match the function with its purpose:

a)

Stop drawing lines

1.

penup()

b)

Draw a dot

2.

dot(20, color)

c)

Face right

3.

setheading(0)

d)

Allow RGB colors

4.

colormode(255)

10.

Match the pattern to the project:

a)

Repeated pendown, walk and penup

1.

Dash Line

b)

Random directions and colors

2.

Random Walk

c)

Grid of colorful dots

3.

Dot Painting