Exam-style question
Try this first
What is a parameter in the context of functions?.
- A.A variable that stores the function's output
- B.A variable that is passed into a function
- C.A type of local variable
- D.A global variable used in all functions
Answer and explanation
Concise answer
A variable that is passed into a function
Why this is correct
Parameters allow functions to accept input values, making them more versatile.
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.
