Explaining how subroutines make a program easier to maintain
A full maintenance answer names a benefit of subroutines, such as one place to change, then uses because to give the reason, ideally with an example from the program, not just 'it is easier'.
Understanding Explaining how subroutines make a program easier to maintain in IGCSE Computer Science Paper 2
What it does: The tax calculation is written once inside the function, so a change to the rate is made in one place only. Three calls use one ShowMenu definition, so editing that one procedure updates every place it is used. A full answer names a benefit and gives a reason. 'It is easier' just repeats the question and gives no reason. 'Because' shows the reason for the benefit, for example: one place to change because every call uses the same code. Copied code is not linked. Each copy must be changed separately, which is slow and error-prone. A call does not hold a copy. It sends control to the single subroutine, so one edit updates every call.
Common mistakes: A procedure call needs the CALL keyword. It should be CALL ShowBanner(). The banner text can then be changed in one place and every call shows the new text. A function header must state the data type it returns. It should be FUNCTION Tax() RETURNS REAL. Changing the rate in one place then updates every call.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 439–448) and word search (Modules 439–458).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
benefit because reasonFill in the Blanks
Spot the Error
Student with a class code? Join your class →