Home / Programming MCQs / Python MCQs / Question

M

Mr. Dubey • 51.32K Points
Coach

Q. What is the output of the following program :
def myfunc(a):
a = a + 2
a = a * 2
return a
print myfunc(2)

(A) 8
(B) 16
(C) Indentation Error
(D) Runtime Error

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.