Which of the following operation(s) is/are the basic operation(s) of a queue?…

2017

Which of the following operation(s) is/are the basic operation(s) of a queue?
(i) Enqueue
(ii) Dequeue

Answer: C. Both (i) and (ii)The correct option is C: Both (i) and (ii). A queue is a FIFO (First-In, First-Out) data structure. Enqueue is the basic operation used to insert an element…

  1. A.

    Only (i)

  2. B.

    Neither (i) nor (ii)

  3. C.

    Both (i) and (ii)

  4. D.

    Only (ii)

Attempted by 717 students.

Show answer & explanation

Correct answer: C

The correct option is C: Both (i) and (ii). A queue is a FIFO (First-In, First-Out) data structure. Enqueue is the basic operation used to insert an element at the rear (end), while Dequeue is the basic operation used to remove an element from the front.

Explore the full course: Btsc Lab Assistant

Loading lesson…