KnowledgeBoat Logo

Class - 12 CBSE Computer Science — Assertion Reason Type Questions

Assertion (A): 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.

Reasoning (R): During a function call, the argument list first contains default argument(s) followed by positional argument(s).

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Functions

2 Likes

Answer

A is true but R is false.

Explanation
Positional arguments are those arguments in a function call that match the number and order of arguments as defined in the function definition. During a function call, the argument list can contain positional arguments first, followed by default arguments if there are any.

Answered By

2 Likes