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?

Answer: D. StackA 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…

  1. A.

    Linked list

  2. B.

    Array

  3. C.

    Queue

  4. D.

    Stack

Attempted by 640 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.

Explore the full course: Coding For Placement

Loading lesson…