Question: What is the primary use of a stack in algorithm design?
Options:
Correct Answer: To manage function calls
Solution:
Stacks are primarily used to manage function calls in programming, allowing for backtracking and maintaining the order of execution.