Computer Science, asked by sirichelikani24, 9 months ago

Consider the below code:
my_queuel = Queue (3)
my_queue2 = Queue (3)
for value in range(0,3):
my_queuel.enqueue(value*3)
for value in range(0,3):
if(value==2):
break
my_queue2. enqueue (my_queue1. dequeue())
my_queue2. enqueue (12)
Assumption: Queue class, with the necessary methods, is avai
What is the status of my_queue 1 and my_queue2 after the execution of above code?
In the options, consider the elements of the queue from Front to Rear
MS
my_queue 1: 6, my_queue2: 0,3
my_queue 1: 6, my_queue2: 0,3, 12
my_queue 1: Queue is empty, my_queue 2:0, 3, 12
FI
my_queue 1:0, 3, 6, my_queue2: 0, 3, 12​

Answers

Answered by dehuryomm
0

Answer:

I don't know the answer but I will help you next time

Similar questions