Theatre and friends

Report a typo

Three friends arrived at a theater and approached the ticket control. Since no one else was present there, the line was empty. The theater allowed only one person to enter at a time. Confident Bob boldly positioned himself right in front of the entrance doors, followed by Alex, while Peter, being shy, took his place at the end of the line. Considering this real-life queue as a queue data structure, which friend will be the first to enter the theater, and which kind of queue operation does this situation correspond to? Choose from the following options:

Select one option from the list
___

Create a free account to access the full topic