NEW
Font size
WorksheetsPython turtle year 8 assessment
Total questions: 20
Worksheet time: 12mins
What is the keyword needed to repeat code (iterate) in Python?
for
if
input
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 software do you use to write a program in Python?
Word
IDLE
Powerpoint
Excel
What shape will this create?
Triangle
Hexagon
Rectangle
Will look like the turtle is climbing stairs
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.
Look at this code, how many times will it loop?
50
90
0
4
Look at this code, which of these is a variable?
input
4
int
mylength
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
What is wrong with this code?
Missing Brackets
Missing Comma
Missing Colon
Incorrect spelling
What is wrong with this code?
Missing Brackets
Missing Comma
Missing Colon
Incorrect spelling
What keyword is used to define a function / subprogram in Python?
def
if
while
for
