Solved

Consider a Queue Represented by a Circular Array of 10

Question 16

Multiple Choice

Consider a queue represented by a circular array of 10 elements and front and back the two instance variables representing the indexes of the front and the back of the queue, respectively. If the value of front is 0 and the value of back is 9, what can you tell about the queue?


A) It is empty.
B) It is full.
C) It is neither empty nor full.
D) It is either empty or full.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions