Which of the following data structures is used in the implementation of…

2025

Which of the following data structures is used in the implementation of recursion ?

  1. A.

    Queue

  2. B.

    Stack

  3. C.

    Linked List

  4. D.

    Array

Attempted by 317 students.

Show answer & explanation

Correct answer: B

Recursion relies on the call stack to manage function calls and return addresses. Each recursive call pushes a new frame onto the stack, allowing the program to track execution state and return correctly after base cases are reached.

Explore the full course: Niacl Ao It Specialist