Electrical Engineering XYZ MCQs
Stack is also known as:
- LIFO memory
- FIFO memory
- LILO memory
- Flash memory
Correct answer: 1. LIFO memory
Explanation:
- LIFO stands for Last In, First Out, which means that the last element added to the stack is the first one to be removed.
- A stack is a data structure that follows the LIFO principle. It is a collection of elements with two main principal operations: push (to add an element to the top) and pop (to remove the element from the top).
- FIFO stands for First In, First Out, which is associated with queues, not stacks. Queues remove the first element added before others.
- LILO stands for Last In, Last Out, but it is not commonly used in the context of memory or data structures.
- Flash memory is a type of non-volatile storage technology that does not relate to the concept of a stack. Flash memory is used in various electronic devices for data storage.
In conclusion, a stack is also known as LIFO memory due to its characteristic of Last In, First Out.