Solveeit Logo

Question

Computer Science Question on Introduction to stack (LIFO Operations)

Which one of the fallowing statement is wrong for Queue and stack data structures ?

A

Queue is an ordered linear data structure, following FIFO strategy

B

Insertion in a queue happens at the rear end, deletion happens at the front

C

Deque is a version of queue, which allows insertion and deletion at both ends

D

A deque supports only queue operations it does not support stack operations

Answer

A deque supports only queue operations it does not support stack operations

Explanation

Solution

The correct option is (D) :A deque supports only queue operations it does not support stack operations