Podcast
Questions and Answers
If the head pointer points to nullptr, this indicates
If the head pointer points to nullptr, this indicates
- the list is full and cannot accept any new nodes
- the list has 6 nodes
- the list needs to be destroyed
- there are no nodes in the list (correct)
Linked list is generally considered as an example of _________ type of memory allocation.
Linked list is generally considered as an example of _________ type of memory allocation.
- compile time
- static
- dynamic (correct)
- all of the above
How many null pointers exists in a circular linked list?
How many null pointers exists in a circular linked list?
- 3
- 1
- 0 (correct)
- 2
What advantage does a linked list have over an array?
What advantage does a linked list have over an array?
If new data needs to be added to a linked list, the program
simply __________ and inserts it into the series.
If new data needs to be added to a linked list, the program simply __________ and inserts it into the series.
A doubly linked list keeps track of the next node in the list
as well as
A doubly linked list keeps track of the next node in the list as well as
What does the following fragment of code do with a linked list? current = head; while (current != null) { current = current.link; }
What does the following fragment of code do with a linked list? current = head; while (current != null) { current = current.link; }
A linked list must contain a maximum size component to manage the last item?
A linked list must contain a maximum size component to manage the last item?
Google map navigation system is the example of ________________
Google map navigation system is the example of ________________
what is major disadvantage of linked list
what is major disadvantage of linked list