DIS_Quiz3 Flashcards
Linked lists remove requirement that list elements be stored in consecutive memory locations.
True
Linked lists have direct access to each element of the list
False
Insertion is not possible at the beginning of a linked list
False
Given the linked list above, what is the value first->next->data?
17
Adding an element to the end of an array-based list is easier (requires less operation) than linked lists.
True
The array-based implementation of a list works well for lists with many insertions and deletions.
False
Since default assignment operator makes a shallow copy, assignment operator should be overloaded for a deep copy when there is dynamically allocated data members in a class.
True
A linked list with 100 elements uses more memory than an array-based list with a capacity of 100 elements.
True
Which of the following does not require shifting during insertion or deletion?
Linked List
Which of the following accepts the capacity of the list as a parameter of the constructor (e.g., List aList (500))?
List with Dynamic Array