Python Function MCQs

Question 1: What will be the output of the following code?

a=10
def myfunction():
    a=20
    return
print('a=',a)

Question 2: What is not true about formal and actual parameters?

Question 3: In Python, functions are

Question 4: Variable used inside a function become its

Question 5: What is true about the docstring of a function?