UGC NET Paper 2 (Computer Science)Easy

Which data structure follows the LIFO principle?

  1. A. Stack
  2. B. Queue
  3. C. Linked list
  4. D. Tree

Correct answer: A. Stack

A stack removes the most recently inserted element first (last in, first out).

More UGC NET Computer Science and Applications questions

Exams that ask this topic