Question: The method deleteQueue does which of the following? a. uses one queue to delete another b. removes the back element from the queue c. removes
The method deleteQueue does which of the following? a. uses one queue to delete another b. removes the back element from the queue c. removes the front element from the queue d. removes all elements from the queue leaving an empty queue Whenever an application is modeled on a FIFO structure, ____ are used. a. lists b. queues c. stacks d. arrays A queue can only be stored as a linked list. a. true b. false A queue is a last in first out data structure. a. true b. false Refer to the figure below. Which of the following members in the UML diagram adds an element to the front of the queue?
| QueueClass |
| -maxQueueSize: int -count: int -queueFront: int -queueRear: int -list: DataElement[] |
| +Queueclass() +QueueClass(int) +QueueClass(Queueclass) +inializeQueue(): void +isemptyQueue(): boolean +isFullQueue(): boolean +front() throws QueueUnderfolwException: DataElement +back() throws QueueUnderfolwException: DataElement +addQueue(DateElement) throws QueueOverflowException: void +deleteQueue() throws QueueUnderflowException: void +copyQueue(QueueClass): void |
a. front b. addQueue c. back d. Elements aren't added to the front of queues
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
