To remove the first node in a nonempty linked list,

A) move the successor reference in the head node one node forward:
head.next = head.next.next;
B) set a reference pred to the predecessor of the node you want to remove, and set the successor of pred to the successor of the head
C) move the head reference one node forward:
head = head.next;
D) delete the node by setting the head reference to null:
head = null;


C) move the head reference one node forward:
head = head.next;

Computer Science & Information Technology

You might also like to view...

Animation ________ control when animated items display in the animation sequence

Fill in the blank(s) with correct word

Computer Science & Information Technology

Write a for statement to sum the integers 1 through 10 given the following: ? int sum = 0; ? Use the variable count as the counter variable within the statement.

What will be an ideal response?

Computer Science & Information Technology

The role of intelligently forwarding frames from one broadcast domain to another would be performed by which of the following network equipment?

A. Router B. Hub C. Media converter D. Unmanaged switch

Computer Science & Information Technology

A customer is attempting to download a file from a remote FTP server, but receives an error that a connection cannot be opened. Which of the following should be one FIRST to resolve the problem?

A. Ensure that port 20 is open B. Ensure that port 161 is open C. Flush the DNS cache on the local workstation D. Validate the security certificate from the host

Computer Science & Information Technology