logo

AQA A-Level Computer Science practice

Which statement best describes a subroutine interface?

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

Which statement best describes a subroutine interface?.

  1. A.It specifies how the subroutine can be called, including the data it expects
  2. B.It is the output produced by every statement in the subroutine
  3. C.It is a list of all variables used anywhere in the program
  4. D.It is a command that prevents parameters from being passed

Answer and explanation

Concise answer

It specifies how the subroutine can be called, including the data it expects

Why this is correct

An interface describes the way other parts of a program interact with the subroutine. This includes the subroutine name and the parameters that must be supplied.

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