Consider a queue represented by an 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 8 and the value of back is 7, 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:
Verified
Q29: setData( int i ) is the best
Q30: A doubly linked list provides two links
Q31: Which of the following is correct regarding
Q32: A recursively defined linked list is made
Q33: In a circular array of 5 elements,
Q35: When we delete the first node in
Q36: When we successfully delete an item from
Q37: Assuming a linked list is properly coded,
Q38: A stack is never empty.
Q39: In a queue represented by a linked
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents