Skip to main contentSkip to solution

Match List-I with List-II in consideration of operations on Deque

List-I DEQUE FUNCTIONList-II APPLICATION
(A) ENQUEUE(I) To insert a new element at the end of the queue.
(B) DEQUEUE(II) To add a new element at the beginning of the deque.
(C) INSERTFRONT(III) To remove one element at a time from the end of the deque.
(D) DELETIONREAR(IV) To remove one element at a time from the front of the queue.

Solution

✅ Correct Option: 3
List IList II
(A) ENQUEUE(I) To insert a new element at the end of the queue.
(B) DEQUEUE(IV) To remove one element at a time from the front of the queue.
(C) INSERTFRONT(II) To add a new element at the beginning of the deque.
(D) DELETIONREAR(III) To remove one element at a time from the end of the deque.

ENQUEUE and DEQUEUE are the standard queue operations: insert at the rear and remove from the front. The deque-specific operations are named by the end they act on: INSERTFRONT adds at the front and DELETIONREAR removes from the rear.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question