Data Structures :: Queue - Discussion
Home > Data Structures > Queue > MCQs Questions Discussion
11 / 42
Choose the correct option.
6, 8, 4, 3, and 1 are inserted into a data structure in that order. An item is deleted using only a basic data structure operation. If the deleted item is a 1, the data structure cannot be a ?
AQueue
BTree
CStack
DHash Table
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
TRICK
option C is correct. 1 is added at the last and deleted the first.following the concept of lifo stack is the answer
Read Full Answer
Report Error
Please Login First Click Here
REPLY
Actually, in question, it has been asked can not be. LIFO is the stack , so the stack is possible, However, the queue is not possible because queue follows FIFO.
As here 1 is added in last and deleted first so Stack is possible, but queue can not be. So option A is correct.
Report Error