CBSE Class 12 Computer Science Question 56 of 63

Data Structures in Python — Question 4

Back to all questions
4
Question

Question 4

A queue behaves on the basis of LIFO principle.

Answer

False

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.