wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python turtle

Total questions: 20

Worksheet time: 13mins

Name
Class
Date
1.
Look at this code, how many times will it loop?
a)
50
b)
90
c)
0
d)
4
2.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
3.
Look at this code, what is the variable? 
a)
0
b)
4
c)
for
d)
i
4.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
5.
What is wrong with this code?
a)
Missing Brackets
b)
Missing Comma
c)
Missing Colon
d)
Incorrect spelling 
6.
What will be the output from this code?
a)
Square
b)
Triangle
c)
Circle
d)
Rectangle
7.
What will be the output from this code?
a)
Square
b)
Triangle
c)
Circle
d)
Rectangle
8.
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
9.
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
10.
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
11.
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
12.
What is the output from this code?
a)
A sequence of four orange triangles
b)
An orange triangle and an orange square
c)
A sequence of three orange squares
d)
Error
13.
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
14.
In Python, a subroutine, function or procedure is created by using which key word?
a)
sub
b)
fun
c)
def
d)
pro
15.
When creating a def in Python, what is the correct order for the elements?
a)
def ( ) subroutine :
b)
def subroutine : ( )
c)
def subroutine ( ) :
d)
def : ( ) subroutine
16.
To stop the turtle drawing you need to use which of the following commands?
a)
penup:
b)
pen_up( )
c)
penup( )
d)
penup( ):
17.
To move the turtle to  a specific position on the drawing canvas you need to use which of the following commands?
a)
set_pos( )
b)
setpos( ):
c)
setpos
d)
setpos( )
18.
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
19.
When you want to hide the turtle pointer on the screen which command should you use?
a)
hide_turtle( )
b)
remove_turtle( )
c)
hideturtle( )
d)
turtle.disappear( )
20.
How do you tell that Python that you are going to use the turtle library?
a)
import_turtle
b)
turtle import
c)
from turtle import *
d)
from turtle import