Courses
Courses for Kids
Free study material
Offline Centres
More
Store Icon
Store

Stack Class 12 History Chapter 3 Revision Notes 2025-26

ffImage
banner

History Chapter 3 Detailed Notes and Exam Preparation Tips

CBSE Class 12 Computer Science Notes Chapter 3 bring together all the vital concepts of this chapter in an easy-to-follow format. These notes ensure a smooth and effective revision, helping students stay confident during their CBSE Computer Science preparation.


In Chapter 3, you will understand important programming concepts and practical topics necessary for exam readiness. With clear explanations and structured highlights, the notes are tailored for quick recaps and better understanding of Computer Science fundamentals.


Vedantu’s expert-created revision notes offer focused insights for every type of learner, making it easier to organize your study time and clarify doubts before the final exams. Enjoy a more confident revision with helpful clarification and concise pointers.


History Chapter 3 Stepwise Answers and Exam Preparation Tips

In computer science, a data structure organises and manages collections of data. Stacks are a type of linear data structure, different from other structures like arrays, linked lists, or queues. In a stack, items are added and removed from only one end, called the top, following the Last-In-First-Out (LIFO) principle.


This means the element added last will be removed first, similar to how we manage piles of plates or books. The fundamental stack operations are PUSH, to insert an element at the top, and POP, to remove the top element. If the stack is full, a PUSH operation may result in a condition called “overflow”; if empty, a POP leads to “underflow.”

Key Characteristics of Stacks

Stack elements are organised in sequence—there is no way to add or remove elements except at the top. Stacks can be visualised by daily life analogies:

  • Piles of books or plates—insert and remove from the top only.
  • Vertical piles of chairs.
  • Bangles worn one after another on the wrist.
  • Boxes stacked in a kitchen shelf or pantry.

Stacks are not just theoretical; they solve many real-world computing problems. For example, exam systems, web browsers, and programming tools use stacks to keep track of data and operations.

Applications of Stack in Programming

In daily programming, stacks play a vital role. Some of the most important applications include:

  • Reverse a string: The latest character entered becomes the first one out, making string reversal simple using stacks.
  • Redo/Undo in editors: Each edited action is stored in a stack, helping with undo and redo commands.
  • Web browsing history: Browsers keep track of visited pages using stacks, making BACK and FORWARD buttons possible.
  • Parentheses matching: Compilers and interpreters check for proper nesting of parentheses using stacks.
Stack Operations: PUSH and POP

There are two primary stack operations:

  • PUSH: Adds a new element to the top. If the stack is full, trying to add one more gives an overflow error.
  • POP: Removes the element at the top. Removing from an empty stack produces an underflow error.

In Python, stacks are easily implemented with the built-in list type. The append() method is used to PUSH (insert) an item, and pop() removes (POPs) it from the top.

Implementing Stack in Python

Stack functions can be custom-defined for clarity:

  • isEmpty(stack) – Checks if the stack is empty.
  • opPush(stack, element) – Pops in a new element.
  • opPop(stack) – Removes and returns the top element.
  • top(stack) – Shows the current top element without removing it.
  • display(stack) – Displays all elements from top to bottom.

A sample Python program will create a stack, allow items to be pushed and popped, show the top, and eventually empty the stack. Trying to pop from an empty stack gives an underflow message; pushing beyond maximum size would overflow in fixed-size implementations (though Python lists grow dynamically).

Notations for Arithmetic Expressions

Arithmetic expressions can be written in three main notations:

  • Infix: Operators are written between operands (e.g., x + y).
  • Prefix (Polish): Operators are written before operands (e.g., +xy).
  • Postfix (Reverse Polish): Operators are written after operands (e.g., xy+).
Type of ExpressionDescriptionExample
Infix Operators between operands x * y + z
3 * (4 + 5)
(x + y)/(z * 5)
Prefix (Polish) Operators before operands +z*xy
*3+45
/+xy*z5
Postfix (Reverse Polish) Operators after operands xy*z+
345+*
xy+z5*/

Infix is commonly used in mathematics and programming, but computers work more efficiently using prefix or postfix, as no parentheses are required if the order of operators is maintained.

Converting Infix to Postfix Notation

The conversion of infix to postfix is a step-by-step procedure involving stacks. Each operator, operand, and parenthesis is processed in order:

  1. Create an empty string (postExp) and process each character of the infix expression.
  2. Push left parenthesis onto the stack.
  3. If a right parenthesis is found, pop operators from the top and append to result until you reach a left parenthesis (discard both parentheses).
  4. If an operator has lower precedence than the one at the top of stack, pop and append from stack to result until the correct rank is found, then push new operator.
  5. Operands are directly appended to the result string.
  6. At the end, pop remaining operators from the stack into the result string.

This algorithm helps computers and calculators evaluate expressions quickly and correctly. Parentheses and operator precedence are handled easily.

Evaluating Postfix Expressions

Stack-based evaluation of postfix expressions is simple. Read left to right:

  1. For each symbol: If it’s an operand, push to the stack.
  2. If it’s an operator, pop two operands and apply the operator.
  3. Push the result onto the stack.
  4. The final answer will be at the top of the stack after processing all characters.

If more than one number remains in the stack at the end, the postfix expression was invalid. This method ensures calculations proceed in the correct order, even for complex formulas.

Summary Points
  • A stack allows insertion and deletion from only one end, always the top.
  • It follows the LIFO rule—Last In, First Out.
  • Basic operations are PUSH (insert) and POP (delete).
  • Python lists can be used as stacks, using append() and pop() functions.
  • Arithmetic expressions can be written as infix, prefix, or postfix forms; computers easily evaluate prefix and postfix using stacks.
  • Stack data structure helps in conversion and evaluation of algebraic expressions in programming.

Class 12 History Chapter 3 Notes – Stack:  Important Points to Remember

These revision notes cover every important topic of Class 12 History Chapter 3 Stack in an easy-to-recall format. Whether it's the stack definition, LIFO principle, or Python implementation, every point is presented in clear language. Use these notes to boost your understanding and score well in CBSE exams.


All crucial stack operations like PUSH, POP, and practical applications (such as undo/redo and web history) are explained with examples. Topic-wise summaries and sample code make quick revision simple for tests and board preparations. Review these CBSE Class 12 Stack notes whenever you need a fast refresher!


FAQs on Stack Class 12 History Chapter 3 Revision Notes 2025-26

1. What are the best notes for Class 12 History Chapter 3?

The best notes for Class 12 History Chapter 3 focus on concise summaries, key definitions, and exercise-wise solutions to boost exam performance.

  • Clear stepwise answers matching CBSE style
  • Important topics highlighted for revision
  • Structured for quick learning
  • Includes diagrams, map terms, and examples

2. How can I download NCERT solutions PDF for History Class 12 Chapter 3?

You can download the Class 12 History Chapter 3 solutions PDF directly from educational platforms offering free chapterwise downloads for offline study.

3. What are the likely exam questions from Chapter 3 in Class 12 History?

Likely exam questions from History Chapter 3 include short definitions, map-based questions, and long answers requiring explanation with examples or diagrams.

  • Definitions of key terms
  • Trace historical events and their impact
  • Long answers explaining causes or consequences
  • Map or diagram labeling questions

4. How to write stepwise NCERT History answers to score full marks?

Write stepwise History answers by structuring points clearly and matching CBSE marking guidelines for high scores.

  1. Read the question carefully
  2. List points in logical order
  3. Include relevant keywords and terminology
  4. Add a supporting diagram if asked
  5. Conclude with a summarizing statement

5. Are diagrams or definitions mandatory in Class 12 History answers?

Yes. Diagrams or definitions are often required in answers to score full marks, especially for map-based or definition-type questions.

  • Use neat labels for diagrams or maps
  • Start answers with precise definitions if asked

6. How do I structure long answers in Class 12 History for better marks?

Structure long answers using an introduction, main points with supporting details, and a clear conclusion for better marks in CBSE History exams.

  1. Begin with a relevant introduction
  2. Present key arguments or explanations in separate paragraphs
  3. Use examples, dates, and important terms
  4. End with a concise conclusion

7. Where can I find chapterwise solutions PDF for offline study?

All chapterwise solutions PDF for Class 12 History are available on major educational sites for easy free download and offline access.

8. What are the most important topics from History Chapter 3 for CBSE exams?

The most important topics include key historical events, influential personalities, causes and consequences, and map or diagram elements as per the syllabus.

  • Summary of main events
  • Major themes and case studies
  • Key terms and their significance
  • Map locations or illustrations

9. Do examiners award partial marks for correct steps if the final answer is wrong in History?

Yes. Examiners give partial marks if your steps or main points are correct, even if the final answer is not fully accurate.

  • Marks depend on stepwise explanations
  • Using correct terms increases chances of partial marks

10. How to revise History Chapter 3 quickly before exams?

Use a structured revision plan to cover Chapter 3 quickly and effectively right before exams.

  • Review concise class notes and summaries
  • Practice exercise-wise solutions
  • Revise key definitions and dates
  • Test with previous year and model questions
  • Brush up important diagrams or maps

11. How can I learn diagrams and map labelling for History Chapter 3?

Practice map and diagram labelling regularly using textbook examples and follow CBSE conventions for neatness and accuracy.

  1. Study textbook maps to identify required labels
  2. Draw and label maps regularly
  3. Use clear, legible handwriting
  4. Revise labelling conventions before exams

12. Are NCERT solutions enough for scoring well in Class 12 History exams?

Yes. NCERT solutions cover all core concepts and question types but practicing additional previous year questions and revision notes can improve scores further.