logo

AQA A-Level Computer Science practice

Explain two advantages of using subroutines in a program.

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

practice

Style

Topic

Programming

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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions