Chapter 17 Flashcards
True or false:
Linked list allow you to overcome the size limitations of an array data type.
True
True or false:
Memory for the components of an array does not need to be contiguous
False
True or false:
You can use the pointer head of a linked list to traverse the list.
False
True or false:
We deallocate the memory for a linked list by calling the operator clear.
False
True or false:
In a linked list, if a new item is always inserted at the beginning or at the end of the list and the data we read is unsorted, the linked list will be unsorted.
True
True or false:
When you build a linked list in the backward manner, a new node is always inserted at the end of the linked list.
False
True or false:
It is not possible to create an ordered linked list.
False
True or false:
The length of a linked list is the number of nodes in the list.
True
True or false:
A linked list is a random access data structure.
True
True or false:
A doubly linked list can be traversed in either direction.
True
Data can be organized and processed sequentially using an array, called a(n) ____ list.
sequential
A linked list is a collection of components, called ____.
nodes
In a linked list, the address of the first node in the list is stored in a separate location, called the ____ or first.
head
In a linked list, the order of the nodes is determined by the address, called the ____, stored in each node.
link
Every node (except of the last node) in a singly linked list contains ____.
the address of the next node
The link field of the last node of a linked list is ____.
nullptr