WorksheetsPython turtle
Total questions: 50
Worksheet time: 28mins
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
What type of programming can be done with Mblock?(choose two)
What is the Python built-in function used to display numbers and text on the screen?
input
output
command
holds whole numbers
holds a decimal point in a number
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
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
Which of these commands would create a turtle named Alice?
Alice = turtle.pen()
Alice = Turtle.pen()
Alice = Turtle.turtle()
Alice = turtle.Turtle()
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()
To make the turtle move forward, which command is used?
turtle.penup()
turtle.forward()
turtle.left()
turtle.backward()
2. What is turtle programming?
a computer program that draws
a real life animal that draws
a real life animal inside a comouter
4. To give turtle its shape, which is the right command?
name.shape("turtle")
name.structure("turtle")
name.shape("turtle animal")
5. To move turtle forward, which is the right command?
name.front(100)
name.moveforward(100)
name.forward(100)
7. To make turtle turn right, which is the right command?
name.right(90)
name.left(90)
name.up(90)
True or False: turtle.hideturtle() will cause the turtle to disappear in the window.
True
False
To make the turtle move forward, which command is used?
turtle.penup()
turtle.forward()
turtle.left()
turtle.backward()
When creating a rectangle with the turtle, what angle is needed when turning?
120
180
45
90
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()
To fill a shape with the colour red, which command is correct?
turtle.fillcolor('Red')
turtle.fillcolour('Red')
turtle.fillcolor("Red")
turtle.fillcolour("Red")
What is the extension on a Python file name?
.py
.xsl
.ppt
.docx
How do you write a program in Python?
Using Word
Using IDLE
Using Powerpoint
Using Excel
What is the window called where you write your code?
Editor
Shell
What happens if you call your python progam "turtle"
your program crashes because you have spelt it wrong
your program crashes because it stops the import turtle line from working
your program crashes because it should have been saved as turtle.turtle
your program runs fine
Which of these commands would successfully create a turtle named Alice
Alice = turtle.pen()
Alice = Turtle.pen()
Alice = Turtle.Pen()
Alice = turtle.Pen()
How do you tell python you want to use the turtle library
turtle import
import turtle
from libraries import turtle
from turtle import libraries
What is the keyword needed to repeat code (iterate) in Python?
for
if
input
What does turn(90) do?
Turns right 90 degrees
Turns left 90 degrees
Moves forward 90
Does nothing as 'turn' is not a turtle instruction
Look at this code, how many times will it loop?
50
90
0
4
What shape will this create?
Triangle
Rectangle
Hexagon
Will look like the turtle is climbing stairs
What does t.forward(300) do?
Moves in the direction it is facing 300 steps
Moves down the screen 300 steps
Moves up the screen 300 steps
To stop the turtle drawing you need to use which of the following commands?
penup:
pen_up
penup()
penup():
In order to move the turtle 120 forward without drawing on the screen, which order is correct?
forward(120)
penup()
pendown()
pendown()
forward(120)
penup()
penup()
forward(120)
pendown()
What ‘object’ do you control in Python turtle?
The pen object which draws your commands
The shape object which draws your commands
The pencil object which draws your commands
The turtle object which draws your commands
There is an error on this piece of code, how should it be written?
There is no error
turtle.right(90)
turtle.drawcircle(10)
import.turtle
print("Hello world!")
What will this draw?
A Brown rectangle with yellow outline
A Brown Square with a Red outline
A Red Square with a Red Outline
A Yellow Rectangle with a purple outline
Which commands do we need to fill a shape that we have just drawn?
t.begin_fill () and t.end_fill()
t.begin() and t.fill()
t.fill () and t.fill()
t.begin() and t.end()
