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