Computer Science · Oct / Nov 2020 · Paper 21 · Question 2
0478
As printed in the paper
The question as text
Describe the purpose of variables and constants. Use an example of each in your answer. [4]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
One mark for description of variable
One mark for description of constant
One mark for inclusion of an example variable
One mark for inclusion of an example constant
Example answer:
A value that can change during the execution of a program
A named value that cannot change during the execution of a program Variable example - using a counter for example counter ← counter + 1 Constant example – a static value that can be used for checking for example < maxAge
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

