nerdexam
Python_Institute

PCEP-30-02 · Question #184

PCEP-30-02 Question #184: Real Exam Question with Answer & Explanation

The correct answer is D. 16. See the full explanation below for the reasoning.

Question

What is the expected output of the following code? def func1(a): return a ** a def func2(a): return func1(a) * func1(a) print(func2(2))

Options

  • A4
  • BThe code is erroneous.
  • C2
  • D16

Community Discussion

No community discussion yet for this question.

Full PCEP-30-02 Practice