Quizzma Latest Questions

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




Leave an answer

Leave an answer

What is the capital of Egypt? ( Cairo )

1 Answer

  1. 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!

Related Questions