COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
____ is very useful in situation when data have to stored and then retrieved in reverse order.
|
Stack
|
|
Queue
|
|
List
|
|
Link list
|
Explanation:
Detailed explanation-1: -Detailed Solution The stack is used in situations where data have to be stored and then retrieved in reverse order.
Detailed explanation-2: -Use a stack when you want to get things out in the reverse order than you put them in.
Detailed explanation-3: -Queue is a linear data structure in which elements can be inserted only from one side of the list called rear, and the elements can be deleted only from the other side called the front.
Detailed explanation-4: -Stack is sometimes called a push down list. Stack is a special kind of list in which all insertions and deletions occur at one end, called the top. Push-down list is a list in which the next item to be removed is the item most recently stored (LIFO).
There is 1 question to complete.