Multiple choice

What is the method of defining functions called, in which the function being defined is applied within its own definition?

  1. Macro

  2. Iteration

  3. Sub function

  4. Recursion

  5. Nested Function

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The most common application of recursion is in mathematics and computer science, in which it refers to a method of defining functions in which the function being defined is applied within its own definition. Specifically this defines an infinite number of instances (function values), using a finite expression that for some instances may refer to other instances, but in such a way that no loop or infinite chain of references can occur.