Multiple choice

Recursive functions are executed in a

  1. last in first out order

  2. first in first out order

  3. parallel fashion

  4. any one of the above

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

Recursive functions rely on the call stack to manage function invocations. Since the stack follows a last in first out (LIFO) structure, the most recently called function must complete before returning to the previous caller.