Exam 4: Stacks and Queues

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Two Java Collection classes that implement the Deque are ________________ and ________________.

(Short Answer)
4.8/5
(40)

If a non-circular array is used to implement a queue, insertion at the front is a(n) ____ operation instead of O(1).

(Short Answer)
4.8/5
(38)

You can use a Deque object to implement a stack.

(True/False)
4.8/5
(47)

Which of the following contains a syntax error?

(Multiple Choice)
4.9/5
(34)

You can implement a queue as a single-linked list.

(True/False)
4.8/5
(37)

The EmptyQueueException is associated with the action of attempting to remove an item from an empty queue.

(True/False)
4.7/5
(44)

In Java 6.0, the Deque ________________ represents a __________________ queue.

(Short Answer)
4.8/5
(42)

The ____________________ method creates a Random object when it is first called. It then uses that object's nextDouble method to return a random number in the range 0 to 1.

(Short Answer)
4.8/5
(37)
Showing 21 - 28 of 28
close modal

Filters

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