Multiple Choice
A linked list class uses a Node class with successor reference next and field element to store values.It uses a reference first to point to the first node of the list.Code to print all elements stored in the list can be written as
A) System.out.print(first) ;
B) Node p = first;
While (p != null.
{
System.out.println(p.element.;
P = p.next;
}
C) Node p = first;
While (p != null.
System.out.println(p.next.;
D) Node p = first;
For (p!= null.
{
System.out.println(p.element.;
P++;
}
Correct Answer:

Verified
Correct Answer:
Verified
Q10: A list in which each stored element
Q11: A linked list class uses a Node
Q12: In Java,the first node in a list
Q13: In a typical circular doubly linked list,a
Q14: A linked list class uses a Node
Q16: In a linked list implementation using a
Q17: To remove a node X with index
Q18: A method int size( )in a linked
Q19: A circularly linked list makes it easy
Q20: A Node class for a linked list