Exam-style question
Try this first
Which is an advantage of using a subroutine?.
- A.It requires the same code to be written repeatedly
- B.It makes every program longer
- C.It allows a named block of code to be used when needed
- D.It prevents any part of a program from being executed
Answer and explanation
Concise answer
It allows a named block of code to be used when needed
Why this is correct
A subroutine provides a named block of code that can be called when required, helping avoid repeated sections of code.
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.
