Exam 17: Linked Lists
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C Plus Plus40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions40 Questions
Exam 5: Looping40 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays40 Questions
Exam 9: Searching, Sorting, Algorithm Analysis40 Questions
Exam 10: Pointers62 Questions
Exam 11: More About Classes and Object-Oriented Programming70 Questions
Exam 12: More on C-Strings and the String Class40 Questions
Exam 13: Advanced File and Io Operations40 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions22 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees38 Questions
Select questions type
A linked list class using dynamically allocated memory should free its memory when the list is destroyed. This can be done by
(Multiple Choice)
4.8/5
(31)
When you delete a node from a linked list, you must ensure that the links in the surrounding nodes are set to bypass the node being deleted.
(True/False)
4.9/5
(29)
When an item stored in a linked list is removed, all list items stored after it have to be moved down to plug up the hole.
(True/False)
4.9/5
(36)
A list that contains pointers to the previous node, the next node, and a node in the third dimension is known as a triple-linked list.
(True/False)
4.7/5
(31)
A non-empty linked list of items can be reversed by removing the head, reversing what is left, and then adding the (original) head at the end of the reversed tail.
(True/False)
4.8/5
(33)
Inserting an item into a linked list requires that all the items past the point of the insertion be shifted to make room for the new item.
(True/False)
4.9/5
(42)
The list container provided by the Standard Template Library is a template version of a
(Multiple Choice)
4.9/5
(37)
Deleting an entire list requires traversing the list to delete the nodes.
(True/False)
4.7/5
(39)
The Standard Template Library (STL) provides a linked list container.
L) provides a linked list container.
(True/False)
4.7/5
(42)
When using a node pointer to traverse a linked list, we know we have reached the end of a list when
(Multiple Choice)
4.8/5
(39)
In a non-empty list, there must be exactly one list item with no successor.
(True/False)
4.8/5
(33)
If new information needs to be added to a linked list, the program simply ________ and inserts it into the list.
(Multiple Choice)
4.8/5
(33)
When you create a linked list, you must know in advance how many nodes the list will contain.
(True/False)
4.7/5
(35)
Showing 21 - 38 of 38
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)