Professional Documents
Culture Documents
6. Whenever, we want to insert a new value into the queue, increment '___________'
value by one and then insert at that position. Whenever we want to delete a value
from the queue, then increment ________________ value by one.
1. LINKEDLIST
2. LINEAR
3. FRONT
4. STACK
5. PEEK
6. ARRAY
7. DEQUEUE
8. QUEUE
9. ENQUEUE
10. REAR
2. Queue using linked list can work for _____________________ size of data.
3. In linked list implementation of a queue, the last inserted node is always pointed by
________________ and the first node is always pointed by ______________________.
a? b? c? d? e?
Front Rear
5. Dequeue(), dequeue(), enqueue(10), enqueue(15). Show the output.
a? b? c? d? e?
Front Rear
6. Fill up the blanks
void queue::insert()
{ if(frnt==NULL)
int value; ___________________________;
struct node *ptr; else
cout<<"\nInsertion\n"; rear->next=_____________;
cout<<"Enter a number to insert:"; ________________;
cin>>value; cout<<"\nNew item is inserted to the
ptr=new node; Queue!!!";
___________________=value; }
ptr->next=____________;
7. void queue::del()
if(__________________) temp=frnt;
{ frnt=______________;
} }
Across
3. To remove an element into the
queue
5. Deletion
7. Returns first value without
dequeue
8. Rear==size-1
Down
1. To insert an element into the
queue
2. Insertion
4. Front = Rear =-1
5. Principle of Queue
6. RearNext
Circular Queue
else
{
q = front;
while (q->link != NULL && q->link->priority <= priority)
q=q->link;
tmp->link =_____________;
q->link = tmp;
}
}
___________________________________.
___________________________________.
Delete
Front Rear
Insert Insert
Delete
Front Rear
Across Down
5. Queue that removes element based on the 1. In input restricted double ended queue, the
certain values is called __________ queue ________ operation is performed at only one
end
6. Double ended Queue is also called as
___________ 2. (front == -1 && rear == -1) Queue is ____
7. In output restricted double ended queue, 3. remove minimum element first from queue
the __________ operation is performed at
only one end 4. rear == SIZE-1 && front == 0) || (front ==
rear+1)) Queue is ____
8. Elements are inserted in the order in which
they arrive the queue and always higher
value is removed first from the queue