Exam 18: Stacks and Queues

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

The programmer must declare in advance the size of a dynamic stack or queue.

(True/False)
5.0/5
(36)

Enqueue and dequeue are the two most common stack operations.

(True/False)
4.9/5
(40)

The STL provides containers for deque and queue.

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(30)

A _ is a double- ended queue.

(Multiple Choice)
4.9/5
(29)

A real- world example of the queue data structure can be seen in a stack of cafeteria trays, where the last tray pushed onto the stack is the first tray removed.

(True/False)
4.8/5
(36)

A stack or queue is implemented using linked lists.

(Multiple Choice)
4.8/5
(36)

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

(Multiple Choice)
4.8/5
(38)

A stack has two primary operations called

(Multiple Choice)
4.7/5
(37)

For most people, _ queues are more intuitive and easier to understand than _ queues.

(Multiple Choice)
4.9/5
(35)

The queue data structure is commonly applied in connection with

(Multiple Choice)
4.9/5
(40)

A dynamic stack starts as an empty linked list.

(True/False)
4.8/5
(38)

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

(True/False)
4.8/5
(34)

A dynamic queue can be implemented as a

(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)