NEW
Font size
S
M
L
XL
WorksheetsPython Plus : Turtle Race
Total questions: 10
Worksheet time: 5mins
Name
Class
Date
1.
How do you import the turtle module in Python?
a)
include turtle
b)
import turtle
c)
using turtle
d)
require turtle
e)
load turtle
2.
How do you set the turtle's color to red?
a)
ada.setColor("red")
b)
ada.color("red")
c)
ada.set_color("red")
d)
ada.paint("red")
e)
ada.fill("red")
3.
How do you change the turtle's shape to a turtle?
a)
ada.form("turtle")
b)
ada.type("turtle")
c)
ada.shape("turtle")
d)
ada.design("turtle")
e)
ada.figure("turtle")
4.
What function moves the turtle forward by 100 units?
a)
ada.move(100)
b)
ada.forward(100)
c)
ada.go(100)
d)
ada.walk(100)
e)
ada.step(100)
5.
How do you set the turtle's speed to maximum?
a)
ada.velocity(10)
b)
ada.fastest()
c)
ada.speed(10)
d)
ada.quick()
e)
ada.set_speed(10)
6.
How do you turn the turtle 90 degrees to the right?
a)
ada.right(90)
b)
ada.turn(90)
c)
ada.rotate(90)
d)
ada.spin(90)
e)
ada.angle(90)
7.
What function is used to generate a random integer between 1 and 10?
a)
random.int(1, 10)
b)
random.randint(1, 10)
c)
randint(1, 10)
d)
random(1, 10)
e)
rand(1, 10)
8.
What loop structure is used to repeat a block of code a specific number of times?
a)
while loop
b)
repeat loop
c)
for loop
d)
foreach loop
e)
do-while loop
9.
How do you make the turtle turn 360 degrees to the right or left?
a)
ada.right((360))
b)
ada.turn(360)
c)
ada.rotate(360)
d)
ada.left(360)
e)
ada.spin(360)
10.
How do you create a dashed line using penup and pendown?
a)
Alternate between penup() and pendown()
b)
Use dashed_line function
c)
Enable dash mode
d)
Use draw_dashes method
e)
Use dash() function
Reset
