ASSERTION AND REASONING based questions. Mark the correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True
Assertion (A):- If the arguments in function call statement match the
number and order of arguments as defined in the function definition,
such arguments are called positional arguments.
Reasoning (R):- During a function call, the argument list first contains
default argument(s) followed by positional argument(s).
Answer:
If the arguments in a function call 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 should first contain the positional argument(s) followed by default argument(s).
Thus,
- Assertion is true.
- Reasoning is false.
So, the correct answer is (c) A is True but R is False.