Question 1
A student has written this pseudocode algorithm:
The program uses variables.
Describe what is meant by a variable.
[2]
Give the identifiers of all the variables used in this program.
[1]
The student has used a do loop on line 02.
Describe the difference between a do loop and a while loop.
[2]
Rewrite lines 05 to 07 to use a while loop instead of a for loop.
You should write your answer using either program code or pseudocode.
[4]