Class - 12 CBSE Computer Science — Assertion Reason Type Questions
Assertion (A): A Stack is a linear data structure that stores the elements in First In, First Out order.
Reasoning (R): In Stack, a new element is added and removed from one end only.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Python Stack
2 Likes
Answer
A is false but R is true.
Explanation
A stack is a linear data structure that stores elements in LIFO (Last In, First Out) order, where the last element added to the stack is the first one to be removed. In a stack, a new element is added and removed from only one end, which is the top of the stack.
Answered By
2 Likes