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
(82)
Correct Answer:
Verified

C

Which statement is false?

Free
(Multiple Choice)
4.8/5
(73)
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
(70)
Correct Answer:
Verified

A

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

(Multiple Choice)
4.9/5
(85)

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

(Multiple Choice)
4.8/5
(84)

A stack is a __________ data structure.

(Multiple Choice)
4.8/5
(80)

A queue is a __________ data structure.

(Multiple Choice)
4.9/5
(78)

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

(Multiple Choice)
4.9/5
(80)

Which statement is false?

(Multiple Choice)
4.9/5
(72)

Which statement is false?

(Multiple Choice)
4.8/5
(79)

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

(Multiple Choice)
4.8/5
(73)

Which statement is false?

(Multiple Choice)
4.9/5
(76)

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

(Multiple Choice)
4.8/5
(81)

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

(Multiple Choice)
5.0/5
(81)

Which statement about trees is false?

(Multiple Choice)
4.9/5
(83)

Which statement is false?

(Multiple Choice)
5.0/5
(89)

Which is not a typical application of queues?

(Multiple Choice)
5.0/5
(84)
close modal

Filters

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