Colors!
Functions!
Shapes!
100

What does the line turtle.fillcolor("red") do?

A) Sets both the pen and fill color to red

B) Sets only the fill color to red

C) Fills the current shape with red immediately

D) Has no effect unless turtle.color() is also set

A) Sets only the fill color to red

100

What does turtle.pensize(10) do?

Sets the width of the turtle’s pen to 10 pixels

100

To draw an octagon with Turtle, you need to turn the turtle by this many degrees after each side.

45
200

What does turtle.bgcolor("black") do?


Changes the entire background color of the turtle screen to black

200

What is the purpose of turtle.shape("turtle")?

Sets the turtle cursor to look like an actual turtle

200

What does turtle.circle(50) do?

Draws a circle with a radius of 50 pixels

300

Which of the following is TRUE about turtle.begin_fill() and turtle.end_fill()?

A) They must be used together to properly fill a shape

B) begin_fill() automatically closes an open shape

C) end_fill() is optional when using fillcolor()

D) You cannot change colors between begin_fill() and end_fill()

A) They must be used together to properly fill a shape

300

What happens when you run turtle.clear()?

It erases all drawings but keeps the turtle at its current position

300

To draw a hexagon using a loop, how many times must the loop run, and by how many degrees should the turtle turn each time?

6 times and 60 degrees

400

Write a few lines that creates a random color. 

HINT: Use random, RGB values

(assume random is already imported)

red = random.randint(0, 255)

green = random.randint(0, 255)

blue = random.randint(0, 255)

random_color = (red, green, blue)

400

What does turtle.hideturtle() do?

Makes the turtle invisible but allows it to continue drawing

400

What will happen if you run the following code?

turtle.circle(100, 180)

Draws a semicircle with a radius of 100 pixels

Explanation:

The turtle.circle(radius, extent) function draws an arc based on the given extent in degrees. Since extent=180, it draws a semicircle. If extent=90, it would draw a quarter-circle.

M
e
n
u