Exam-style question
Try this first
A subroutine is defined as `displayResult(score, name)`. Which call follows this interface?.
- A.displayResult()
- B.displayResult(82)
- C.displayResult(82, "Ari")
- D.displayResult(82, "Ari", true)
Model answer
What a good answer should say
- displayResult(82, "Ari")
Explanation
Why this works
The interface requires two arguments: one for score and one for name. The selected call supplies exactly two values in the required order.
Common mistake
No common mistake is linked to this question yet.
