Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 21 of 25 in this code, which option is a parameter accepted by…

Question

question 21 of 25
in this code, which option is a parameter accepted by a function?
on start
set playerchoice to call getplayerchoice
set computerchoice to call getcomputerchoice
call result playerchoice computerchoice
a. getplayerchoice
b. on start
c. playerchoice
d. result

Explanation:

Brief Explanations

To determine the parameter accepted by a function, we analyze each option:

  • Option A: "getPlayerChoice" is a function being called, not a parameter.
  • Option B: "on start" is an event or a block that triggers code execution, not a parameter.
  • Option C: In the "call result" block, "playerChoice" is passed as an input (parameter) to the "result" function.
  • Option D: "result" is the function being called, not a parameter.

Answer:

C. playerChoice