COMPUTER SCIENCE AND ENGINEERING
DATA STRUCTURES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
If the numbers 5, 10, 3, 42 are enqueued onto a queue in that order, what does dequeue return?
|
5
|
|
10
|
|
3
|
|
42
|
Explanation:
Detailed explanation-1: -Queue follows the LIFO (Last in first out) and FIFO (First in first out). Here the data that is dequeued is 42.
There is 1 question to complete.