wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Turtle

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

To make the turtle move forward, which command is used?

a)

turtle.penup()

b)

turtle.forward()

c)

turtle.left()

d)

turtle.backward()

2.

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

3.

Which of these commands would create a turtle named Alice?

a)

Alice = turtle.pen()

b)

Alice = Turtle.pen()

c)

Alice = Turtle.turtle()

d)

Alice = turtle.Turtle()

4.

How many times will this code loop?

a)

50

b)

90

c)

0

d)

4

5.
Look at this code, what shape will it make?
a)
Square
b)
Triangle
c)
Rectangle
d)
Hexagon 
6.

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)

setposition( )

7.

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

8.

What do you put at the end of a turtle program?

a)

import turtle

b)

wn.mainloop()

c)

hunter = turtle.Turtle()

d)

wn = turtle.Screen()

9.

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

a)

for

b)

if

c)

input

d)

print

10.

What does this code do?


hunter.color("yellow")

hunter.begin_fill()

hunter.circle(100)

hunter.end_fill()

a)

Makes a yellow-filled circle

b)

Makes a yellow circle that is not filled in

c)

Makes a black circle that is not filled in

d)

Makes a white (invisible) circle

11.

Why are comments 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.