wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Tracey the Turtle

Total questions: 25

Worksheet time: 13mins

Name
Class
Date
1.

Which of the following is NOT a reason for loops are useful when writing code?

a)

Loops help us write the same program with fewer lines of code

b)

Loops let us make shapes of multiple sizes

c)

Loops make it easier to alter code once it’s written

d)

Loops make our code easier to read

Answered

2.

Why do certain words change color in Python?

a)

To show that they are recognized as keywords

b)

To tell you that these words cannot be used in Python code

c)

To show you that these words can be clicked

d)

To tell Python to skip these words when running the code

3.

The setposition() command moves Tracy to a coordinate and:

a)

turns her to face down

b)

turns her to face up

c)

turns her to face left

d)

does not turn her

4.

If I use the command right(180), which way will Tracy turn?

a)

She will turn to face up

b)

She will turn to face left

c)

She will turn in a circle

d)

She will turn around

5.

Which of the names below follow all naming rules?

a)

make_square

b)

Draw a Circle

c)

my_function

d)

4_circles

6.

How would I change Tracy’s trail to a yellow line with a thickness of 10 pixels?

a)

Color(Yellow) thickness(10)

b)

color(“yellow”) pensize(10)

c)

color yellow() pensize(10)

d)

color yellow(): pensize(10)

7.

Top Down Design makes it easier to solve a problem by:

a)

Starting with the biggest function and then moving to smaller ones

b)

Making each function hold only one command

c)

Starting your code from the first command

d)

Breaking the problem down into smaller parts

8.

Variables allow us to:

a)

Name different parts of our programs

b)

Use english words to communicate with Tracy

c)

Store information to use in our programs

d)

Change the words Tracy recognizes

9.

How would I collect a number from the user to use for the radius of a circle?

a)

int(input("What is the radius?: "))

b)

radius = int("What is the radius?: ")

c)

radius = int(input("What is the radius?: "))

d)

radius = int input("What is the radius?: ")

10.

The name color cannot be used for our variable because:

a)

Variable names cannot only be 1 word

b)

The word color is already used as a Tracy command

c)

The word color needs to be capitalized to be used as a variable name

d)

Variable names must include underscores

11.

Why are parameters useful?

a)

They allow us to tailor functions to be used in multiple situations

b)

They allow us to change the order of commands in a function

c)

They give us the ability to use variables in loops

d)

They allow the user to give input

12.

How many parameters can we use in each function?

a)

1

b)

2

c)

2

d)

many as we need

13.

What is the default starting value of i in a for loop?

a)

0

b)

1

c)

2

d)

10

14.

What will the values of i be at each iteration of the loop below?

(for i in range(3)

a)

1, 2, 3

b)

0, 1, 2, 3

c)

0, 1, 2

d)

2, 3

15.

What will the values of i be at each iteration of the loop below?

for i in range (2, 10, 2):

a)

0, 2, 4, 6, 8

b)

2, 3, 4, 5, 6, 7, 8, 9

c)

2, 4, 6, 8

d)

2, 4, 6, 8, 10

16.

How would I tell Tracy to move forward 100 pixels?

a)

forward 100

b)

move(100)

c)

Tracy, move forward 100 pixels

d)

forward(100)

17.

When Tracy is facing right, from what location does she start drawing her circle?

a)

The top of the circle

b)

The bottom of the circle

c)

The left side of the circle

d)

The middle of the circle

18.

Where does Tracy always start in the grid world?

a)

At the (0,0) coordinate in the bottom left hand corner of the canvas

b)

At the (-200,-200) coordinate in the bottom left hand corner of the canvas

c)

At the (0,0) coordinate in the middle of the canvas

d)

At the (-200,-200) coordinate in the middle of the canvas

19.

What are the dimensions of Tracy’s world?

a)

200 pixels x 200 pixels

b)

400 pixels x 200 pixels

c)

400 pixels x 400 pixels

d)

200 pixels x 400 pixels

20.

Which commands would move Tracy forward 100 pixels?

A. forward(100)

B. backward(-100)

C. forward(-100)

a)

A, B, and C

b)

A only

c)

B and C

d)

A and B

21.

How far does Tracy need to move from the starting position to reach the right side of the canvas?

a)

100 pixels

b)

200 pixels

c)

400 pixels

d)

500 pixels

22.

If you want Tracy to move forward 100 pixels without making a line, what set of commands should you write?

a)

penup()

forward(100)

b)

forward(100)

penup()

c)

penup(100)

d)

forward(-100)

23.

Tracy always starts facing which direction?

a)

North

b)

South

c)

East

d)

West

24.

If Tracy started facing right, which direction would she be facing after we ran the following code?

a)

Up

b)

Down

c)

Right

d)

Left

25.

If Tracy starts at the left edge of the canvas and moves forward 50 pixels, how many times will this code need to be repeated to have Tracy reach the right edge of the canvas?

a)

4 times

b)

8 times

c)

10 times

d)

50 times