Question & Answer

Which principle does a stack follow?

Which principle does a stack follow? a) First In Last Out (FILO)

b) Last In First Out (LIFO)

c) First In First Out (FIFO)

d) None of the above

1 Answer

Verified archive
Quizzma TeamSeptember 9, 2025

The correct answer is:

b) Last In First Out (LIFO)

Explanation: A stack is a data structure that follows the Last In First Out (LIFO) principle, meaning that the last element added to the stack is the first one to be removed. This is similar to a stack of plates; you can only take the top plate off the stack first. If you have more questions or need further clarification, feel free to ask!