logo

Question detail

A subroutine is defined as `displayResult(score, name)`. Which call follows this 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

A subroutine is defined as `displayResult(score, name)`. Which call follows this interface?.

  1. A.displayResult()
  2. B.displayResult(82)
  3. C.displayResult(82, "Ari")
  4. 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.

Related flashcards

No flashcards are published for this page yet.

Related practice questions

No questions are published for this page yet.