NEW
Font size
WorksheetsDT Grade 7 Python Revision
Total questions: 12
Worksheet time: 6mins
Which flowchart shape below should you use for decisions?
What is the term for steps you follow to solve a problem?
Program
Python
Algorithm
Hack
Which command should you use to display the text to the screen?
text()
output()
print()
What is the name of a variable that does not change value?
constant variable
algorithm
value
constant
What is wrong with the following code?
There is no space after the word print.
There are no speech marks “ “ around the text in the brackets.
Print should start with a big P
There should be no brackets ( ).
Look at the flowchart below. What is the output for Price?
13
10
12
3
What does the following code do in python?
It creates a variable called ‘ahmedAge’ and sets it to 12. It then adds 1 and then outputs the variable value.
It prints out a variable called ‘ahmedAge’, then sets it to 13 and adds 3.
It creates a variable called ‘ahmedAge’ and sets it to 21. It then adds 2 and then outputs the variable value.
It creates a variable called ‘print’, then adds 1.
What is the output of the following code?
10
7
17
20
What are the two errors in the code below?
‘EMIRATES’ should not be in capital letters and the number 7 is wrong.
‘2EMIRATES’ should be ‘EMIRATES’ and ‘Print’ should be ‘print’.
Print should be PRINT and there should be no brackets ‘()’.
There should be two equals signs and ‘Print’ should be ‘print’.
Which code would display 'Hello World'
Print("Hello World")
print("Hello World")
print(Hello World)
print=("hello world")
Which operator is used to multiply numbers?
%
*
#
x
