Queue using Linked List | Data Structure MCQs

1.

In linked list implementation of queue, if only front pointer is maintained, which of the following operation take worst case linear time?

   A.) Insertion
   B.) Deletion
   C.) To empty a queue
   D.) Both a and c

Answer: Option 'D'

Since front pointer is used for deletion, so worst time for the other two cases.

2.

In linked list implementation of a queue, front and rear pointers are tracked. Which of these pointers will change during an insertion into a NONEMPTY queue?

   A.) Only front pointer
   B.) Only rear pointer
   C.) Both front and rear pointer
   D.) None of these

Answer: Option 'B'

Since queue follows FIFO so new element inserted at last.

3.

In case of insertion into a linked queue, a node borrowed from the __________ list is inserted in the queue.

   A.) AVAIL
   B.) FRONT
   C.) REAR
   D.) None of these

Answer: Option 'A'

AVAIL
All the nodes are collected in AVAIL list.

4.

In linked list implementation of a queue, the important condition for a queue to be empty is?

   A.) FRONT is null
   B.) REAR is null
   C.) LINK is empty
   D.) None of these

Answer: Option 'A'

Because front represents the deleted nodes.

5.

The essential condition which is checked before deletion in a linked queue is?

   A.) Rear value
   B.) Underflow
   C.) Overflow
   D.) Front value

Answer: Option 'B'

To check whether there is element in the list or not.

6.

Which of the following is true about linked list implementation of queue?

   A.) In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end
   B.) In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning
   C.) Both a and b
   D.) None of these

Answer: Option 'C'

It can be done by both the methods.

7.

The essential condition which is checked before insertion in a linked queue is?

   A.) Underflow
   B.) Overflow
   C.) Front value
   D.) Rear value

Answer: Option 'B'

To check whether there is space in the queue or not.

8.

In linked list implementation of a queue, from where is the item deleted?

   A.) At the head of link list
   B.) At the centre position in the link list
   C.) At the tail of the link list
   D.) None of these

Answer: Option 'A'

At the head of link list
Since queue follows FIFO so new element deleted from first.

9.

In linked list implementation of a queue, front and rear pointers are tracked. Which of these pointers will change during an insertion into EMPTY queue?

   A.) Only front pointer
   B.) Only rear pointer
   C.) Both front and rear pointer
   D.) None of these

Answer: Option 'C'

Since its the starting of queue, so both values are changed.

10.

In linked list implementation of a queue, where does a new element be inserted?

   A.) At the head of link list
   B.) At the centre position in the link list
   C.) At the tail of the link list
   D.) None of these

Answer: Option 'C'

Since queue follows FIFO so new element inserted at last.

Queue using Linked List | Data Structure MCQs Download Pdf