QUESTION IMAGE
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
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. playerChoice