CBSE Class 12 Computer Science Question 8 of 103

Working with Functions — Question 8

Back to all questions
8
Question

Question 8

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).

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.