CBSE Class 12 Computer Science
Question 56 of 63
Data Structures in Python — Question 4
Back to all questionsFalse
Reason — A stack behaves based on the Last-In-First-Out (LIFO) principle, meaning that the last element added to the stack is the first one to be removed, while a queue operates according to the First-In-First-Out (FIFO) principle, allowing insertions only at the rear end and deletions only at the front end.