Skip to main contentSkip to solution

Which of the following operations is NOT supported by Deque?

Solution

✅ Correct Option: 3

A deque (double-ended queue) allows insertion and deletion only at its two ends, the front and the rear. So it supports INSERTFRONT, INSERTREAR, DELETEFRONT and DELETEREAR, but not insertion at an arbitrary position such as the middle.

INSERTMIDDLE is not a standard deque operation, which makes it the correct choice.


Options 1, 2 and 4: these are end operations, which are exactly what a deque is designed for.

A deque combines a stack and a queue, since it allows both LIFO and FIFO behaviour by working at both ends.

Keyboard Shortcuts

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