Class - 12 CBSE Computer Science — Assertion Reason Type Questions
Assertion (A): An element in a Stack is removed from its Top.
Reasoning (R): The process of removing an element from a Stack is called pop.
- 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
3 Likes
Answer
Both A and R are true and R is the correct explanation of A.
Explanation
An element in a stack is removed from its top. The stack follows the Last-In-First-Out (LIFO) approach, where the last element added (the top element) is the first one to be removed. The process of removing an element from a stack is called pop.
Answered By
1 Like