1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. Which data structure follows the LIFO principle?

Added 20 Jan 2024

Which data structure follows the LIFO principle?

  1. Queue
  2. Stack Correct answer
  3. Linked List
  4. Tree

Correct answer

B. Stack

16 views

MCQSEXAM

Explanation

Stack follows Last-In-First-Out (LIFO) principle where the last element added is the first to be removed.

Reference

Asked in: Computer Science, Data Structures

https://www.geeksforgeeks.org/stack-data-structure/

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs