A stack follows the principle of ___________ (FIFO/LIFO) order.
- FIFO
- LIFO
- Stack
- Queue
The correct option is 'LIFO.' A stack follows the Last-In-First-Out (LIFO) order, meaning the last element added to the stack is the first one to be removed, resembling a stack of plates.
Loading...
Related Quiz
- In an e-commerce application, you're tasked with optimizing database queries to display product recommendations based on user preferences. How would you approach this problem using RDBMS concepts?
- What are the differences between UDP and TCP protocols in terms of reliability and speed?
- The process of converting plaintext into ciphertext using a secret key is known as ___________.
- How does containerization differ from traditional virtualization in terms of resource utilization?
- The Bellman-Ford algorithm is an example of a dynamic programming algorithm used to solve the ___________ problem.