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)
5.0/5
(37)
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
(32)
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
(33)
Correct Answer:
Verified

False

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

(True/False)
4.8/5
(35)

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

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(35)

The queue data structure is commonly applied in connection with

(Multiple Choice)
4.8/5
(34)

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

(True/False)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(36)

A ________ stack or queue is implemented using linked lists.

(Multiple Choice)
5.0/5
(23)

Push and pop are the two most common queue operations.

(True/False)
4.8/5
(27)

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

(Multiple Choice)
4.9/5
(41)

Enqueue and dequeue are the two most common stack operations.

(True/False)
4.9/5
(31)

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

(Multiple Choice)
4.9/5
(24)

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

A dynamic stack starts as an empty linked list.

(True/False)
4.9/5
(26)

A practical application of the stack data type is

(Multiple Choice)
4.8/5
(33)

A static queue can be implemented as a

(Multiple Choice)
4.8/5
(37)

A stack has two primary operations called

(Multiple Choice)
4.8/5
(34)

A dynamic queue can be implemented as a

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

Filters

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