Exam-style question
Try this first
Which statement best describes a subroutine interface?.
- A.It specifies how the subroutine can be called, including the data it expects
- B.It is the output produced by every statement in the subroutine
- C.It is a list of all variables used anywhere in the program
- 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.
