wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Kuiz: Bazat e Python Turtle

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which line correctly imports Turtle and creates a turtle object?

a)

start turtle

b)

from turtle import Turtle; t = Turtle()

c)

import turtle as t

d)

t = new Turtle()

2.

What does the command t.forward(100) do?

a)

Erases the turtle in 100 seconds

b)

Moves the turtle forward 100 steps (pixels)

c)

Enlarges the turtle 100 times

d)

Turns the turtle 100 degrees

3.

If you want the turtle to move without drawing a line, which command should you use?

a)

t.stop()

b)

t.color("white")

c)

t.hidden()

d)

t.penup()

4.

How can you display a message or text directly on the drawing screen?

a)

t.say("Text")

b)

t.text("Text")

c)

print("Text")

d)

t.write("Text")

5.

To rotate the turtle left (counterclockwise) if it is facing horizontally right, which command should you use?

a)

t.left(90)

b)

t.right(45)

c)

t.up(90)

d)

t.move(90)

6.

How can you change the cursor appearance from an arrow to a turtle shape?

a)

t.icon('turtle')

b)

t.shape('turtle')

c)

t.look('turtle')

d)

t.change('turtle')

7.

What does the symbol # at the start of a line of code mean (e.g., # t.color("blue"))?

a)

It indicates a code error

b)

It makes the text black color

c)

It is a comment the computer will ignore

d)

It runs the code faster

8.

How can you change the pen or text color that the turtle uses?

a)

t.paint("blue")

b)

t.color("blue")

c)

t.style("blue")

d)

t.set_blue()

9.

If the turtle performs these moves: forward(50), left(90), forward(50), left(90), forward(50), left(90), forward(50), left(90), which figure is created?

a)

A square

b)

A circle

c)

A triangle

d)

A straight line

10.

Which command moves the turtle backward in the same direction without turning it?

a)

t.reverse()

b)

t.left(180)

c)

t.back() or t.backward()

d)

t.down()