MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
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 the mentioned
Explanation: 

Detailed explanation-1: -If front and rear both points to NULL, it signifies that the queue is empty. The two main operations performed on the linked queue are: Insertion. Deletion.

Detailed explanation-2: -If front and rear both are NULL, it indicates that the queue is empty.

Detailed explanation-3: -Explanation: Since queue follows FIFO so new element deleted from first. 7. In linked list implementation of a queue, the important condition for a queue to be empty is? Explanation: Because front represents the deleted nodes.

Detailed explanation-4: -The Queue implemented using linked list can organize as many data values as we want. In linked list implementation of a queue, the last inserted node is always pointed by ‘rear’ and the first node is always pointed by ‘front’.

There is 1 question to complete.