Exam 17: Linked Lists
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures II Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
Every node in a doubly linked list has two pointers: ____ and ____.
Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
B
The ____________________ operator advances the iterator to the next node in the linked list.
Free
(Short Answer)
4.8/5
(40)
Correct Answer:
increment
++
A doubly linked list can be traversed in either direction.
Free
(True/False)
4.8/5
(31)
Correct Answer:
True
The ____________________ constructor executes when an object is declared and initialized using another object.
(Short Answer)
4.9/5
(40)
In a linked list, the order of the nodes is determined by the address, called the ____, stored in each node.
(Multiple Choice)
4.9/5
(39)
For classes that include pointer data members, the assignment operator must be explicitly ____________________.
(Short Answer)
4.8/5
(40)
You can use the pointer head of a linked list to traverse the list.
(True/False)
4.7/5
(38)
Suppose that the pointer head points to the first node in the list, and the link of the last node is nullptr. The first node of the linked list contains the address of the ____ node.
(Multiple Choice)
4.9/5
(41)
When building a linked list in the ____ manner, a new node is always inserted at the end of the linked list.
(Multiple Choice)
4.8/5
(34)
A(n) ____________________ linked list is a linked list in which every node has a next pointer and a back pointer.
(Short Answer)
4.8/5
(29)
In a linked list, the address of the first node in the list is stored in a separate location, called the ____ or first.
(Multiple Choice)
4.8/5
(35)
Every node (except of the last node) in a singly linked list contains ____.
(Multiple Choice)
4.9/5
(32)
How many pointers are needed to build a linked list in a backward manner?
(Multiple Choice)
4.9/5
(35)
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/False)
4.8/5
(41)
When you build a linked list in the backward manner, a new node is always inserted at the end of the linked list.
(True/False)
4.9/5
(32)
Consider the following code which deletes all the nodes in a linked list.
Which of the following is the missing statement?

(Multiple Choice)
4.8/5
(33)
Showing 1 - 20 of 41
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)