logo

AQA A-Level Computer Science practice

A programmer has written the same group of instructions in three different places in a program. Explain how using a subroutine could improve this 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

A programmer has written the same group of instructions in three different places in a program. Explain how using a subroutine could improve this program.

Answer and explanation

Concise answer

The repeated group of instructions could be placed in one named subroutine.

Why this is correct

A strong answer identifies the creation of one named out-of-line block, explains that the block is called from each required location, and links this to advantages such as reduced duplication, improved readability, and easier maintenance.

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