logo

AQA A-Level Computer Science practice

How is a subroutine executed in a program?

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

At a glance

MCQ

Type

practice

Style

Topic

Programming

Exam-style question

Try this first

How is a subroutine executed in a program?.

  1. A.By deleting its name from the program
  2. B.By writing its name in a program statement
  3. C.By converting the program into machine code manually
  4. D.By storing the subroutine name as a comment

Answer and explanation

Concise answer

By writing its name in a program statement

Why this is correct

A subroutine is executed, or called, by simply writing its name in a program statement.

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