logo

Question detail

Which statement best describes a subroutine interface?

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 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

Model answer

What a good answer should say

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

Explanation

Why this works

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.

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.