Question: Which of the following is a valid application of a stack?
Options:
Correct Answer: Undo functionality in text editors
Solution:
Stacks are used for undo functionality in text editors because they allow the last action to be reversed easily.