CBSE Class 12 Computer Science – Stack

Previous Chapter Next Chapter

Study Materials

12th

12th - Computer Science

Stack

Chapter Overview

This chapter introduces the concept of a stack—a linear data structure that follows the Last-In-First-Out (LIFO) principle. It covers fundamental operations like push and pop, stack implementation using Python lists, checking overflow and underflow conditions, and real-world applications such as function call management, undo operations, and expression parsing.

Important Keywords

  • Stack: A LIFO data structure used to store elements.
  • Push: Operation to insert an element at the top of the stack.
  • Pop: Operation to remove the top element from the stack.
  • Peek/Top: Returns the top element without removing it.
  • Overflow: Attempt to push when stack is full.
  • Underflow: Attempt to pop from an empty stack.

Detailed Notes

to view full chapter (Stack - Detailed Notes) resources.