English

Assertion (A): Positional arguments in Python functions must be passed in the exact order in which they are defined in the function signature. - Computer Science (Python)

Advertisements
Advertisements

Question

Assertion (A): Positional arguments in Python functions must be passed in the exact order in which they are defined in the function signature.

Reasoning (R): This is because Python functions automatically assign default values to positional arguments.

Options

  • Both A and R are true and R is the correct explanation for A.

  • Both A and R are true and R is not the correct explanation for A.

  • A is True but R is False. 

  • A is False but R is True. 

MCQ
Assertion and Reasoning

Solution

A is True but R is False.

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×