PLEASE ANSWER ALL 3 QUESTIONS CORRECTLY 1) In the linked list implementation of
ID: 3581211 • Letter: P
Question
PLEASE ANSWER ALL 3 QUESTIONS CORRECTLY
1) In the linked list implementation of the queue class, where should the push member function place the new entry on the linked list?
A) At the head
B) Either the head or the tail
C) In sorted order
D) At the tail
2) I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer.
which of these pointers will change during a deletion operation?
A) Only rear_ptr changes.
B) Both change.
C) Only front_ptr changes.
D) Neither changes
3) The _______ case is the case that stops recursion.
A) blocking
B) condition
C) base
D) recursive
A) At the head
B) Either the head or the tail
C) In sorted order
D) At the tail
2) I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer.
which of these pointers will change during a deletion operation?
A) Only rear_ptr changes.
B) Both change.
C) Only front_ptr changes.
D) Neither changes
3) The _______ case is the case that stops recursion.
A) blocking
B) condition
C) base
D) recursive
Explanation / Answer
1) In the linked list implementation of the queue class, where should the push member function place the new entry on the linked list?
ANSWER: option A (At the head)
2) I have implemented the queue with a linked list, keeping track of a front pointer and a rear pointer.
which of these pointers will change during a deletion operation?
ANSWER: option B (both changes)
3) The _______ case is the case that stops recursion.
ANSWER: option B (condition)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.