logo

Question detail

Which is an advantage of using a subroutine?

Try the question, check the answer, then read the explanation to understand the curriculum point.

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

Which is an advantage of using a subroutine?.

  1. A.It requires the same code to be written repeatedly
  2. B.It makes every program longer
  3. C.It allows a named block of code to be used when needed
  4. D.It prevents any part of a program from being executed

Model answer

What a good answer should say

  • It allows a named block of code to be used when needed

Explanation

Why this works

A subroutine provides a named block of code that can be called when required, helping avoid repeated sections of code.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.