Direction: Choose the correct option
Q1.
How do you define a function in Python?
Direction: Choose the correct option
Q2.
What is the purpose of the `return` statement?
Direction: Choose the correct option
Q3.
What is the output of `def add(a,b): return a+b; print(add(2,3))`?
Direction: Choose the correct option
Q4.
What is a default argument?
Direction: Choose the correct option
Q5.
What does `def func(*args):` do?
Direction: Choose the correct option
Q6.
What does `def func(**kwargs):` do?
Direction: Choose the correct option
Q7.
How do you call a function with keyword arguments?
Direction: Choose the correct option
Q8.
What is the scope of a variable defined inside a function?
Direction: Choose the correct option
Q9.
What is the output of `def func(): return; print(func())`?
Direction: Choose the correct option
Q10.
What is a lambda function?
