Exam 15: Linked Data Structures

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

Create a generic Node class to represent the linked list depicted in your diagrams above.

(Essay)
4.9/5
(31)

Write a method called displayList that displays the data items in the Node class created in number 6 above.

(Essay)
4.9/5
(32)

Redraw the diagram created in number 2 above after inserting a node containing Chattanooga,27.6.

(Essay)
4.8/5
(35)

Recursively visiting the left subtree,right subtree and then the root describes:

(Multiple Choice)
4.9/5
(34)

Making the Node class a private inner class of a linked data structure is an example of:

(Multiple Choice)
4.7/5
(32)

Given the Node class created in number 6 above,write Java statements to delete a node from the beginning of the list.

(Essay)
4.8/5
(36)

Discuss the differences between a queue and a stack.

(Essay)
4.8/5
(38)

Forgetting to set the reference instance variable of the last node in a linked list to null will cause a logic error.

(True/False)
4.9/5
(40)

A _________________ maps a data value such as a String into a number:

(Multiple Choice)
4.9/5
(30)

Redraw the diagram created in number 3 above,after deleting the node containing Chicago.

(Essay)
4.9/5
(48)

In Java,a node is a/an:

(Multiple Choice)
4.9/5
(32)

A binary tree has exactly _________ link instance variables.

(Multiple Choice)
4.8/5
(33)

In Java,you indicate the end of a linked list be setting the link instance variable of the last node in the linked list to __________.

(Multiple Choice)
4.9/5
(37)

A common exception that occurs when using linked lists is the:

(Multiple Choice)
4.8/5
(45)

Linked lists introduce the possibility of a privacy leak occurring.

(True/False)
4.8/5
(39)

To use the Java Iterator Interface you must import the ____________ package.

(Multiple Choice)
4.8/5
(38)

If you define a clone method,the class should implement the Cloneable interface.

(True/False)
4.8/5
(37)

Redraw the diagram created in number 4 above after deleting the head node.

(Essay)
4.9/5
(47)

A queue is a last-in/first-out structure.

(True/False)
4.9/5
(36)

Given the Node class created in number 6 above,write Java statements to insert a new node containing (Chattanooga,23.7)into an empty list.

(Essay)
4.9/5
(46)
Showing 21 - 40 of 43
close modal

Filters

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