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.

Free
(True/False)
4.9/5
(84)
Correct Answer:
Verified

False

A dynamic stack may be implemented as a(n) ________, and expand or shrink with each push or pop operation.

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

C

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.

Free
(True/False)
4.7/5
(75)
Correct Answer:
Verified

False

A stack that is implemented as a linked list is known as a deque.

(True/False)
4.8/5
(89)

The statement stack< int, vector<int> > iStack; creates

(Multiple Choice)
4.9/5
(87)

The first item placed onto a stack is always the last item removed from the stack.

(True/False)
4.9/5
(74)

The queue data structure is commonly applied in connection with

(Multiple Choice)
4.9/5
(78)

Stacks and queues can be implemented as arrays or linked lists.

(True/False)
4.9/5
(82)

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

(Multiple Choice)
4.8/5
(83)

A ________ stack or queue is implemented using linked lists.

(Multiple Choice)
5.0/5
(60)

Push and pop are the two most common queue operations.

(True/False)
4.9/5
(78)

Stacks are useful data structures for algorithms that work with lists of items in a

(Multiple Choice)
4.9/5
(92)

Enqueue and dequeue are the two most common stack operations.

(True/False)
4.9/5
(68)

A ________ is a container that provides quick access to elements at the front and the back of the list.

(Multiple Choice)
4.9/5
(60)

If information is transmitted faster than it can be processed, it can be held in a ________ while it awaits processing.

(Multiple Choice)
4.9/5
(86)

A dynamic stack starts as an empty linked list.

(True/False)
4.9/5
(65)

A practical application of the stack data type is

(Multiple Choice)
4.8/5
(74)

A static queue can be implemented as a

(Multiple Choice)
4.8/5
(86)

A stack has two primary operations called

(Multiple Choice)
4.9/5
(75)

A dynamic queue can be implemented as a

(Multiple Choice)
4.8/5
(71)
Showing 1 - 20 of 36
close modal

Filters

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