MCQ Single Best Answer Difficult

QWhich of the following statement is not true about Python functions?

ID: #20264 Create Objects in Python 95 views
Question Info
#20264Q ID
DifficultDifficulty
Create Objects in PythonTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A It is not mandatory to write a return expression in a Python function
  • B Keyword arguments can be passed after non-keyword arguments
  • C Non-keyword arguments can be passed after keyword arguments
  • D Variable number of arguments can be passed to Python functions
Correct Answer: Option C

Explanation

The statement that is not true about Python functions is:

"Non-keyword arguments can be passed after keyword arguments."

In Python, non-keyword arguments (positional arguments) must be passed before keyword arguments.

Share This Question

Challenge a friend or share with your study group.