Computer Science · Oct / Nov 2023 · Paper 22 · Question 5
0478
As printed in the paper
The question as text
Explain how variables and constants should be used when creating and running a program. [3]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
One mark per mark point, max three
MP1
variables and constants should have meaningful identifiers MP2
…so that programmers/future programmers are able to understand their purpose
MP3
they are both used for data storage
MP4
constants store values that never change during the execution of a program // by example
MP5
variables contain values that have been calculated within the program / can change during the execution of the program // by example
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

