Solved

Which of the Following Code Fragments Is Used to Delete

Question 1

Multiple Choice

Which of the following code fragments is used to delete the item at the front of a queue represented by a circular array?


A) front = MAX_QUEUE - front;
--count;
B) front = front - back;
--count;
C) front = (front+1) % MAX_QUEUE;
--count;
D) front = (back+1) % MAX_QUEUE;
--count;

Correct Answer:

verifed

Verified

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents