WorksheetsTurtle Revision
Total questions: 46
Worksheet time: 22mins
What does the ‘turtle’ represent in Python?
A program
A person
A pen
A drawing
What does import turtle mean?
Loads the turtle library so the turtle functions are used automatically
Loads the turtle library and writes code automatically
Loads the turtle library so the turtle functions can be used in your program
Load the turtle library so you can choose the correct program to solve your problem
Which commands would draw a triangle
repeat the following five times:
forward(10)
turnright(72)
repeat the following three times:
forward(10)
turnright(120)
repeat the following four times:
forward(10)
turnright(90)
repeat the following three times:
forward(10)
turnright(110)
Which commands would draw a square
repeat the following five times:
forward(10)
turnright(72)
repeat the following three times:
forward(10)
turnright(120)
repeat the following four times:
forward(10)
turnright(90)
repeat the following three times:
forward(10)
turnright(110)
Which commands would draw a pentagon
repeat the following five times:
forward(10)
turnright(72)
repeat the following three times:
forward(10)
turnright(120)
repeat the following four times:
forward(10)
turnright(90)
repeat the following three times:
forward(10)
turnright(110)
In order to move the turtle 120 forward without drawing on the screen, which order is correct?
turtle.forward(120)
turtle.penup()
turtle.pendown()
turtle.pendown()
turtle.forward(120)
turtle.penup()
turtle.penup()
turtle.forward(120)
turtle.pendown()
What is the keyword needed to repeat code (iterate) in Python?
for
if
input
There is an error on this piece of code, what is the correct statement?
screen.bgcolor("lightblue")
screen.bgcolor="lightblue")
screen.bgcolour("lightblue")
screen.bgcolor=lightblue()
There is an error on this piece of code, what is wrong?
Nothing
No start_fill() set
No colour set in the end fill e.g. end_fill("blue")
No colour set in the start fill e.g. start_fill("blue")
print("Hello world!")
To fill the shape with the colour red (using a different colour outline), which command is best?
color("red")
fillcolor("red")
fill("red")
fillcolour("red")
In order to move the turtle 120 forward without drawing on the screen, which order is correct?
forward(120)
penup()
pendown()
pendown()
forward(120)
penup()
penup()
forward(120)
pendown()
What does this code do?
sides = int(input("How many sides would you like? "))
Nothing, its witchcraft
Creates an input variable asking the user to input a number
Tells the turtle to move in a direction.
Tells the turtle to turn a number of times.
What is the best definition of iteration?
Repeating an instruction 5 times
Repeating an instruction an unlimited number of times
Code
Repeating an instruction until a goal is met
Which commands do we need to fill a shape that we have just drawn?
t.begin_fill () and t.end_fill()
t.begin() and t.fill()
t.fill () and t.fill()
t.begin() and t.end()
What is wrong with this piece of code
Must use the American spelling of colour - "color"
Remove the prefix "screen." on Line 3
Don't write the name of the colour in quote marks
Don't add a capital letter to "Screen"
Which command is used to change the color of the turtle's pen to blue?
pen.color('blue')
pen.blue()
color.set('blue')
setcolor('blue')
How do you rotate the turtle 45 degrees to the right?
turtle.left(45)
turtle.right(45)
turtle.turn(45)
turtle.rotate(45)
What is a list in python?
A collection of variables
A collection of items assigned to a single variable
A statement that cant be changed
A Christmas list
Which of these codes is correct for creating a list of numbers?
num = ('10','29','37','109')
num = ['10','29','37','109']
num == ('10','29','37','109')
num = ['10 29 37 109']
What is the output?
more than 7
more than 23
spam
7
What in the name of the variable in this Python code?
name
input
("What is your name")
