KnowledgeBoat Logo
|

Robotics & Artificial Intelligence

Assertion (A): When the user defines a function of his/her own and use it in the program to perform a specific task, it is known as user defined function.

Reason (R): The types of functions viz. built-in functions and modules are also known as user defined functions because they are not defined by the system developers. Thus, it is not necessary that the system developers are only authorised for creating a function.

Based on the above discussion, choose an appropriate statement from the options given below:

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

Python Functions

2 Likes

Answer

A is true but R is false.

Reason — The assertion is correct because when a user defines a function of his/her own to perform a specific task, it is called a user-defined function. However, the reason is false because built-in functions and modules are defined by the system developers (language creators), not by the users. They are not user-defined functions.

Answered By

3 Likes


Related Questions