Multiple Choice
Consider the following code,which deletes all the nodes in a linked list. void doublyLinkedList<Type>::destroy()
{
NodeType<Type> *temp; //pointer to delete the node
While (first != NULL)
{
Temp = first;
First = first->next;
____
}
Last = NULL;
Count = 0;
}
Which of the following is the missing statement?
A) delete first;
B) delete temp;
C) destroy temp;
D) clear temp;
Correct Answer:

Verified
Correct Answer:
Verified
Q2: A linked list must be searched _,starting
Q4: The deleteNode operation (if the item to
Q6: Which of the following is a basic
Q7: Which of the following correctly initializes a
Q8: template <class Type><br>_ doublyLinkedList<Type>::isEmptyList() const<br>{<br> <span
Q10: The _ constructor can make an identical
Q11: What is the output of the following
Q24: It is not possible to create an
Q33: Which of the following statements appears in
Q39: The _ operator advances the iterator to