Question
Q.Q. 17 and 18 are Assertion (A) and Reasoning (R) based questions. Mark the correct choice as
(a) Both (A) and (R) are true and (R) is the correct explanation for (A).
(b) Both (A) and (R) are true and (R) is not the correct explanation for (A).
(c) (A) is true but (R) is false.
(d) (A) is false but (R) is true. Assertion (A) : In Python, a stack can be implemented using a list. Reasoning (R) : A stack is an ordered linear list of elements that works on the principle of First In First Out (FIFO).
CBSECBSE Class XII Board 2023MCQ· 1mImportance★★★★★
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →The assertion is true, but the reasoning is false because a stack follows LIFO, not FIFO.
Let’s take this step by step. The Assertion says that in Python, a stack can be implemented using a list. That is perfectly correct. Python’s built-in list type provides methods like append() to add an element at the end and pop() to remove the last element — exactly the operations needed for a stack. Many textbooks and real-world Python code use lists as stacks, so this part is true. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.