MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Suppose you have the following series of queue operations.q = Queue();q.enqueue(’hello’);q.enqueue(’dog’);q.enqueue(3);q.dequeue();What items are left on the queue?
A
‘hello’, ‘dog’
B
‘dog’, 3
C
‘hello’, 3
D
‘hello’, ‘dog’, 3
Explanation: 
There is 1 question to complete.