Home »
MCQs »
Python MCQs
Amongst which of the following shows the types of function calls in Python?
54. Amongst which of the following shows the types of function calls in Python?
- Call by value
- Call by reference
- Both A and B
- None of the mentioned above
Answer: C) Both A and B
Explanation:
Call by value and Call by reference are the types of function calls in Python.
- Call by value - When, we call a function with the values i.e. to pass the variables (not their references), the values of the passing arguments cannot be changed inside the function.
- Call by reference - When, we call a function with the reference/object, the values of the passing arguments can be changed inside the function.