Exam 17: Linked Lists

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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)

Which of the following are linked list operations?

(Multiple Choice)
4.9/5
(35)

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)

Nodes in a linked list are stored in contiguous memory.

(True/False)
4.8/5
(42)

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)

Linked lists of items are commonly implemented by

(Multiple Choice)
4.7/5
(29)

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)

The STL implementation of a linked list is a class called

(Multiple Choice)
4.9/5
(39)

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)

A linked list can grow and shrink as a program runs.

(True/False)
4.8/5
(34)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)