(Choose 1 answer)
Suppose a singly linked list of integers is given below:
(head) 7 11 6 4 3 12 8 2 (tail)
What does the list look like after the following java code snippet is run?
int x = 5;
Node f = head;
while(f.next != tail) f = f.next;
Node q = new Node(x);
q.next = tail;
f.next = q;
A. 7 11 6 4 3 12 8 2 5
B. 7 11 6 4 3 12 8 5 2
C. 7 11 6 4 3 12 5 8 2
D. 7 5 11 6 4 3 12 8 2
E. 5 7 11 6 4 3 12 8 2
Exit 25