Exam 16: Linked Lists

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

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

Free
(Multiple Choice)
4.8/5
(25)
Correct Answer:
Verified

B

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

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

B

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.

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

True

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

(Short Answer)
4.7/5
(40)

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

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

(Multiple Choice)
4.9/5
(40)

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

(Short Answer)
4.8/5
(40)

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

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

(Short Answer)
4.8/5
(44)

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

(Multiple Choice)
4.9/5
(33)

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

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

(Multiple Choice)
5.0/5
(42)

What is the purpose of the following code? What is the purpose of the following code?

(Multiple Choice)
4.9/5
(34)

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

(Multiple Choice)
4.7/5
(46)

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

(True/False)
4.8/5
(30)

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

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

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.9/5
(42)

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

(Multiple Choice)
4.9/5
(34)

A linked list is a random access data structure.

(True/False)
4.8/5
(38)
Showing 1 - 20 of 40
close modal

Filters

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