Exam-style question
Try this first
In the Python subroutine definition below, which value is passed to the parameter named number when the subroutine is called? ```python def showDouble(number): print(number * 2) showDouble(7) ```.
- A.2
- B.7
- C.14
- D.number
Answer and explanation
Concise answer
7
Why this is correct
The argument 7 is supplied in the call and is passed to the parameter number. The subroutine then calculates 7 multiplied by 2, producing 14.
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.
