Exam 5: Linked Lists

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

Which of the following will be true when the reference variable curr references the last node in a linear linked list?

(Multiple Choice)
4.7/5
(43)

To delete a node N from a linear linked list,you will need to ______.

(Multiple Choice)
4.7/5
(42)

What are two advantages of using a reference-based implementation of the ADT list instead of an array-based implementation?

(Essay)
4.8/5
(37)

_______ is a process that transforms an object into a stream of bytes that can be saved to and restored from a file.

(Multiple Choice)
4.7/5
(30)

The constant null can be used as the value of a reference to any type of object.

(True/False)
4.8/5
(36)

When you declare a variable that refers to an object of a given class,you are creating a(n)______ to the object.

(Multiple Choice)
4.9/5
(33)

In a reference-based implementation of an ADT list ______.

(Multiple Choice)
4.9/5
(35)

Insertion at the end of a linear linked list is a special case.

(True/False)
4.9/5
(31)

A reference variable whose sole purpose is to locate the first node in a linked list is called ______.

(Multiple Choice)
4.9/5
(39)

Write the code fragment to delete the node that the reference variable curr references in a circular doubly linked list?

(Essay)
4.9/5
(43)

In a circular doubly linked list,inserting into the first position of the list is a special case.

(True/False)
4.8/5
(35)

What are the three high-level steps to delete a node from a linear linked list?

(Essay)
4.8/5
(36)

The last node of a linear linked list ______.

(Multiple Choice)
4.8/5
(33)

A _______ can be used to facilitate adding nodes to the end of a linear linked list.

(Multiple Choice)
4.9/5
(35)

What are the three high-level steps to insert a new node into a linear linked list?

(Essay)
4.9/5
(33)

Write the code fragment to insert a new node that the reference variable newNode references before the node referenced by the reference variable curr in a doubly linked list.

(Essay)
4.9/5
(33)

No node in a circular linked list contains the value null in its next reference.

(True/False)
4.7/5
(31)

In the following code segment: Integer maxNum; MaxNum = new Integer (15); ______ is a reference variable.

(Multiple Choice)
4.9/5
(34)

An array-based implementation of an ADT list ______.

(Multiple Choice)
4.9/5
(42)

In Java,the programmer must explicitly deallocate memory.

(True/False)
4.7/5
(43)
Showing 21 - 40 of 60
close modal

Filters

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