Exam 17: Linked Lists
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the String Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
The ____ deallocates the memory occupied by the nodes of a list when the class object goes out of scope.
Free
(Multiple Choice)
4.7/5
(42)
Correct Answer:
B
Suppose that the pointer head points to the first node in the list, and the link of the last node is NULL. The first node of the linked list contains the address of the ____ node.
Free
(Multiple Choice)
5.0/5
(43)
Correct Answer:
C
The ____________________ constructor can make an identical copy of a linked list.
Free
(Short Answer)
4.8/5
(37)
Correct Answer:
copy
Which of the following is a basic operation on singly linked lists?
(Multiple Choice)
4.8/5
(41)
Memory for the components of an array does not need to be contiguous.
(True/False)
4.8/5
(47)
The ____________________ constructor executes when an object is declared and initialized using another object.
(Short Answer)
4.8/5
(32)
For classes that include pointer data members, the assignment operator must be explicitly ____________________.
(Short Answer)
4.9/5
(38)
Each node of a linked list must store the data as well as the ____________________ for the next node in the list
(Short Answer)
4.8/5
(35)
We deallocate the memory for a linked list by calling the operator clear.
(True/False)
4.8/5
(41)
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
(39)
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.9/5
(43)
Linked lists allow you to overcome the size limitations of an array data type.
(True/False)
4.9/5
(36)
template <class Type>
____ doublyLinkedList<Type>::isEmptyList() const
{
return (first == NULL);
}
-Consider the statements above. The list is empty if the pointer first is ____.
(Multiple Choice)
4.8/5
(35)
If a formal parameter is a value parameter, the ____________________ constructor provides the formal parameter with its own copy of the data.
(Short Answer)
4.8/5
(45)
Which of the following correctly initializes a doubly linked list in the default constructor?
(Multiple Choice)
4.8/5
(41)
In a linked list, the link component of each node is a(n) ____________________.
(Short Answer)
4.9/5
(35)
Which of the following statements appears in the insert function of a doubly linked list?
(Multiple Choice)
4.9/5
(36)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)