Solved

Which of the Following Is the Code to Insert a New

Question 51

Multiple Choice

Which of the following is the code to insert a new node,referenced by newNode,into an empty queue represented by a circular linked list?


A) newNode.setNext(lastNode) ;
B) lastNode.setNext(lastNode) ;
LastNode = newNode;
C) newNode.setNext(lastNode) ;
NewNode = lastNode;
D) newNode.setNext(newNode) ;
LastNode = newNode;

Correct Answer:

verifed

Verified

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

Related Questions