Consider the following algorithm to implement the queue front operation:Algorithm queueFront (queue, dataOut)1 if (queue empty)   1.1 return false2 end if3 move data at front of queue to dataOut4 return trueend queueFrontWhich line needs to be changed if we want to modify it to implement the queue rear operation?

A. 1
B. 1.1
C. 2
D. 3


Answer: D

Computer Science & Information Technology

You might also like to view...

Which of the following is false?

a. JFrame is a lightweight component. b. JFrame is a subclass of Frame (which is a subclass of Window). c. JFrames have a title bar and a border. d. A JFrame window will look like all other windows displayed on that platform.

Computer Science & Information Technology

To rename a table, you can:

A) click Save As from the File menu. B) click the Database Tools tab on the Ribbon. C) right-click the table name in the Navigation Pane. D) open Windows Explorer.

Computer Science & Information Technology

You cannot change the size of the player that displays when the embed element is added to a page

Indicate whether the statement is true or false

Computer Science & Information Technology

When you export data from Access to Excel, the fields in Access become what in Excel?

A. Rows B. Columns C. Titles D. Sheets

Computer Science & Information Technology