wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Turtle Revision

Total questions: 46

Worksheet time: 22mins

Name
Class
Date
1.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
2.
What will be the output from this code?
a)
Square
b)
Triangle
c)
Circle
d)
Rectangle
3.
What will be the output from this code?
a)
Square
b)
Triangle
c)
Circle
d)
Rectangle
4.
What will be the output from this code?
a)
A star with an orange outline
b)
A solid orange star
c)
A pentagon with an orange outline
d)
A solid orange pentagon
5.
What will be the output from this code?
a)
A pentagon with an orange outline
b)
A solid orange star
c)
A star with an orange outline
d)
A solid orange pentagon
6.
What will be the output from this code?
a)
A star with an orange outline
b)
A solid orange star
c)
A pentagon with an orange outline
d)
A solid orange pentagon
7.
This code should draw a solid orange square but it is not correct. How many errors are there?
a)
1
b)
2
c)
3
d)
4
8.
This code should draw a square with an orange outline but it is not correct. How many errors are there?
a)
1
b)
2
c)
3
d)
4
9.
To stop the turtle drawing you need to use which of the following commands?
a)
penup:
b)
pen_up( )
c)
penup( )
d)
penup( ):
10.
When using a command to move the turtle to a specific position on the drawing canvas, the middle of the canvas is represented by which coordinates?
a)
1, 1
b)
100, 100
c)
0, 0
d)
500, 500
11.

What does the ‘turtle’ represent in Python?

a)

A program

b)

A person

c)

A pen

d)

A drawing

12.

What does import turtle mean?

a)

Loads the turtle library so the turtle functions are used automatically

b)

Loads the turtle library and writes code automatically

c)

Loads the turtle library so the turtle functions can be used in your program

d)

Load the turtle library so you can choose the correct program to solve your problem

13.

Which commands would draw a triangle

a)

repeat the following five times:

forward(10)

turnright(72)

b)

repeat the following three times:

forward(10)

turnright(120)

c)

repeat the following four times:

forward(10)

turnright(90)

d)

repeat the following three times:

forward(10)

turnright(110)

14.

Which commands would draw a square

a)

repeat the following five times:

forward(10)

turnright(72)

b)

repeat the following three times:

forward(10)

turnright(120)

c)

repeat the following four times:

forward(10)

turnright(90)

d)

repeat the following three times:

forward(10)

turnright(110)

15.

Which commands would draw a pentagon

a)

repeat the following five times:

forward(10)

turnright(72)

b)

repeat the following three times:

forward(10)

turnright(120)

c)

repeat the following four times:

forward(10)

turnright(90)

d)

repeat the following three times:

forward(10)

turnright(110)

16.

In order to move the turtle 120 forward without drawing on the screen, which order is correct?

a)

turtle.forward(120)

turtle.penup()

turtle.pendown()

b)

turtle.pendown()

turtle.forward(120)

turtle.penup()

c)

turtle.penup()

turtle.forward(120)

turtle.pendown()

17.

What is the keyword needed to repeat code (iterate) in Python?

a)

for

b)

if

c)

input

d)

print

18.

There is an error on this piece of code, what is the correct statement?

a)

screen.bgcolor("lightblue")

b)

screen.bgcolor="lightblue")

c)

screen.bgcolour("lightblue")

d)

screen.bgcolor=lightblue()

19.

There is an error on this piece of code, what is wrong?

a)

Nothing

b)

No start_fill() set

c)

No colour set in the end fill e.g. end_fill("blue")

d)

No colour set in the start fill e.g. start_fill("blue")

20.
What will the output be from the following code?
print("Hello world!")
a)
SyntaxError
b)
Hello world!
c)
"Hello world!"
d)
print(Hello world!)
21.
Which Python command is used to output information to the screen?
a)
read
b)
output
c)
print
d)
display
22.
Code repeated / looped until a condition has been met or a set number of times.
a)
Sequence
b)
Selection
c)
Iteration
d)
Variable
23.
What is the name of the environment in Python that write your programs and then test them out?
a)
Shell
b)
Window
c)
IDLE
d)
CLI
24.
What does turn(90) do?
a)
Turns right 90 degrees
b)
Turns left 90 degrees
c)
Moves forward 90
d)
Does nothing as 'turn' is not a turtle instruction
25.
What does forward(300) do?
a)
Moves in the direction it is facing 300 steps
b)
Moves down the screen 300 steps
c)
Moves up the screen 300 steps
26.
When creating a rectangle with the turtle, what angle is needed when turning?
a)
120
b)
180
c)
45
d)
90
27.

To fill the shape with the colour red (using a different colour outline), which command is best?

a)

color("red")

b)

fillcolor("red")

c)

fill("red")

d)

fillcolour("red")

28.

In order to move the turtle 120 forward without drawing on the screen, which order is correct?

a)

forward(120)

penup()

pendown()

b)

pendown()

forward(120)

penup()

c)

penup()

forward(120)

pendown()

29.

What does this code do?

sides = int(input("How many sides would you like? "))

a)

Nothing, its witchcraft

b)

Creates an input variable asking the user to input a number

c)

Tells the turtle to move in a direction.

d)

Tells the turtle to turn a number of times.

30.

What is the best definition of iteration?

a)

Repeating an instruction 5 times

b)

Repeating an instruction an unlimited number of times

c)

Code

d)

Repeating an instruction until a goal is met

31.
To make the turtle move forward, which command is used?
a)
turtle.penup()
b)
turtle.forward()
c)
turtle.left()
d)
turtle.backward()
32.
What button do you press to compile (run) your program so that it runs in the shell?
a)
F3
b)
F5
c)
F7
d)
F9
33.

Which commands do we need to fill a shape that we have just drawn?

a)

t.begin_fill () and t.end_fill()

b)

t.begin() and t.fill()

c)

t.fill () and t.fill()

d)

t.begin() and t.end()

34.

What is wrong with this piece of code

a)

Must use the American spelling of colour - "color"

b)

Remove the prefix "screen." on Line 3

c)

Don't write the name of the colour in quote marks

d)

Don't add a capital letter to "Screen"

35.
Moves the turtle backward by the specified amount
a)
backward()
b)
goto()
c)
left()
d)
fillcolor()
36.
Puts down the turtle’s Pen
a)
pendown()
b)
goto()
c)
backward()
d)
fillcolor()
37.
Move the turtle to position x,y
a)
goto()
b)
dot()
c)
forward()
d)
forward()
38.

Which command is used to change the color of the turtle's pen to blue?

a)

pen.color('blue')

b)

pen.blue()

c)

color.set('blue')

d)

setcolor('blue')

39.

How do you rotate the turtle 45 degrees to the right?

a)

turtle.left(45)

b)

turtle.right(45)

c)

turtle.turn(45)

d)

turtle.rotate(45)

40.

What is a list in python?

a)

A collection of variables

b)

A collection of items assigned to a single variable

c)

A statement that cant be changed

d)

A Christmas list

41.

Which of these codes is correct for creating a list of numbers?

a)

num = ('10','29','37','109')

b)

num = ['10','29','37','109']

c)

num == ('10','29','37','109')

d)

num = ['10 29 37 109']

42.
This operator means that one value is the same as the other value
a)
==
b)
!=
c)
>
d)
<
43.
This operator means that one value is not equal to another value
a)
==
b)
<=
c)
>=
d)
!=
44.

What is the output?

a)

more than 7

b)

more than 23

c)

spam

d)

7

45.

What in the name of the variable in this Python code?

a)

name

b)

input

c)

print

d)

("What is your name")

46.
What symbol is used in python to assign values to a variable?
a)
equals =
b)
plus + 
c)
forward slash /
d)
asterisk *