Class - 12 CBSE Computer Science — Assertion Reason Type Questions

Assertion. If the arguments in a function call statement match the number and order of arguments as defined in the function definition, such arguments are called positional arguments.

Reason. During a function call, the argument list first contains default argument(s) followed positional argument(s).

Python Functions

1 Like

Answer

(c)

Assertion is true but Reason is false.

Explanation
If the arguments in a function call statement match the number and order of arguments as defined in the function definition, such arguments are called positional arguments. During a function call, the argument list first contains positional argument followed by default arguments because any parameter cannot have a default value unless all parameters appearing on its right have their default values.

Answered By

1 Like