What is the action performed by the peek operation?

What will be an ideal response?


The peek operation retrieves the front of a queue, but does not change the queue. That is, it retrieves the item that was added earliest. It throws a QueueException if the retrieval is not successful.

Computer Science & Information Technology

You might also like to view...

Any device that works at multiple layers of the OSI seven layer model, providing more than a single service, is called a a(n) ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Print Preview is used to see how a document will look when it is ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

EXX Case 3-1Coach Wright is the coach of the varsity football team. In preparation for his next team meeeting, he wants to create some charts tracking the players weight, time spent in practice, and game performance. Coach Wright wants to segment his PivotTable data in multiple layers. He will click the _____ button in the Sort & Filter group on the PivotTable Tools Options tab.

A. What-If Analysis B. PivotTable C. New Source D. Insert Slicer

Computer Science & Information Technology

A complete binary tree with N nodes may be stored in an array A of length N by storing the root at A[0], and then storing in successive array locations the nodes of the tree in increasing order of the level of nodes. If nodes in the same level are stored in left to right order, then the node stored at A[k] will be a leaf if and only if

A) 2k+1 ? N B) 2k+1 > N C) k/2 > N D) None of the above

Computer Science & Information Technology