Which of the following statements deletes the first node of a linear linked list that has 10 nodes?
A) head.setNext(curr.getNext() ) ;
B) prev.setNext(curr.getNext() ) ;
C) head = head.getNext() ;
D) head = null;
Correct Answer:
Verified
Q13: When you declare a variable that refers
Q14: Which of the following statements deletes the
Q15: In Java,every class is ultimately derived from
Q16: Which of the following will be true
Q17: According to the principle of information hiding,the
Q19: A reference variable whose sole purpose is
Q20: In a reference-based implementation of an ADT
Q21: A local reference variable has a default
Q22: Insertion at the end of a linear
Q23: Which of the following is NOT true
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents