Exam 17: Linked Lists

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

The defining characteristic of a linked list is that

Free
(Multiple Choice)
4.9/5
(39)
Correct Answer:
Verified

C

In a doubly-linked list, each node contains a pointer to the next node in the list, as well as a pointer to

Free
(Multiple Choice)
4.9/5
(23)
Correct Answer:
Verified

D

A new node must always be made the last node in the list.

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

False

To build a linked list, we can

(Multiple Choice)
4.9/5
(35)

The values stored in the value portion of a node of a linked list can be simple data types, structures, objects of classes, or any other data type.

(True/False)
4.9/5
(38)

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

(Multiple Choice)
4.7/5
(28)

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

(True/False)
4.8/5
(28)

A ________ is used to step through a linked list and search for data.

(Multiple Choice)
4.8/5
(36)

One advantage a linked list has over a vector is that

(Multiple Choice)
4.8/5
(35)

Moving through a linked list is referred to as ________ the list.

(Multiple Choice)
4.8/5
(26)

If a node is not the first node in a linked list, deleting it may require setting the successor pointer in its predecessor.

(True/False)
4.9/5
(40)

The ________ of a linked list points to the first node in the list.

(Multiple Choice)
4.8/5
(41)

Variations of the linked list are

(Multiple Choice)
4.8/5
(39)

Each node in a ________ list contains pointers to the nodes before and after it.

(Multiple Choice)
4.9/5
(29)

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

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

(True/False)
4.8/5
(40)

To concatenate two linked lists, it is necessary to

(Multiple Choice)
4.9/5
(37)

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

(True/False)
4.9/5
(32)

The successor pointer in the last node of a linked list should have its value set to

(Multiple Choice)
4.8/5
(36)

In many recursive operations on linked lists,

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

Filters

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