Font size
WorksheetsPython Assessment Year 8
Total questions: 50
Worksheet time: 25mins
Print("Hello world!")
print("3+4")
print(9/3)
print("Hello" + "world" + "today")
print("Hello world!" * 2)
print("Hello world!\nHello world!")
Hello world!
print(Hello world!)
What would this print?
Why do we learn Python?
It's a really big snake
It's the name of a very funny comedy show
It's simple and easy to learn
It's so rare that no one else knows it
print("Hello world!")
print(3+4)
print(x)
How many numbers would this print?
print(X)
Why won't this work?
What are the key constructs of Python/programming languages
Sequence
Selection
Iteration
Opening Google Classroom and completing the starter activity
A WHILE loop is what kind of loop?
A conditional loop
A summer holiday loop
A counting loop
A fast loop
What does 'Sequence' mean?
Doing things/code executing in order
Repeating lines of code again and again and again...
Binary code
Making decisions with IF ELIF and ELSE statements
What does the '#' do in Python?
Tag celebrities
Alert you that it is a Friday
Debug your code
Add comments
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()
