Exam 16: Linked Lists

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

The link field of the last node of a linked list is ____.

(Multiple Choice)
4.8/5
(43)

In a linked list, the link component of each node is a(n) ____________________.

(Short Answer)
4.8/5
(41)

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

(Multiple Choice)
4.9/5
(36)

It is not possible to create an ordered linked list.

(True/False)
4.9/5
(41)

We deallocate the memory for a linked list by calling the operator clear.

(True/False)
4.7/5
(32)

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

A doubly linked list can be traversed in either direction.

(True/False)
4.8/5
(33)

Consider the statements above.The list is empty if the pointer first is ____.

(Multiple Choice)
4.8/5
(39)

Linked lists allow you to overcome the size limitations of an array data type.

(True/False)
4.8/5
(39)

Consider the following code:The statement that provides the length of the linked list is ____. Consider the following code:The statement that provides the length of the linked list is ____.

(Multiple Choice)
4.9/5
(32)

Data can be organized and processed sequentially using an array, called a(n) ____ list.

(Multiple Choice)
4.8/5
(35)

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

Which of the following statements appears in the insert function of a doubly linked list?

(Multiple Choice)
4.7/5
(36)

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

(True/False)
4.9/5
(28)

  -Consider the accompanying code.What is the effect of the following statement? newNode->info = 50; -Consider the accompanying code.What is the effect of the following statement? newNode->info = 50;

(Multiple Choice)
4.9/5
(44)

Memory for the components of an array does not need to be contiguous.

(True/False)
4.9/5
(37)

In C++, the dereferencing operator is ____________________.

(Short Answer)
4.9/5
(43)

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

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

(Short Answer)
4.8/5
(36)

Which of the following correctly initializes a doubly linked list in the default constructor?

(Multiple Choice)
4.8/5
(43)
Showing 21 - 40 of 40
close modal

Filters

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