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.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.

Python Stack

2 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