Exam 18: Stacks and Queues

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

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

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

D

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

Free
(True/False)
5.0/5
(35)
Correct Answer:
Verified

True

Queues that are implemented as arrays are called queues.

Free
(Multiple Choice)
4.7/5
(36)
Correct Answer:
Verified

A

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

(Multiple Choice)
4.8/5
(32)

Push and pop are the two most common queue operations.

(True/False)
4.9/5
(35)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(23)

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.7/5
(31)

Two primary queue operations are

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(25)

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

(Multiple Choice)
4.7/5
(34)

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

(Multiple Choice)
4.8/5
(44)

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

(True/False)
4.8/5
(31)

A practical application of the stack data type is

(Multiple Choice)
4.9/5
(41)

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

(True/False)
4.7/5
(43)

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.8/5
(37)

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

(Multiple Choice)
4.8/5
(39)

A static queue can be implemented as a

(Multiple Choice)
4.8/5
(42)

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

(True/False)
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)