wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Exploring For Loops with Turtle

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the main purpose of a "for loop" in Python?

a)

To repeat a set of instructions multiple times

b)

To draw only circles

c)

To change the color of the turtle

d)

To stop the program

2.

Which command makes the turtle move forward by 100 steps?

a)

`turtle.backward(100)`

b)

`turtle.left(100)`

c)

`turtle.forward(100)`

d)

`turtle.right(100)`

3.

How many times will the following loop run? ```python

for i in range(4):

turtle.forward(50)

turtle.right(90)

a)

2

b)

3

c)

4

d)

5

4.

Which command changes the color of the turtle's pen to red?

a)

`turtle.width(5)`

b)

`turtle.color("red")`

c)

`turtle.colour("red")`

d)

`turtle.color(red)`

5.

What does the command `turtle.penup()` do?

a)

Lifts the pen so the turtle moves without drawing

b)

Puts the pen down to start drawing

c)

Changes the pen color

d)

Increases the drawing speed

6.

Which set of commands will draw a square using a for loop?

a)

```python

for i in range(3):

turtle.forward(100) turtle.right(120) ```

b)

```python

for i in range(4): turtle.forward(100)

turtle.right(90) ```

c)

```python

for i in range(5): turtle.forward(100)

turtle.right(72) ```

d)

```python

for i in range(6): turtle.forward(100)

turtle.right(60) ```

7.

Which command sets the width of the turtle's pen to 5?

a)

`turtle.color(5)`

b)

`turtle.width(5)`

c)

`turtle.speed(5)`

d)

`turtle.right(5)`

8.

How would you draw a triangle using a for loop?

a)

Repeat 3 times: move forward and turn right 120 degrees

b)

Repeat 4 times: move forward and turn right 90 degrees

c)

Repeat 5 times: move forward and turn right 72 degrees

d)

Repeat 6 times: move forward and turn right 60 degrees

9.

What does the command `turtle.speed(10)` do?

a)

Changes the color of the turtle

b)

Sets the speed of the turtle to the fastest

c)

Makes the turtle draw a circle

d)

Lifts the pen up

10.

Which command will make the turtle turn left by 90 degrees?

a)

`turtle.right(90)`

b)

`turtle.left(90)`

c)

`turtle.backward(90)`

d)

`turtle.turnleft(90)`