Question:

Stack works on the principle of ________.

Updated On: Mar 29, 2025
  • Mid Element First
  • First In First Out
  • Last In First Out
  • Last In Last Out
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is C

Solution and Explanation

(1) Mid Element First: This is incorrect. Stacks do not operate on the principle of processing the middle element first.

(2) First In First Out: This describes a queue, not a stack. A queue processes elements in the order they were added.

(3) Last In First Out: This is the correct principle for a stack. The last element added (pushed) onto the stack is the first element removed (popped).

(4) Last In Last Out: This doesn't represent a standard data structure principle.

Therefore, a stack works on the principle of (3) Last In First Out.

Was this answer helpful?
0
0