Question Details

Detailed explanation and options for the selected question.

Which data structure follows the Last In, First Out (LIFO) principle?

A. Stack
B. Queue
C. Array
D. Linked List

Explanation:

A stack operates on the LIFO principle. Queues follow FIFO, while arrays and linked lists do not enforce specific access order.