______ is First in Last Out kind of data structure.

2020

______ is First in Last Out kind of data structure.

  1. A.

    Stack

  2. B.

    Queue

  3. C.

    Array

  4. D.

    Deque

Attempted by 628 students.

Show answer & explanation

Correct answer: A

A Stack follows the LIFO (Last In First Out) or FILO (First In Last Out) principle. The element inserted first is placed at the bottom, so it can only be removed after all subsequent elements above it are popped out. Thus, Option A is correct.

Explore the full course: Niacl Ao It Specialist