Which of the following statements is used to insert a new node, referenced by newNode, at the end of a linear linked list?

a) newNode.setNext(curr);
prev.setNext(newNode);
b) newNode.setNext(head);
head = newNode;
c) prev.setNext(newNode);
d) prev.setNext(curr);
newNode.setNext(curr);

a.

Computer Science & Information Technology

You might also like to view...

To ________ an object in small increments is to move that object using the directional arrow keys

A) focus B) nudge C) cut D) poke

Computer Science & Information Technology

# has a special set of operators known as ____________ that change the value of a variable without having to type the variable name twice.

a. identity operators b. combined assignment operators c. quick-change operators d. assessment operators

Computer Science & Information Technology