A stack follows which principle?
ALast in first out
BLeast in first out
CLarge in first out
DLevel in first out
Answer & Solution
Correct answer: A. Last in first out
1. Elements enter and leave a stack at the same end.
2. That forces a particular order of removal.
3. A stack follows the Last-In-First-out principle.
4. So the answer is last in first out.
_Source: syllabus Computer Science, Ch 3 'Stack' and Ch 4 'Queue'_
Keep practising Stacks and Queues
Browse all Stacks and Queues questions for IGNOU MCA, or explore more Computer Science topics.