NEW
Font size
WorksheetsKuiz: Bazat e Python Turtle
Total questions: 10
Worksheet time: 5mins
Which line correctly imports Turtle and creates a turtle object?
start turtle
from turtle import Turtle; t = Turtle()
import turtle as t
t = new Turtle()
What does the command t.forward(100) do?
Erases the turtle in 100 seconds
Moves the turtle forward 100 steps (pixels)
Enlarges the turtle 100 times
Turns the turtle 100 degrees
If you want the turtle to move without drawing a line, which command should you use?
t.stop()
t.color("white")
t.hidden()
t.penup()
How can you display a message or text directly on the drawing screen?
t.say("Text")
t.text("Text")
print("Text")
t.write("Text")
To rotate the turtle left (counterclockwise) if it is facing horizontally right, which command should you use?
t.left(90)
t.right(45)
t.up(90)
t.move(90)
How can you change the cursor appearance from an arrow to a turtle shape?
t.icon('turtle')
t.shape('turtle')
t.look('turtle')
t.change('turtle')
What does the symbol # at the start of a line of code mean (e.g., # t.color("blue"))?
It indicates a code error
It makes the text black color
It is a comment the computer will ignore
It runs the code faster
How can you change the pen or text color that the turtle uses?
t.paint("blue")
t.color("blue")
t.style("blue")
t.set_blue()
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 square
A circle
A triangle
A straight line
Which command moves the turtle backward in the same direction without turning it?
t.reverse()
t.left(180)
t.back() or t.backward()
t.down()
