Exam 17: Linked Lists

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

A new node cannot become the first node in the list.

Free
(True/False)
4.9/5
(40)
Correct Answer:
Verified

False

If new information needs to be added to a linked list, the program simply and inserts it into the list.

Free
(Multiple Choice)
4.8/5
(37)
Correct Answer:
Verified

B

Nodes in a linked list are stored in contiguous memory.

Free
(True/False)
4.8/5
(33)
Correct Answer:
Verified

False

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

(True/False)
4.8/5
(39)

The STL implementation of a linked list is a class called

(Multiple Choice)
4.9/5
(41)

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.9/5
(43)

The defining characteristic of a linked list is that

(Multiple Choice)
4.7/5
(32)

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.7/5
(32)

Deleting an entire linked list requires a call to the delete operator for each node in the list.

(True/False)
4.8/5
(37)

Adding a new node in the middle or at the end of a singly- linked list requires a pointer to the node after which the new node will be added.

(True/False)
4.9/5
(38)

One advantage a linked list has over a vector is that

(Multiple Choice)
4.9/5
(36)

Linked lists are less complex to code and manage than arrays.

(True/False)
4.9/5
(33)

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

(True/False)
4.8/5
(43)

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

In many recursive operations on linked lists,

(Multiple Choice)
4.8/5
(41)

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

(True/False)
4.9/5
(37)

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

To concatenate two linked lists, it is necessary to

(Multiple Choice)
4.9/5
(40)

If the head pointer points to NULL, it is an indication that

(Multiple Choice)
4.7/5
(33)

Which of the following are linked list operations?

(Multiple Choice)
4.9/5
(42)
Showing 1 - 20 of 38
close modal

Filters

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