Exam 17: Linked Lists

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

Every node in a doubly linked list has two pointers: ____ and ____.

Free
(Multiple Choice)
4.7/5
(34)
Correct Answer:
Verified

B

The ____________________ operator advances the iterator to the next node in the linked list.

Free
(Short Answer)
4.8/5
(40)
Correct Answer:
Verified

increment
++

A doubly linked list can be traversed in either direction.

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

True

In C++, the dereferencing operator is ____________________.

(Short Answer)
4.8/5
(36)

A linked list is a random access data structure.

(True/False)
4.8/5
(39)

The ____________________ constructor executes when an object is declared and initialized using another object.

(Short Answer)
4.9/5
(40)

A linked list is a collection of components, called ____.

(Multiple Choice)
4.8/5
(45)

In a linked list, the order of the nodes is determined by the address, called the ____, stored in each node.

(Multiple Choice)
4.9/5
(39)

For classes that include pointer data members, the assignment operator must be explicitly ____________________.

(Short Answer)
4.8/5
(40)

The length of a linked list is the number of nodes in the list.

(True/False)
4.9/5
(41)

You can use the pointer head of a linked list to traverse the list.

(True/False)
4.7/5
(38)

Suppose that the pointer head points to the first node in the list, and the link of the last node is nullptr. The first node of the linked list contains the address of the ____ node.

(Multiple Choice)
4.9/5
(41)

When building a linked list in the ____ manner, a new node is always inserted at the end of the linked list.

(Multiple Choice)
4.8/5
(34)

A(n) ____________________ linked list is a linked list in which every node has a next pointer and a back pointer.

(Short Answer)
4.8/5
(29)

In a linked list, the address of the first node in the list is stored in a separate location, called the ____ or first.

(Multiple Choice)
4.8/5
(35)

Every node (except of the last node) in a singly linked list contains ____.

(Multiple Choice)
4.9/5
(32)

How many pointers are needed to build a linked list in a backward manner?

(Multiple Choice)
4.9/5
(35)

In a linked list, if a new item is always inserted at the beginning or at the end of the list and the data we read is unsorted, the linked list will be unsorted.

(True/False)
4.8/5
(41)

When you build a linked list in the backward manner, a new node is always inserted at the end of the linked list.

(True/False)
4.9/5
(32)

Consider the following code which deletes all the nodes in a linked list. Consider the following code which deletes all the nodes in a linked list.   Which of the following is the missing statement? Which of the following is the missing statement?

(Multiple Choice)
4.8/5
(33)
Showing 1 - 20 of 41
close modal

Filters

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