Complete the code to add an item to the end of the queue.
Queue<int> numbers = new Queue<int>(); numbers.[1](5);
The Enqueue method adds an item to the end of the queue, following the FIFO order.
Complete the code to remove and return the item at the front of the queue.
Queue<string> tasks = new Queue<string>(); tasks.Enqueue("Task1"); string firstTask = tasks.[1]();
The Dequeue method removes and returns the item at the front of the queue, following FIFO.
Fix the error in the code to check the item at the front without removing it.
Queue<char> letters = new Queue<char>(); letters.Enqueue('A'); char front = letters.[1]();
The Peek method returns the item at the front without removing it, which is what we want here.
Fill both blanks to create a queue and add two items.
var [1] = new Queue<string>(); [1].[2]("First"); [1].Enqueue("Second");
We name the queue myQueue and use Enqueue to add items to it.
Fill all three blanks to create a queue, add an item, and remove it.
Queue<int> [1] = new Queue<int>(); [1].[2](10); int removed = [1].[3]();
We create a queue named numbers, add an item with Enqueue, and remove it with Dequeue.
