Brand Logo

Class 9

Class 9 - English
Moments (9 Chapters)|
Beehive (18 Chapters)|
Words and Expressions - I (9 Chapters)
Class 9 - Health and Physical Education
Health and Physical Education (14 Chapters)
Class 9 - Hindi
Sanchayan (4 Chapters)|
Sparsh (10 Chapters)|
Kshitij (13 Chapters)|
Kritika (4 Chapters)
Class 9 - ICT
Information and Communication Technology (8 Chapters)
Class 9 - Mathematics
Mathematics (12 Chapters)
Class 9 - Sanskrit
Shemushi Prathmo Bhag (10 Chapters)|
Vyakaranavithi (20 Chapters)|
Abhyaswaan Bhav (15 Chapters)
Class 9 - Science
Science (12 Chapters)
Class 9 - Social Science
Contemporary India (6 Chapters)|
Democratic Politics (5 Chapters)|
Economics (4 Chapters)|
India and the Contemporary World - I (5 Chapters)

Class 10

Class 10 - English
First Flight (22 Chapters)|
Foot Prints Without feet (9 Chapters)|
Words and Expressions - II (9 Chapters)
Class 10 - Health and Physical Education
Health and Physical Education (13 Chapters)
Class 10 - Hindi
Kshitij - II (13 Chapters)|
Sparsh (14 Chapters)|
Sanchayan - II (3 Chapters)|
Kritika (3 Chapters)
Class 10 - Mathematics
Mathematics (14 Chapters)
Class 10 - Sanskrit
Vyakaranavithi (14 Chapters)|
Shemushi - II (12 Chapters)|
Abhyaswaan Bhav - II (14 Chapters)
Class 10 - Science
Science (13 Chapters)
Class 10 - Social Science
Contemporary India (7 Chapters)|
Democratic Politics (5 Chapters)|
India and the Contemporary World - II (5 Chapters)|
Understanding Economic Development (5 Chapters)
Class 10 - Urdu
Nawa-e-urdu (15 Chapters)

Class 11

Class 11 - Accountancy
Accountancy - II (2 Chapters)|
Financial Accounting - I (7 Chapters)
Class 11 - Biology
Biology (19 Chapters)
Class 11 - Biotechnology
Biotechnology (12 Chapters)
Class 11 - Business Studies
Business Studies (11 Chapters)
Class 11 - Chemistry
Chemistry Part - I (6 Chapters)|
Chemistry Part - II (3 Chapters)
Class 11 - Computer Science
Computer Science (11 Chapters)
Class 11 - Creative Writing and Translation
Srijan (4 Chapters)
Class 11 - Economics
Statistics for Economics (8 Chapters)|
Indian Economic Development (8 Chapters)
Class 11 - English
Hornbill (11 Chapters)|
Snapshots (5 Chapters)|
Woven Words (27 Chapters)
Class 11 - Fine Art
An Introduction to Indian Art Part - I (8 Chapters)
Class 11 - Geography
Fundamentals of Physical Geography (14 Chapters)|
India Physical Environment (6 Chapters)|
Practical Work in Geography (6 Chapters)
Class 11 - Health and Physical Education
Health and Physical Education (11 Chapters)
Class 11 - History
Themes in World History (13 Chapters)
Class 11 - Home Science
Human Ecology and Family Sciences - I (7 Chapters)|
Human Ecology and Family Sciences - II (4 Chapters)
Class 11 - Informatics Practices
Informatics Practices (8 Chapters)
Class 11 - Knowledge Traditions Practices of India
Knowledge Traditions Practices of India (9 Chapters)
Class 11 - Mathematics
Mathematics (14 Chapters)
Class 11 - Physics
Physics Part - I (7 Chapters)|
Physics Part - II (7 Chapters)
Class 11 - Political Science
Indian Constitution at Work (10 Chapters)|
Political Theory (8 Chapters)
Class 11 - Psychology
Introduction to Psychology (8 Chapters)
Class 11 - Sangeet
Tabla evam Pakhawaj (8 Chapters)|
Hindustani Sangeet Gayan Evam Vadan (10 Chapters)
Class 11 - Sociology
Understanding Society (5 Chapters)|
Introducing Sociology (5 Chapters)

Class 12

Class 12 - Accountancy
Accountancy Part - I (4 Chapters)|
Accountancy Part - II (6 Chapters)
Class 12 - Biology
Biology (13 Chapters)
Class 12 - Biotechnology
Biotechnology (13 Chapters)
Class 12 - Business Studies
Business Studies - II (3 Chapters)|
Business Studies - I (8 Chapters)
Class 12 - Chemistry
Chemistry - II (5 Chapters)|
Chemistry - I (5 Chapters)
Class 12 - Computer Science
Computer Science (13 Chapters)
Class 12 - Economics
Introductory Microeconomics (5 Chapters)|
Introductory Macroeconomics (6 Chapters)
Class 12 - English
Flamingo (14 Chapters)|
Vistas (7 Chapters)|
Kaliedoscope (21 Chapters)
Class 12 - Fine Art
An Introduction to Indian Art Part - II (8 Chapters)
Class 12 - Geography
Practical Work in Geography - Part II (4 Chapters)|
Fundamentals of Human Geography (8 Chapters)|
India - People and Economy (9 Chapters)
Class 12 - Hindi
Aroh (15 Chapters)|
Antra (23 Chapters)|
Antral Bhag - II (3 Chapters)|
Vitan (3 Chapters)
Class 12 - History
Themes in Indian History - III (4 Chapters)|
Themes in Indian History - I (4 Chapters)|
Themes in Indian History - II (4 Chapters)
Class 12 - Home Science
Human Ecology and Family Sciences Part I (7 Chapters)|
Human Ecology and Family Sciences Part II (7 Chapters)
Class 12 - Informatics Practices
Informatics Practices (7 Chapters)
Class 12 - Mathematics
Mathematics Part - I (6 Chapters)|
Mathematics Part - II (7 Chapters)
Class 12 - Physics
Physics Part - I (8 Chapters)|
Physics Part - II (6 Chapters)
Class 12 - Political Science
Politics in India Since Independence (8 Chapters)|
Contemporary World Politics (7 Chapters)
Class 12 - Psychology
Psychology (7 Chapters)
Class 12 - Sangeet
Hindustani Sangeet Gayan Evam Vadan (9 Chapters)|
Tabla evam Pakhawaj (7 Chapters)
Class 12 - Sociology
Social Change and Development in India (8 Chapters)|
Indian Society (7 Chapters)

About Edzy - Gamified Learning Platform

Edzy is India's premier gamified AI tutor platform for CBSE and State Board students in classes 6-12. Our platform transforms traditional studying with AI-powered study plans, interactive practice sessions, and personalized learning pathways. Students using Edzy experience unmatched learning efficiency through our immersive educational environment that combines advanced technology with curriculum-aligned content.

Why Choose Edzy for CBSE and State Board Preparation

Edzy offers an adaptive AI educational experience tailored to each student's learning style and pace. We integrate gamification with proven educational strategies to create an engaging environment that students love. Our micro-content approach breaks down complex CBSE and State Board topics into manageable lessons, building confidence through mastery-based progression and real-time feedback.

CBSE and State Board Focus Areas

Edzy specializes in transforming online education for classes 6-12 with AI-powered tutoring. We provide comprehensive NCERT-aligned content and engaging lessons across Mathematics, Science, English, Social Studies, and IT. Our system helps students master fundamental concepts and excel in board exams through AI-generated study plans, personalized learning timelines, and dynamic practice sessions.

Edzy's Unique Approach to Online Learning

Unlike traditional online coaching platforms, Edzy converts CBSE and State Board syllabus content into interactive learning adventures. Our AI tutor provides timely assistance while adapting to student progress. The platform features instant feedback, gamified practice sessions, and achievement badges to motivate continuous learning and concept mastery.

Brand Logo

Edzy | Largest Online Learning Platform for Classes 6–12

Study smarter with Edzy – India’s leading gamified AI tutor for CBSE and State Boards. Designed for Classes 6–12, Edzy offers interactive lessons, AI-powered study plans, and rewarding practice tools for every subject.

Find us on Social Media

Links

About EdzyFAQsContact UsCBSE CoursesDuelsRumblesEdzy App

Parents & Teachers

Search EdzyParent DashboardCreator PlatformEducation BlogCBSE & NCERT News

Policies

Terms and ConditionsRefund PolicyPrivacy PolicyCookie Policy

© 2026 Edzy | Largest Online Learning Platform for Classes 6–12. All rights reserved.

Edzy is an AI tutor for CBSE and State Board students, offering interactive lessons and personalized learning for Classes 6–12.

SitemapNews SitemapBlog SitemapSchool SitemapAccessibility
CBSE
Class 12
Computer Science
Computer Science
Stack

Question Bank

Question Bank: Stack

This chapter discusses stacks, a linear data structure that follows the Last-In-First-Out principle. It covers operations on stacks, their implementation in Python, and their applications.

Question Bank - Stack

View all (108)
Q1.

What does LIFO stand for in the context of a stack?

Single Answer MCQ
Q-00094726
Q2.

Which of the following operations is NOT typically associated with a stack?

Single Answer MCQ
Q-00094727
Q3.

In which scenario would using a stack be most appropriate?

Single Answer MCQ
Q-00094728
Q4.

What would happen if you attempt to pop an element from an empty stack?

Single Answer MCQ
Q-00094729
Q5.

Which statement accurately describes a stack's structure?

Single Answer MCQ
Q-00094730
Q6.

If a stack currently contains elements A, B, and C (with C on top), what will the stack contain after performing one pop operation?

Single Answer MCQ
Q-00094731
Q7.

What is the main advantage of using a stack?

Single Answer MCQ
Q-00094732
Q8.

In Python, which data type can be used to implement a stack?

Single Answer MCQ
Q-00094733
Q9.

What is the result of evaluating the postfix expression '3 4 + 2 *'?

Single Answer MCQ
Q-00094734
Q10.

What would be the output of calling pop on a stack with the elements [1, 2, 3]?

Single Answer MCQ
Q-00094735
Q11.

How do you visualize a stack in real life?

Single Answer MCQ
Q-00094736
Q12.

What distinguishes a stack from a queue?

Single Answer MCQ
Q-00094737
Q13.

In which of the following applications would a stack be least useful?

Single Answer MCQ
Q-00094738
Q14.

Which method would you use to add an element to the top of a stack in Python?

Single Answer MCQ
Q-00094739
Q15.

What is the result of attempting to pop from a stack that is already empty?

Single Answer MCQ
Q-00094740
Q16.

What is the primary operation used to add an element to a stack?

Single Answer MCQ
Q-00094755
Q17.

Which of the following follows the LIFO principle?

Single Answer MCQ
Q-00094756
Q18.

If a stack contains the elements [A, B, C] from bottom to top, what will be the stack after performing one Pop operation?

Single Answer MCQ
Q-00094757
Q19.

Which function is used to check if a stack is empty?

Single Answer MCQ
Q-00094758
Q20.

What will be the top element of the stack after executing the following operations? (Initialize stack, Push A, Push B, Push C)

Single Answer MCQ
Q-00094759
Q21.

Given a stack implementation, what will the stack contain after the following operations: Push(1), Push(2), Pop(), Push(3)?

Single Answer MCQ
Q-00094760
Q22.

Which of the following statements about stacks is false?

Single Answer MCQ
Q-00094761
Q23.

In a postfix expression evaluation algorithm using a stack, what happens when an operator is encountered?

Single Answer MCQ
Q-00094762
Q24.

What will be the result of evaluating the postfix expression '5 6 2 + *'?

Single Answer MCQ
Q-00094763
Q25.

If an attempt is made to Pop an element from an empty stack, what is the expected outcome?

Single Answer MCQ
Q-00094764
Q26.

What is the output of the following code snippet? stack = [] stack.append(1) stack.append(2) print(stack.pop()) stack.append(3) print(stack)

Single Answer MCQ
Q-00094765
Q27.

Which of the following is NOT a characteristic of a stack?

Single Answer MCQ
Q-00094766
Q28.

What will happen if you keep pushing elements onto a stack with a fixed size?

Single Answer MCQ
Q-00094767
Q29.

When implementing a stack using linked lists, which part of the node would represent the top of the stack?

Single Answer MCQ
Q-00094768
Q30.

Which algorithm can be used to convert infix expressions to postfix using a stack?

Single Answer MCQ
Q-00094769
Q31.

What is the primary operation used to add an element to a stack?

Single Answer MCQ
Q-00094770
Q32.

What happens when you perform a POP operation on an empty stack?

Single Answer MCQ
Q-00094771
Q33.

Which of the following statements about stacks is true?

Single Answer MCQ
Q-00094772
Q34.

What is likely to occur if you attempt to PUSH an element onto a full stack?

Single Answer MCQ
Q-00094773
Q35.

In the context of stacks, what does LIFO stand for?

Single Answer MCQ
Q-00094774
Q36.

How would you check if a stack is empty in Python?

Single Answer MCQ
Q-00094775
Q37.

Assuming a stack contains the elements: 10, 20, 30. What will be the result after performing one POP operation?

Single Answer MCQ
Q-00094776
Q38.

Which command would you use to add an element to a stack stored in a list in Python?

Single Answer MCQ
Q-00094777
Q39.

What would be the state of a stack after performing a series of operations: PUSH(1), PUSH(2), POP(), PUSH(3)?

Single Answer MCQ
Q-00094778
Q40.

What structure is primarily used to check for balanced parentheses in expressions?

Single Answer MCQ
Q-00094779
Q41.

In the implementation of a stack using a list, which method is used to remove the top element?

Single Answer MCQ
Q-00094780
Q42.

What is a correct way to define a stack in Python using a list?

Single Answer MCQ
Q-00094781
Q43.

Identify the maximum depth of recursion that can be achieved with a stack structure.

Single Answer MCQ
Q-00094782
Q44.

When would you encounter a stack overflow while using stacks?

Single Answer MCQ
Q-00094783
Q45.

If a stack is implemented using a linked list, where are elements added?

Single Answer MCQ
Q-00094784
Q46.

Which of the following expressions would lead to underflow in a stack?

Single Answer MCQ
Q-00094785
Q47.

What is the result of performing two consecutive POP operations on the stack containing elements 40, 50, 60?

Single Answer MCQ
Q-00094786
Q48.

If a programming language uses a separate stack for function calls, what issue can arise if the stack size is exceeded?

Single Answer MCQ
Q-00094787
Q49.

What is infix notation?

Single Answer MCQ
Q-00094788
Q50.

In postfix notation, how would the expression 2 + 3 be represented?

Single Answer MCQ
Q-00094789
Q51.

Which of the following expressions uses prefix notation?

Single Answer MCQ
Q-00094790
Q52.

What is the primary advantage of using postfix notation?

Single Answer MCQ
Q-00094791
Q53.

Which of the following is a characteristic of prefix notation?

Single Answer MCQ
Q-00094792
Q54.

How would the infix expression (A + B) * C be written in postfix notation?

Single Answer MCQ
Q-00094793
Q55.

What would be the postfix notation for the expression (x + y) * (z - w)?

Single Answer MCQ
Q-00094794
Q56.

If the expression A - B + C is processed, which of the following represents its correct postfix form?

Single Answer MCQ
Q-00094795
Q57.

Which notation removes the need for parentheses altogether?

Single Answer MCQ
Q-00094796
Q58.

What is a key feature of operator precedence in infix notation?

Single Answer MCQ
Q-00094797
Q59.

When converting infix to postfix, which data structure is primarily used?

Single Answer MCQ
Q-00094798
Q60.

What will be the postfix notation for the infix expression A + (B * C)?

Single Answer MCQ
Q-00094799
Q61.

Given the infix expression A * (B + C) - D, what is its postfix equivalent?

Single Answer MCQ
Q-00094800
Q62.

In context of arithmetic expressions, which of the following statements is true about operator precedence?

Single Answer MCQ
Q-00094801
Q63.

Which is true regarding the evaluation of postfix expressions?

Single Answer MCQ
Q-00094802
Q64.

Which principle does a stack operate on?

Single Answer MCQ
Q-00094803
Q65.

Which method is used to add an element to a stack in Python using lists?

Single Answer MCQ
Q-00094804
Q66.

What will happen if you try to pop an element from an empty stack?

Single Answer MCQ
Q-00094805
Q67.

How can you check if a stack implemented using a list is empty in Python?

Single Answer MCQ
Q-00094806
Q68.

Which of the following is NOT a valid function to implement in a stack?

Single Answer MCQ
Q-00094807
Q69.

Which code snippet correctly defines the size function for a stack in Python?

Single Answer MCQ
Q-00094808
Q70.

What is the output of top() when called on an empty stack?

Single Answer MCQ
Q-00094809
Q71.

If the stack contains the elements [1, 2, 3], what will be the result of opPop()?

Single Answer MCQ
Q-00094810
Q72.

Given these stack operations, opPush(5), opPush(10), opPop(), opPush(20), what is the stack's top element after these operations?

Single Answer MCQ
Q-00094811
Q73.

What programming structure allows the implementation of a stack using Python's list?

Single Answer MCQ
Q-00094812
Q74.

Which of the following statements is true about stack implementation?

Single Answer MCQ
Q-00094813
Q75.

What does the opPop function do in the context of a stack?

Single Answer MCQ
Q-00094814
Q76.

If a stack has 3 elements, what would the size function return?

Single Answer MCQ
Q-00094815
Q77.

If a programmer needs to implement a stack but wants to ensure no more than one item is in the stack at a time, which approach would they take?

Single Answer MCQ
Q-00094816
Q78.

How can a stack be utilized in function call management?

Single Answer MCQ
Q-00094817
Q79.

What is the primary purpose of converting an infix expression to postfix notation?

Single Answer MCQ
Q-00094818
Q80.

In the algorithm for infix to postfix conversion, what data structure is primarily used to keep track of operators?

Single Answer MCQ
Q-00094819
Q81.

Which of the following correctly represents the infix expression 'A + B * C' in postfix notation?

Single Answer MCQ
Q-00094820
Q82.

During infix to postfix conversion, when should an operator be popped from the stack to the output?

Single Answer MCQ
Q-00094821
Q83.

Which operator has the highest precedence in the context of infix expressions?

Single Answer MCQ
Q-00094822
Q84.

What will be the postfix notation for the infix expression '(A + B) * C'?

Single Answer MCQ
Q-00094823
Q85.

In converting infix to postfix, how do you handle parentheses?

Single Answer MCQ
Q-00094824
Q86.

What is the postfix equivalent of the expression 'A * (B + C) - D'?

Single Answer MCQ
Q-00094825
Q87.

Which of the following expressions is not correctly converted to postfix?

Single Answer MCQ
Q-00094826
Q88.

Which condition requires the operator to stay on the stack without being popped?

Single Answer MCQ
Q-00094827
Q89.

What is an advantage of postfix notation over infix notation?

Single Answer MCQ
Q-00094828
Q90.

Which method can be used to verify the correctness of the postfix expression after conversion?

Single Answer MCQ
Q-00094829
Q91.

If an infix expression is 'X + Y * Z - A / B', what will be the first operator to be popped in the conversion to postfix?

Single Answer MCQ
Q-00094830
Q92.

In the expression 'A + B - C + D', what will be the postfix notation?

Single Answer MCQ
Q-00094831
Q93.

The expression '(A * (B + C) - D) / E' converts to postfix as which of the following?

Single Answer MCQ
Q-00094832
Q94.

What does a Stack data structure follow?

Single Answer MCQ
Q-00094833
Q95.

In evaluating the postfix expression '5 1 2 + 4 * + 3 -', what is the first operation after processing '1 2'?

Single Answer MCQ
Q-00094834
Q96.

Which data structure is used to evaluate postfix expressions?

Single Answer MCQ
Q-00094835
Q97.

What is the result of evaluating '2 3 4 * +' using a stack?

Single Answer MCQ
Q-00094836
Q98.

If a stack has elements '10 20 30', what will be the result after evaluating '10 20 + 30 -'?

Single Answer MCQ
Q-00094837
Q99.

In postfix evaluation, what happens if two operands are followed by an operator?

Single Answer MCQ
Q-00094838
Q100.

If evaluating a postfix expression leads to a stack that has more than one element left, what does that indicate?

Single Answer MCQ
Q-00094839
Q101.

How would you identify an operand in a postfix expression?

Single Answer MCQ
Q-00094840
Q102.

What is the postfix representation of the infix expression '(A + B) * C'?

Single Answer MCQ
Q-00094841
Q103.

After pushing '5' onto an empty stack and then pushing '3', what will be the top of the stack?

Single Answer MCQ
Q-00094842
Q104.

If you encounter an operator with no operands available in the stack during evaluation, what should you do?

Single Answer MCQ
Q-00094843
Q105.

What will the final value of a postfix evaluation be if you evaluate '4 5 6 * +'?

Single Answer MCQ
Q-00094844
Q106.

What will happen if you attempt to pop from an empty stack during postfix evaluation?

Single Answer MCQ
Q-00094845
Q107.

In a valid postfix expression, how many operands must an operator encounter?

Single Answer MCQ
Q-00094846
Q108.

If the postfix expression '8 3 4 2 * 1 - +' is evaluated, what is the final result?

Single Answer MCQ
Q-00094847

🔔 Smart Study Reminders

Edzy knows what to study next. Stay on track with timely nudges & updates.

Edzy mobile app