Font size
WorksheetsY7 Variables and Algorithms
Total questions: 10
Worksheet time: 15mins
Which rows in the program are inputs?
Row 1
Row 2
Row 3
Row 4
Row 5
Which row in the program is an output?
Row 1
Row 2
Row 3
Row 4
Row 6
What does a variable do?
Says a name variable
Prints out a name variable
Stores a value and can be re-used when called
Collects an output and stores it
Helps find things in a program
What would be the answer here?
Number 1
Number 2
Number 3
What would number3 variable hold?
22
24
26
28
30
What would number3 variable hold here?
29
30
32
31
33
The following program is written as?
START
INPUT number 1
INPUT number 2
IF number 1 > number 2
OUTPUT £5.00
ELSE
OUTPUT £10.00
The text above is a flow chart
The text above is pseudocode
The text above is a Scratch program
What is the purpose of pseudocode?
To program a computer
So we can see the different symbols
To plan/understand a program in English
I helps us with the variables
What's happening here?
Program will draw a hexagon
Program will draw a circle
Program will draw a rectangle
Program will draw a square
INPUT age
IF age < 18
OUTPUT you can't come in
ELSE
OUTPUT allow in
The code above checks to see when your birthday is
The code above checks to see if you're old enough to enter
The code above checks to see if your birthday is coming up
The code above checks to see if you're male or female
