Question: A queue is a First - In - First - Out ( FIFO ) data structure that supports the following operations: Enqueue, Dequeue, Peek, and

A queue is a First-In-First-Out (FIFO) data structure that supports the following operations: Enqueue, Dequeue, Peek, and IsEmpty. Which of the following statements is TRUE about the Peek operation in a queue?
The Peek operation adds a new element to the rear of the queue.
The Peek operation removes the front element from the queue.
The Peek operation checks if the queue is empty, but does not return any element.
The Peek operation returns the front element of the queue without removing it.
 A queue is a First-In-First-Out (FIFO) data structure that supports the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!