© examsnet.com
Question : 9 of 12
Marks: +1, -0
Q. 17 and 18 are Assertion (A) and Reasoning (R) based questions. Mark the correct choice as given in the options.
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).
[CBSE 2023 Compartment]
Solution:  
Concept:
In an Assertion-Reason question, first check each statement on its own, then ask whether the Reason really explains why the Assertion is true.
Explanation:
Assertion: True. In Python a list is used as a stack: append() pushes an element on the top and pop() removes it from the top.
Reason: False. A stack works on the principle of Last In First Out (LIFO). First In First Out (FIFO) is the principle of a queue.
So (A) is true but (R) is false.
Answer:
Option C ((A) is true but (R) is false.)
© examsnet.com
Advertisements
Go to Question: