logo

AQA A-Level Computer Science practice

What is a subroutine?

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

What is a subroutine?.

  1. A.A named out-of-line block of code that can be called
  2. B.A variable used to store a single value
  3. C.A comment explaining how a program works
  4. D.A hardware component inside a computer

Answer and explanation

Concise answer

A named out-of-line block of code that can be called

Why this is correct

A subroutine is a named out-of-line block of code that may be executed by calling 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