wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Turtle Commands Quiz

Total questions: 12

Worksheet time: 6hrs 0mins

Name
Class
Date
1.

Which command moves Tracy forward 100 pixels?

a)

move(100)

b)

forward(100)

c)

go(100)

2.

What does penup() do?

a)

Moves Tracy up on the screen

b)

Changes the pen color

c)

Stops Tracy from drawing while moving

3.

The command goto(100, 50) will:

a)

Draw a line from 100 to 50

b)

Move Tracy to the coordinates x=100, y=50

c)

Turn Tracy 100 degrees

4.

What does circle(30) do?

a)

Draws a circle with radius 30

b)

Draws 30 circles

5.

Which command would you use FIRST if you want Tracy to move without drawing a line?

a)

color("white")

b)

stop()

c)

penup()

6.

Which command changes Tracy's pen color to red?

a)

color("red")

b)

red()

c)

changecolor("red")

7.

What does bgcolor("blue") do?

a)

Changes Tracy's color to blue

b)

Draws a blue circle

c)

Changes the background color to blue

8.

What is a function?

a)

A color command

b)

A reusable block of code

c)

A way to delete code

9.

In Python, how do you define a function called draw_square?

a)

def draw_square():

b)

create draw_square():

10.

In Python, how do you call (use) a function named draw_circle?

a)

draw_circle()

b)

run draw_circle

11.

What is a variable?

a)

A container that stores information

b)

A type of loop

c)

A command to move Tracy

12.

What is wrong with this variable assignment? 25 = size forward(size)

a)

You can't use variables with forward

b)

The variable name should be first: `size = 25`