CBSE Class 12 Computer Science
Question 23 of 63
Data Structures in Python — Question 6
Back to all questionsAll of these
Reason — Stacks, with their last-in-first-out (LIFO) functionality, are important in parentheses balancing programs, tracking local variables at runtime for efficient memory management, and compiler syntax analyzers for parsing expressions and managing program flow.