Stack
CBSE · Class 12 · Computer Science
NCERT Solutions for Stack — CBSE Class 12 Computer Science.
Interactive on Super Tutor
Studying Stack? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for ncert solutions and more.
1,000+ Class 12 students started this chapter today

Super Tutor has 10+ illustrations like this for Stack alone — flashcards, concept maps, and step-by-step visuals.
See them all6 worked solutions below. Unlock all 11 free in Super Tutor
EXERCISE
1aStack is a linear data structureShow solution
Not sure why a step works? check your working in Super Tutor
1bStack does not follow LIFO ruleShow solution
Not sure why a step works? check your working in Super Tutor
1cPUSH operation may result into underflow conditionShow solution
Not sure why a step works? check your working in Super Tutor
1dIn POSTFIX notation for expression, operators are placed after operandsShow solution
Not sure why a step works? check your working in Super Tutor
2aFind the output of the following code:Show solution
- `numberList.append(40)` makes the list `[10,20,30,40]`
- First `pop()` gives `40`, so `result = 0 + 40 = 40`
- Second `pop()` gives `30`, so `result = 40 + 30 = 70`
So the output is `Result= 70`.
Not sure why a step works? check your working in Super Tutor
2bFind the output of the following code:Show solution
- `answer.append('T')` → `['T']`
- `answer.append('A')` → `['T','A']`
- `answer.append('M')` → `['T','A','M']`
Now popping removes from the top:
- `pop()` gives `M` → `output = "M"`
- `pop()` gives `A` → `output = "MA"`
- `pop()` gives `T` → `output = "MAT"`
So the printed result is `Result= MAT`.
Not sure why a step works? check your working in Super Tutor
5 more solved questions in Stack
Every remaining exercise is solved step by step in Super Tutor, plus practice quizzes and flashcards for this chapter. Free to start.
Stuck on a step?
Ask Super Tutor AI to explain any solution on this page in a simpler way — free, 24x7.
Ask a Doubt FreeFrequently Asked Questions
What are the important topics in Stack for CBSE Class 12 Computer Science?
How to score full marks in Stack — CBSE Class 12 Computer Science?
Where can I get free NCERT Solutions for Stack Class 12 Computer Science?
Sources & Official References
- NCERT Official — ncert.nic.in
- CBSE Academic — cbseacademic.nic.in
- CBSE Official — cbse.gov.in
- National Education Policy 2020 — education.gov.in
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Stack
Practice Quiz
Test yourself with a quick quiz
Important Questions
Practice with board exam-style questions
Revision Notes
Key points for last-minute revision
Formula Sheet
All formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect visually
Study Plan
Step-by-step plan to ace this chapter
Flashcards
Quick-fire cards for active recall
Syllabus
What topics to cover
For serious students
Get the full Stack chapter — for free.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan for CBSE Class 12 Computer Science.