NEW
Font size
WorksheetsPython Turtle
Total questions: 11
Worksheet time: 6mins
To make the turtle move forward, which command is used?
turtle.penup()
turtle.forward()
turtle.left()
turtle.backward()
In order to move the turtle 120 forward without drawing on the screen, which order is correct?
turtle.forward(120)
turtle.penup()
turtle.pendown()
turtle.pendown()
turtle.forward(120)
turtle.penup()
turtle.penup()
turtle.forward(120)
turtle.pendown()
Which of these commands would create a turtle named Alice?
Alice = turtle.pen()
Alice = Turtle.pen()
Alice = Turtle.turtle()
Alice = turtle.Turtle()
How many times will this code loop?
50
90
0
4
To move the turtle to a specific position on the drawing canvas you need to use which of the following commands?
set_pos( )
setpos( ):
setpos
setposition( )
How do you tell that Python that you are going to use the turtle library?
import turtle
turtle import
from turtle import *
from turtle import
What do you put at the end of a turtle program?
import turtle
wn.mainloop()
hunter = turtle.Turtle()
wn = turtle.Screen()
What is the keyword needed to repeat code (iterate) in Python?
for
if
input
What does this code do?
hunter.color("yellow")
hunter.begin_fill()
hunter.circle(100)
hunter.end_fill()
Makes a yellow-filled circle
Makes a yellow circle that is not filled in
Makes a black circle that is not filled in
Makes a white (invisible) circle
Why are comments important in programming?
Comments are ignored by the compiler while running the code.
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.
In Python we can write a single line comment by using #.
Comments are helpful to other programmers to understand the code better. They can easily understand the logic behind solving any problem.
