stack is a _______ data structure that follows the _______ principle.

  • Linear, First In First Out (FIFO)
  • Linear, Last In First Out (LIFO)
  • Non-linear, First In First Out (FIFO)
  • Non-linear, Last In First Out (LIFO)
A stack is a linear data structure that follows the Last In First Out (LIFO) principle. This means that the last element added is the first one to be removed. Stacks are commonly used in various computing scenarios for efficient data management.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *