Which data structure follows the Last In, First Out (LIFO) principle?
- Linked List
- Queue
- Stack
- Tree
A stack follows the Last In, First Out (LIFO) principle. In a stack, the last element added is the first one to be removed. It is commonly used for managing function calls, expression evaluation, and undo mechanisms.
Loading...
Related Quiz
- How can you simulate different device resolutions in Browser Developer Tools?
- In backup strategies, what does "granular recovery" entail?
- What does the title attribute do in HTML?
- _______ allows developers to automate repetitive tasks such as code formatting, testing, and deployment, improving productivity and consistency across projects.
- _______ testing involves checking the code for potential security vulnerabilities.