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)
Answer and explanation
Concise answer
displayResult(82, "Ari")
Why this is correct
The interface requires two arguments: one for score and one for name. The selected call supplies exactly two values in the required order.
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.
