wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Combined Python Turtle 1&2

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
2.
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
3.
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( )
4.

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()

5.

What is the keyword needed to repeat code (iterate) in Python?

a)

for

b)

if

c)

input

d)

print

6.

There is an error on this piece of code, what is the correct statement?

a)

screen.bgcolor("lightblue")

b)

screen.bgcolor="lightblue")

c)

screen.bgcolour("lightblue")

d)

screen.bgcolor=lightblue()

7.

What shape will this create?

a)

Triangle

b)

Hexagon

c)

Rectangle

d)

Will look like the turtle is climbing stairs

8.
When you have an error in your code what is the term to summarise finding and fixing that error?
a)
Error checking
b)
Debugging
c)
Syntax finder
d)
Error finder
9.

There is an error on this piece of code, what is wrong?

a)

Nothing

b)

No full stop needed in the pen.down statement e.g. turtle.pendown()

c)

No brackets needed in the pen.down statement e.g. turtle.pen.down

d)

No turtle prefix needed in the pen.down statement e.g. pen.down()

10.

Why comments are important in programming?

a)

Comments are ignored by the compiler while running the code.

b)

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.

c)

In Python we can write a single line comment by using #.

d)

Comments are helpful to other programmers to understand the code better. They can easily understand the logic behind solving any problem.

11.

Look at this code, what shape will it make?

a)

Square

b)

Triangle

c)

Rectangle

d)

Hexagon

12.

What will this draw?

a)

A Brown rectangle with yellow outline

b)

A Brown Square with a Red outline

c)

A Red Square with a Red Outline

d)

A Yellow Rectangle with a purple outline

13.
What is syntax?
a)
Syntax is the word used to describe an error
b)
Syntax is the rules of the programming language
c)
It is used to read information
d)
It is used to output information 
14.
What will be the output from this code?
a)
Square
b)
Triangle
c)
Circle
d)
Rectangle
15.
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
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.
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
18.

How do you tell that Python that you want to use all the functions in the turtle library?

a)

import_turtle

b)

#turtle import

c)

from turtle import *

d)

from turtle import

19.

There is an error on this piece of code, what is wrong?

a)

Nothing

b)

No start_fill() set

c)

No colour set in the end fill e.g. end_fill("blue")

d)

No colour set in the start fill e.g. start_fill("blue")

20.

What will be the output from this code?

a)

A pentagon with an orange outline

b)

A solid orange star

c)

A pentagon

d)

A solid orange pentagon