engineering computer science MCQ #1213

What data structure follows LIFO?

engineering computer science MCQ #1213

  1. Question 1

    Q1. What data structure follows LIFO?

    • A) Queue
    • B) Stack
    • C) Tree
    • D) Graph

    Answer: Stack

    Explanation: LIFO (Last In, First Out) is a principle where the last item added is the first to be removed, characteristic of a stack data structure.