wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

KS4 - Python Turtle

Total questions: 15

Worksheet time: 7mins

Name
Class
Date
1.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
2.

What shape will be the output from this code?

a)

Square

b)

Triangle

c)

Circle

d)

Rectangle

3.

What shape 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.
To make the turtle move forward, which command is used?
a)
turtle.penup()
b)
turtle.forward()
c)
turtle.left()
d)
turtle.backward()
6.
When creating a rectangle with the turtle, what angle is needed when turning?
a)
120
b)
180
c)
45
d)
90
7.
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()
8.

How do you tell that Python that you are going to use the turtle library?

a)

import_turtle

b)

turtle import

c)

import turtle

d)

from turtle import

9.
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
10.

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"

11.
Look at the following code, what type of loop could we use to create a square?
a)
For
b)
While
c)
Four
d)
Whale
12.
Look at this code, what is the variable? 
a)
0
b)
4
c)
for
d)
i
13.
What is a variable? 
a)
A value that can change
b)
A number
c)
A value that can never change
d)
A letter
14.
What symbol is used to make a comment? (A comment is a way to annotate your code to explain what it is doing) 
a)
*
b)
/
c)
()
d)
#
15.
To repeat a fixed number of times use a
a)
while loop
b)
for loop
c)
if loop
d)
indentation