Multiple choice

What is a recursive function?

  1. A function that calls itself

  2. A function that uses nested for-loops

  3. A function that does not produce an output

  4. A function that takes multiple inputs

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

A recursive function is defined by its ability to call itself during execution to solve smaller instances of the same problem. This process continues until a base case is reached.