MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is the correct operation for:"Add a item to the front of the queue.”
A
enQueue(item)
B
Append.Queue(item)
C
enQueue()
D
AddItem(EnQueue())
E
Cant be performed on a Queue.
Explanation: 

Detailed explanation-1: -Basic Operations enqueue() − add (store) an item to the queue.

Detailed explanation-2: -The “front” end pointer is the place from where the elements are removed from the queue. The operation to remove/delete elements from the queue is called “dequeue”.

Detailed explanation-3: -Queue uses FIFO principle. Explanation: Element first added in queue will be deleted first which is FIFO principle.

There is 1 question to complete.