logo

Question detail

Which statement about the use of subroutines is correct?

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 statement about the use of subroutines is correct?.

  1. A.A subroutine can only be written at the point where it is first needed
  2. B.A subroutine is an unnamed block of code that cannot be called
  3. C.A subroutine can help reduce duplication by placing instructions in one named block
  4. D.A subroutine is the same as a hardware device

Model answer

What a good answer should say

  • A subroutine can help reduce duplication by placing instructions in one named block

Explanation

Why this works

Instructions that are needed in more than one place can be placed in a named subroutine and called when required, reducing duplicated 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.