NEW
Font size
WorksheetsPython Assessment
Total questions: 20
Worksheet time: 10mins
Which PYTHON command is missing from the brackets?
Count
While
10
What symbol is used for multiplication in Python coding?
x
+
#
*
When coding in Python what two instructions would I use if I want the program to select a choice?
IF
IF
COUNT
IF
ELSE
IF
INPUT
In Python coding what does the instruction PRINT do?
Instruct a printer to work
Add together two numbers
Print a statement on the screen
Input a number
What is missing from the Python code in the image?
() [brackets]
" " [speech marks]
: [colon]
; [semi-colon]
What word is missing from the Python code in the image?
birth_year
age
input
Why is there an error in Line 1 of the code?
No brackets
No speech marks
print should be changed to input
Brackets should be square
Why is there an error in line 6 of this Python code?
No speech marks
No brackets
No full stop
No comma
The image contains a program in Python to roll three dice together - what numbers are missing from the bracket?
1 and 18
2 and 18
3 and 18
4 and 18
What command is missing on Line 31?
ELIF
ELSE
COUNT
What is the missing instruction?
(print)
"Print"
What word explains a set of instructions created to complete a particular task
Sequence
Selection
Iteration
Variable
What word describes an instruction that repeats itself in a loop?
Sequence
Selection
Iteration
Variable
What word describes a part of a program that makes a choice between one option or another
Sequence
Selection
Iteration
Variable
What word describes a part of a program that stores information that may change later on
Selection
Sequence
Iteration
Variable
What is the code missing from the line at the top?
while
while true
while True
while True:
What is the name of the graphics package on Python?
Tortoise
Turtle
Terrapin
Turkey
Dinsdale wants to add a second light to his code. After copying lines 8 to 13, what two pieces of code would he have to change in lines 15-20 to place the light in a new position and with a different colour?
Every redlight and redlight.goto(40, 40)
red light in line 8 and redlight.goto(40,40)
red light in line 8 and redlight.penup()
Every redlight and redlight.penup()
What does placing a hashtag at the beginning of a line do to your code?
Put it in the correct order
Highlight a mistake
Ignore what is written after it
Multiply any numbers
Which line of code would be used to change a background colour in Python?
wn.bgcolour("blue")
wn.bgcolor = blue
wn.bgcolour = blue
wn.bgcolor("blue")
