Exam 21: Custom Generic Data Structures

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

Queue nodes are removed only from the __________ of the queue, and are inserted only at the __________ of the queue.

Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
Verified

C

Which statement is false?

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

B

The technique of implementing each stack method as a call to a List method is called __________.

Free
(Multiple Choice)
4.9/5
(26)
Correct Answer:
Verified

A

List nodes normally are not necessarily stored in contiguous memory. Rather, they're ________ contiguous.

(Multiple Choice)
4.9/5
(36)

If no memory is available, keyword new throws an __________.

(Multiple Choice)
4.7/5
(34)

A stack is a __________ data structure.

(Multiple Choice)
4.8/5
(38)

A queue is a __________ data structure.

(Multiple Choice)
4.9/5
(40)

An isEmpty method you write to test whether a linked list is empty is called a __________ method.

(Multiple Choice)
4.9/5
(30)

Which statement is false?

(Multiple Choice)
4.9/5
(32)

Which statement is false?

(Multiple Choice)
4.7/5
(35)

A __________ class contains a reference member that refers to an object of the same class type.

(Multiple Choice)
4.8/5
(34)

Which statement is false?

(Multiple Choice)
4.8/5
(29)

Usually a _________ in Java code indicates the end of a data structure.

(Multiple Choice)
4.8/5
(32)

Java performs automatic __________ of objects that are no longer referenced in a program.

(Multiple Choice)
5.0/5
(37)

Which statement about trees is false?

(Multiple Choice)
4.9/5
(37)

Which statement is false?

(Multiple Choice)
5.0/5
(37)

Which is not a typical application of queues?

(Multiple Choice)
4.9/5
(31)
close modal

Filters

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