Exam 18: Stacks and Queues

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

Static stacks have a ________ size, and are implemented using ________.

(Multiple Choice)
4.9/5
(41)

The STL provides containers for deque and queue.

(True/False)
4.8/5
(41)

The ________ operation allows an item to be stored on a stack.

(Multiple Choice)
4.9/5
(28)

The Standard Template Library offers a stack template that may be implemented as a

(Multiple Choice)
4.8/5
(38)

The ________ operation allows an item to be removed from a stack.

(Multiple Choice)
4.8/5
(38)

A queue is a data structure that stores and retrieves items in a ________ manner.

(Multiple Choice)
4.9/5
(32)

When an element is added to a queue, it is added to the rear. When an element is removed, it is removed from the

(Multiple Choice)
4.8/5
(33)

A(n) ________ is an abstract data type that stores and retrieves items in a last-in-first-out manner.

(Multiple Choice)
4.9/5
(39)

In a static stack class, the constructor function can dynamically allocate memory for the stack array.

(True/False)
4.9/5
(28)

A dynamic stack has a ________ size, and is implemented as a(n) ________.

(Multiple Choice)
4.7/5
(23)

A ________ is processed in a manner similar to customers standing in a grocery check-out line: The first customer in line is the first served.

(Multiple Choice)
4.9/5
(38)

The pop function in the stack template of the STL does not return the value from the top of the stack.

(True/False)
4.9/5
(38)

Two primary queue operations are

(Multiple Choice)
4.8/5
(43)

Queues that are implemented as arrays are called ________ queues.

(Multiple Choice)
4.9/5
(29)

In a dequeue operation, the element at the ________ of the queue is removed.

(Multiple Choice)
4.7/5
(36)

A ________ is a double-ended queue.

(Multiple Choice)
4.8/5
(39)
Showing 21 - 36 of 36
close modal

Filters

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