WorksheetsEOU - Python Turtle - Y7
Total questions: 77
Worksheet time: 1hrs 13mins
To start the turtle drawing you need to use which of the following commands?
pendown:
pen_down( )
pendown( )
pendown():
To make the turtle move forward, which command is used?
turtle.penup()
turtle.forward()
turtle.left()
turtle.backward()
To make the turtle move backwards, which command is used?
turtle.penup()
turtle.forward()
turtle.left()
turtle.backward()
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
Which of these statements will successfully set the colour that the turtle Bob draws in
Bob.fillcolor("red")
Bob.pencolor("Red")
pencolor.bob = "red"
pencolor("red") = Bob
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()
import turtle
Look at this code, what shape will it make?
Square
Triangle
Rectangle
Hexagon
Look at this code, what shape will it make?
Square
Triangle
Rectangle
Hexagon
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
Broken Square
A named memory location used to store values in computer is a ...
Casting
String
Variable
Hard Drive Disk
Choose three properties of a variable below:
Has a name.
Holds a value.
Has a data type.
Has a length.
Choose variable rules from the list below:
Must not begin with a number
Can only contain (A-Z, a-z) and 0-9 characters, and _
Can use _ to join words separated words
Must be in lower case
Choose valid variable names from the list of options given below:
1st_name
Last_name
first Name
f1_name
firstName
In the following code, what type of variable is being created?
foo = "bar"
Integer
Float
String
What does the following python code display?
a = 3
a += 1
a + 5
print(a)
1
3
4
8
9
What does the following Python code display?
heyy
hola
salut
ohayo
What does the following Python code display?
1 4 3
3 4 1
3 4 3
1 8 4
1 4 8
The boolean values True and False are returned when a conditional expression is compared or evaluated.
True
False
Variables are:
a number
a message input by the user
a secret code
containers for storing data value
In Python, string variables can be declared either by using single quotes ' ' or:
; (semicolon)
" " (double quotes)
# (hash symbol)
( ) (parenthesis)
< > (angle brackets)
print("Python " * 3); will print out what
Python 3 Python 3 Python 3
Python Python Python
PythonPythonPython
Python*3 Python*3 Python*3
What will be the output of
print (a + b)
12
3
1 + 2
"a + b"
In programming, what is iteration?
The repetition of steps within a program
The order in which instructions are carried out
A decision point in a program
Testing a program to make sure it works
What is the key word used for when code is repeated or looped?
Iteration
Isolation
ISO File
Instantaneous
Look at the following code, what will it generate
1,2,3,4,5,6,7,8,9,10,11,12
0,1,2,3,4,5,6,7,8,9,10,11,12
1,2,3,4,5,6,7,8,9,10,11,12,13
0,1,2,3,4,5,6,7,8,9,10,11,12,13
1,2,3,4
What does the following program display?
1,2,3,4
1,2,3,4,5
counter,counter,counter,counter,counter
0,1,2,3,4,5
if you wished a loop to repeat 3 types whwt should you use?
For counter in range(0,5):
For counter in range(1.3):
For counter in range(0.3):
what is the name of the variable used in the following code?
counter
for
#
What type of loop is used when you know how many times you want to Select something?
What type of loop is used when you know how many times you want to repeat something until condition is met?
What is the name of the variable in this program?
colour
input
" "
What would be outputted here?
Bigger than 2!
Number is 5
Bigger than 2!
Number is 5
Nothing
What would be outputted here?
it divides by 7!
it divides by 3!
It divides by 7.
It divides by 3.
What would be outputted here?
it divides by 7!
it divides by 3!
It divides by 7.
It divides by 3.
Which of the following shapes is classed as a Process?
Which of the following shapes is classed as a Start/Stop?
Which of the following shapes is classed as a Decision?
Which of the following shapes is classed as Input/Output?
Which of the following shapes is classed as Flow of Direction?
Which command is used to change the turtle's speed?
turtle.speed()
turtle.setspeed()
turtle.changespeed()
turtle.movespeed()
Which of these commands will make the turtle turn right?
turtle.right()
turtle.turnright()
turtle.rotate()
turtle.turn()
What programming language did we learn?
Scratch
Python
Javascript
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()
What is the keyword needed to repeat code (iterate) in Python?
for
if
input
There is an error on this piece of code, what is the correct statement?
screen.bgcolor("lightblue")
screen.bgcolor="lightblue")
screen.bgcolour("lightblue")
screen.bgcolor=lightblue()
There is an error on this piece of code, what is wrong?
Nothing
No full stop needed in the pen.down statement e.g. turtle.pendown()
No brackets needed in the pen.down statement e.g. turtle.pen.down
No turtle prefix needed in the pen.down statement e.g. pen.down()
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
There is an error on this piece of code, what is wrong?
Nothing
No start_fill() set
No colour set in the end fill e.g. end_fill("blue")
No colour set in the start fill e.g. start_fill("blue")
