Exam-style question
Try this first
Explain two advantages of using subroutines in a program.
Answer and explanation
Concise answer
Subroutines can reduce duplication because a set of instructions is written once in a named block and called whenever it is needed.
Why this is correct
Credit should be given for two clearly explained advantages. Suitable points include reducing repeated code, improving readability, making a program easier to maintain, and allowing a block of code to be used whenever it is needed.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
