Exam 5: Linked Lists

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

In all circular linked lists,______.

(Multiple Choice)
4.9/5
(33)

Each node in a linear linked list references both its predecessor and its successor.

(True/False)
4.7/5
(38)

What information is stored in a reference to an object?

(Essay)
4.9/5
(38)

According to the principle of information hiding,the data fields of a class must be declared as ______.

(Multiple Choice)
4.9/5
(35)

The ADT list can have an arbitrary length.

(True/False)
4.9/5
(41)

If a linked list is empty,the statement head.getNext()will throw a(n)______.

(Multiple Choice)
4.7/5
(31)

In the following code segment: final int SIZE = 20;// line 1 Int groupSize;// line 2 GroupSize = SIZE;// line 3 GroupSize = groupSize * 2;// line 4 What is the value of groupSize in line 2?

(Multiple Choice)
4.8/5
(40)

Name two advantages of implementing the ADT list as an array instead of using a linked list (reference based).

(Essay)
4.7/5
(44)

In Java,when is an object marked for garbage collection?

(Essay)
4.9/5
(41)

What is a dummy head node?

(Essay)
4.9/5
(37)

Which of the following exceptions can be thrown if an object cannot be instantiated?

(Multiple Choice)
4.7/5
(35)

What is the difference between a linear linked list and a circular linked list?

(Essay)
4.7/5
(47)

Which of the following is true about all doubly linked lists?

(Multiple Choice)
4.8/5
(42)

If the implementation of a linked list maintains information about only one node,the head of the list,how is it able to be a collection of more than one node? In other words,how can we have a linked list of 20 nodes,if the list implementation only stores information about the head node?

(Essay)
4.8/5
(45)

A dummy head node ______.

(Multiple Choice)
4.9/5
(28)

Which of the following statements deletes the first node of a linear linked list that has 10 nodes?

(Multiple Choice)
4.9/5
(37)

Which of the following CANNOT be used in a linear linked list?

(Multiple Choice)
4.9/5
(32)

A ______ can be used to store global information about a linked list.

(Multiple Choice)
4.8/5
(39)

Which of the following statements deletes the node that curr references?

(Multiple Choice)
4.9/5
(31)

A ______ allows the deletion of a node from a linked list without the need to traverse the list to establish a trailing reference.

(Multiple Choice)
4.9/5
(30)
Showing 41 - 60 of 60
close modal

Filters

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