Explain why constants, variables and arrays are used in programming. Constants Variables Arrays
- ConstantsExplain why constants are used in programming.[2]
- VariablesExplain why variables are used in programming.[2]
- ArraysExplain why arrays are used in programming.[2]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2019). The mark or mark type is shown in brackets.
- [6] Constants
- Two from:
- ∞ The value cannot be changed accidentally ...
- ∞ ... during the execution of the program
- ∞ Value only needs to be changed once if circumstances change/during the initialisation process
- Variables
- Two from:
- ∞ Stores a value that can change ...
- ∞ ... during the execution of the program
- ∞ Can use a variable without knowing its value
- Arrays
- Two from:
- ∞ A list of items of the same data type ...
- ∞ ... stored under a single name
- ∞ To reduce the number of variables used
- ∞ Any item can be found using an index number to show its place in the list
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →