What is wrong with the following enqueue algorithm?Algorithm enqueue (queue, dataIn)   allocate (new node)   move dataIn to new node data   set new node next to null pointer   if (empty queue)      set queue front to address of new data   else      set next pointer of rear node to address of new node   end if   set queue rear to address of new node   increment queue count   return trueend enqueue

A. It does not test if the queue is empty.
B. It does not test if the queue is full.
C. It does not display error messages.
D. The next pointer of rear node should be set to null.


Answer: B

Computer Science & Information Technology

You might also like to view...

Pinterest, a visual bookmarking Website, logs more than 14 terabytes of new data each day, which means its storage needs are constantly changing. As a result, Pinterest has turned to Amazon for _______.

A. storage as a service B. grid computing C. cloud computing D. infrastructure as a service

Computer Science & Information Technology

Which of the following is the final step for an incident response tabletop exercise?

A) Execution B) Preparation C) Report D) Analysis

Computer Science & Information Technology

What is the purpose of an amortization table?

What will be an ideal response?

Computer Science & Information Technology

Cluster-Aware Updating is a failover cluster feature that automates software updates on cluster servers while maintaining cluster service availability.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology