Solved

Assuming a Linked List of N Nodes,the Code Fragment: Node

Question 38

Multiple Choice

Assuming a linked list of n nodes,the code fragment: Node curr = head;
While (curr != null) {
System.out.println(curr.getItem() ) ;
Curr.setNext(curr.getNext() ) ;
} // end while
Requires ______ assignments.


A) n
B) n - 1
C) n + 1
D) 1

Correct Answer:

verifed

Verified

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

Related Questions