Font size
WorksheetsYear 7 Lent
Total questions: 20
Worksheet time: 11mins
What is a rectangle shape used for in a flowchart?
Input/Output
Decision
Start/End
Process
What is a diamond shape used for in a flowchart?
Input/Output
Decision
Start/End
Process
What is a parallelogram shape used for in a flowchart?
Input/Output
Decision
Start/End
Process
What is an oval shape used for in a flowchart?
Input/Output
Decision
Start/End
Process
Which of these is not part of the definition of an algorithm?
It is unambiguous (clear)
It is finite (has a start and end)
It solves a problem or performs a task
It is written in Python
What Python keyword is used first when demonstrating selection?
if
else
input
What Python keyword is used last when demonstrating selection?
if
else
input
What Python would you use to get the whole number value a user typed into the variable called num?
num = int(input())
int(input()) = num
num = input()
"num" = int(input())
What Python would you use to get the word value a user typed into the variable called name?
name = int(input())
input() = name
name = input()
"name" = input()
Which of these are inputs for the micro:bit? (choose all that apply)
Buttons
Accelerometer
Speaker
Compass
Which of these are outputs for the micro:bit? (choose all that apply)
Buttons
Accelerometer
Speaker
LEDs
What syntax is used for assignment in Python?
=
==
:
()
What syntax is used for comparison in Python?
=
==
:
()
What syntax is used for 'more than or equal to' comparison in Python?
>=
=>
<=
=<
What syntax is used for 'less than or equal to' comparison in Python?
>=
=>
<=
=<
In the following Python code, what is num? (choose all that apply)
num = 3 * int(input())
Variable
Integer
String
Constant
What is also needed alongside a decision shape on a flowchart? (choose all that apply)
Labels
2 Output Arrows
A Yes/No question
A Rectangle shape
How would you print the contents of the variable x?
print(x)
print("x")
print x
print "x"
Why does this code produce a syntax error?
Line 1 is missing an int() around input()
The code does not take into account what happens when x = 5.
The code does not work for negative numbers.
Line 6 does not need a colon at the end of else.
If the user inputs 5, what does this code print?
Small
Medium
Large
Syntax error
