A) Diksha, Reena, Teena, Khushi, Pihu
B) Reena, Bhawna, Teena, Khushi, Pihu
C) Diksha, Bhawna, Teena, Khushi, Pihu
D) None of the above
Correct Answer: A
Solution :
[a] Diksha, Reena, Teena, Khushi, Pihu |
We are given the value of rear as 4 so the elements "Khushi" and "Pihu" will be inserted at position 4 and 5. Now the value of front is given as 2 and element is being deleted from the front so "Bhawna" is removed from the queue. |
You need to login to perform this action.
You will be redirected in
3 sec