engineering computer science MCQ #1245

Which data structure is used to implement a recursive function?

engineering computer science MCQ #1245

  1. Question 1

    Q1. Which data structure is used to implement a recursive function?

    • A) Stack
    • B) Queue
    • C) Tree
    • D) Graph

    Answer: Stack

    Explanation: A stack is used to implement recursive functions, as it follows the LIFO principle, allowing for the correct order of function calls and returns.