Podcast
Questions and Answers
The head of a linked list points to NULL if the list is not empty.
The head of a linked list points to NULL if the list is not empty.
False
In a circular linked list, the pointer from the first element in the list points back to the last element.
In a circular linked list, the pointer from the first element in the list points back to the last element.
False
A singly linked list is represented by a pointer to the last node of the linked list.
A singly linked list is represented by a pointer to the last node of the linked list.
False
In a singly linked list, insertion can only be performed at the beginning of the list.
In a singly linked list, insertion can only be performed at the beginning of the list.
Signup and view all the answers
When inserting a new node into a singly linked list, the next pointer of the new record is set to link it to the item which precedes it in the list.
When inserting a new node into a singly linked list, the next pointer of the new record is set to link it to the item which precedes it in the list.
Signup and view all the answers
When deleting a node from a singly linked list, the next pointer of the item immediately following the one to be deleted is altered.
When deleting a node from a singly linked list, the next pointer of the item immediately following the one to be deleted is altered.
Signup and view all the answers
A node can be added in only two ways in a singly linked list.
A node can be added in only two ways in a singly linked list.
Signup and view all the answers
A circular linked list is a type of doubly linked list.
A circular linked list is a type of doubly linked list.
Signup and view all the answers
In a singly linked list, each node has two pointers: one pointing to the next node and one pointing to the previous node.
In a singly linked list, each node has two pointers: one pointing to the next node and one pointing to the previous node.
Signup and view all the answers
The LinkedList class in Java contains a reference of Node class type.
The LinkedList class in Java contains a reference of Node class type.
Signup and view all the answers