Eesha is developing a word processing software in which she wants to provide…
2024
Eesha is developing a word processing software in which she wants to provide undo feature.the software will maintain all the sequential changes and at any point of time pressing control z will undo the latest change,what data structure should Eesha use for this?
- A.
Linked list
- B.
Array
- C.
Queue
- D.
Stack
Attempted by 401 students.
Show answer & explanation
Correct answer: D
A Stack is a data structure which is used to store data in a particular order. Two operations that can be performed on a Stack are: Push operation which inserts an element into the stack. Pop operation which removes the last element that was added into the stack.