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
(81)
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
(61)
Correct Answer:
Verified

D

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

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

False

To build a linked list, we can

(Multiple Choice)
4.9/5
(82)

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

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

(Multiple Choice)
4.7/5
(61)

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

(True/False)
4.9/5
(69)

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

(Multiple Choice)
4.8/5
(74)

One advantage a linked list has over a vector is that

(Multiple Choice)
4.8/5
(87)

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

(Multiple Choice)
4.8/5
(71)

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

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

(Multiple Choice)
4.8/5
(90)

Variations of the linked list are

(Multiple Choice)
4.8/5
(76)

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

(Multiple Choice)
5.0/5
(67)

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

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

(True/False)
4.9/5
(87)

To concatenate two linked lists, it is necessary to

(Multiple Choice)
4.9/5
(83)

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

(True/False)
5.0/5
(79)

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

(Multiple Choice)
4.8/5
(73)

In many recursive operations on linked lists,

(Multiple Choice)
4.8/5
(79)
Showing 1 - 20 of 38
close modal

Filters

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