NEW
Font size
WorksheetsCombined Python Turtle 1&2
Total questions: 20
Worksheet time: 11mins
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()
What shape will this create?
Triangle
Hexagon
Rectangle
Will look like the turtle is climbing stairs
There is an error on this piece of code, what is wrong?
Nothing
No full stop needed in the pen.down statement e.g. turtle.pendown()
No brackets needed in the pen.down statement e.g. turtle.pen.down
No turtle prefix needed in the pen.down statement e.g. pen.down()
Why comments are important in programming?
Comments are ignored by the compiler while running the code.
Lazy programmers (who do not comment the code properly) forget their own implemented logics and waste much more time solving the issue when they see their code later.
In Python we can write a single line comment by using #.
Comments are helpful to other programmers to understand the code better. They can easily understand the logic behind solving any problem.
Look at this code, what shape will it make?
Square
Triangle
Rectangle
Hexagon
What will this draw?
A Brown rectangle with yellow outline
A Brown Square with a Red outline
A Red Square with a Red Outline
A Yellow Rectangle with a purple outline
How do you tell that Python that you want to use all the functions in the turtle library?
import_turtle
#turtle import
from turtle import *
from turtle import
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")
What will be the output from this code?
A pentagon with an orange outline
A solid orange star
A pentagon
A solid orange pentagon
