Solved

For the Questions Below, Assume That a Linked List Is

Question 15

Multiple Choice

For the questions below, assume that a linked list is implemented using the Node class where a Node contains instance data of int info; and Node next; where next references the next Node in the linked list. Also assume that head references the first Node in the list.
-Which of the following instructions would create an initially empty linked list?


A) Node head = new Node( ) ;
B) Node head = Node;
C) Node head = null;
D) Node head = new Node(0) ;
E) Node head = list;

Correct Answer:

verifed

Verified

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

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents