Exam 17: Linked Lists

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

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

(True/False)
4.8/5
(38)

Each node of a singly linked list has two components: ____ and ____.

(Multiple Choice)
4.9/5
(39)

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

(True/False)
5.0/5
(39)

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

(Multiple Choice)
4.9/5
(41)

Because each node of a linked list has two components, we need to declare each node as a(n) ____.

(Multiple Choice)
4.8/5
(34)

The steps involved in inserting a new item at the beginning of an unordered linked list are ____.

(Multiple Choice)
4.8/5
(28)

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

(Multiple Choice)
4.7/5
(32)

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

(Multiple Choice)
4.9/5
(23)

  -Consider the accompanying statements. The operation returns true if the list is empty; otherwise, it returns false. The missing code is ____. -Consider the accompanying statements. The operation returns true if the list is empty; otherwise, it returns false. The missing code is ____.

(Multiple Choice)
4.9/5
(39)

It is not possible to create an ordered linked list.

(True/False)
4.9/5
(43)

A(n) ____________________ is an object that produces each element of a container, such as a linked list, one element at a time.

(Short Answer)
4.8/5
(32)

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

Each node of a linked list must store the data as well as the ____________________ of the next node in the list.

(Short Answer)
4.9/5
(32)

The ____ deallocates the memory occupied by the nodes of a list when the class object goes out of scope.

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.9/5
(41)

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

(Multiple Choice)
4.7/5
(40)

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

(True/False)
4.8/5
(40)

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

(Short Answer)
4.9/5
(33)

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

Which of the following is a basic operation on singly linked lists?

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

Filters

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