Computer Science

Which is the most appropriate definition for recursion?

  1. A function that calls itself
  2. A function execution instance that calls another execution instance of the same function
  3. A class method that calls another class method
  4. An inbuilt method that is automatically called

Python Functions

2 Likes

Answer

A function execution instance that calls another execution instance of the same function

Reason — Recursion is defined as a function execution instance that calls another execution instance of the same function. In recursive functions, the function calls itself, creating a chain of function calls where each instance of the function invokes another instance until a termination condition is met.

Answered By

2 Likes


Related Questions