Python_Institute
PCEP-30-02 · Question #225
PCEP-30-02 Question #225: Real Exam Question with Answer & Explanation
The correct answer is C. 23. See the full explanation below for the reasoning.
Question
What is the expected output of the following code?
def func(x, y, z):
return x + 4 * y + 5 * z
print(func(1, z=2, y=3))
Options
- A80
- B24
- C23
- DThe code is erroneous.
Community Discussion
No community discussion yet for this question.