Skip to main content
O-LevelComputer ScienceProgramming2210/23 · Oct/Nov 2023 · Q74 Marks

A program uses both local variables and global variables. Describe two differences between local variables and global variables.

  1. 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.

  1. [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 →

About this question

Topic
Programming, O-Level Computer Science (syllabus 2210). Structured question, 4 marks.
Source
O-Level Computer Science, Oct/Nov 2023 Paper 2 Variant 3, question 7.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep