Font size
WorksheetsTurtle Python Quiz 1
Total questions: 27
Worksheet time: 15mins
How do we create variables in python?
Var ==1
Var != 1
Var = 1
Var ;= 1
How do we print a statement in python?
print_(x)
print.x
print.(x)
print(x)
What will be the output for the following program
x = 'apple'
print(x)
X
x
print(X)
apple
The correct syntax for creating a turtle is
Turtle = turtle
house = tutle.Turtle()
house = turtle-Turtle()
house = turtle.Turtle()
What settings can be applied to Python turtle graphics? Tick all those that apply
Position
Colour
Orientation
Sound
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 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")
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
What is the correct syntax for the for loop in python turtle?
for i in range()
for i in range()::
for i in range
for i in range():
Comments are:
Written for humans to read and understand
Only needed when a program is over 50 lines
Commands performed by the computer
Always blue when Python recognizes them
print("3+4")
holds whole numbers
holds a decimal point in a number
Which of these will give us a completely random colour?
turtle.color(randint(0,255),randint(0,255),randint(0,255))
turtle.color(randint(0,255),0,0)
turtle.color(randint(0,10),randint(250,255),randint(0,300))
randint(0,255),randint(0,255),randint(0,255)
print(Hello world!)
True or False:
There are no symbols which can be used in a variable name.
True
False
