Question DSA-QUE-0001
EasyWhich principle does a queue follow?
- A.
LIFO (last in, first out)
- B.
Priority only
- C.
Show answer and explanation
Answer: D
Like a line at a ticket counter, the first to arrive is served first.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Queues and Deques question
Which principle does a queue follow?
LIFO (last in, first out)
Priority only
Answer: D
Like a line at a ticket counter, the first to arrive is served first.
Random order
FIFO (first in, first out)