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
(85)

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
(57)

Which of the following are linked list operations?

(Multiple Choice)
4.9/5
(84)

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
(83)

Nodes in a linked list are stored in contiguous memory.

(True/False)
4.9/5
(93)

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
(84)

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
(75)

Linked lists of items are commonly implemented by

(Multiple Choice)
4.8/5
(84)

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
(86)

The list container provided by the Standard Template Library is a template version of a

(Multiple Choice)
4.9/5
(84)

The STL implementation of a linked list is a class called

(Multiple Choice)
4.9/5
(80)

Deleting an entire list requires traversing the list to delete the nodes.

(True/False)
4.7/5
(89)

The Standard Template Library (STL) provides a linked list container. L) provides a linked list container.

(True/False)
4.8/5
(90)

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
(84)

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

(True/False)
4.8/5
(83)

In a non-empty list, there must be exactly one list item with no successor.

(True/False)
4.8/5
(86)

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
(71)

When you create a linked list, you must know in advance how many nodes the list will contain.

(True/False)
4.7/5
(82)
Showing 21 - 38 of 38
close modal

Filters

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