A program uses both local variables and global variables. Describe two differences between local variables and global variables.
- A program uses both local variables and global variables. Describe two differences between local variables and global variables. Difference 1 Difference 2[4]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2023). The mark or mark type is shown in brackets.
- [4] one mark for first description one mark for matching difference max four local variables - scope is a defined block of code/subroutine/procedure/function global variables – scope is the whole program local variables - value cannot be changed elsewhere in the program global variables – value can be changed anywhere in the program
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 →