Exam 18: Stacks and Queues

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

Which of the following is listed in the chapter as a basic operation performed on a queue?

(Multiple Choice)
4.7/5
(34)

In the linked implementation of stacks, the memory to store the stack elements is allocated statically.

(True/False)
4.9/5
(35)

What is the output of the following code? What is the output of the following code?

(Multiple Choice)
4.8/5
(38)

What is the output of the following code? What is the output of the following code?

(Multiple Choice)
4.8/5
(30)

A stack can be implemented as either a(n) ____ or a linked structure.

(Multiple Choice)
4.7/5
(37)

Postfix notation requires the use of parentheses to enforce operator precedence.

(True/False)
4.7/5
(44)

The expression a + b is the same in both infix notation and postfix notation.

(True/False)
4.8/5
(37)

A technique in which one system models the behavior of another system is called ____.

(Multiple Choice)
5.0/5
(42)

The infix expression The infix expression

(True/False)
4.8/5
(36)

When describing a queuing system, we use the term ____________________ to refer to the time it takes to serve a customer.

(Short Answer)
4.9/5
(37)

The default constructor for the linked implementation of a stack initializes the stack to an empty state when a stack object is declared.

(True/False)
4.8/5
(32)

The postfix expression 5 6 + 4 * 10 5 / - = evaluates to ____.

(Multiple Choice)
4.8/5
(45)

If you try to add a new item to a full stack, the resulting condition is called an outflow.

(True/False)
4.8/5
(44)

The addition and deletion of elements of a stack occurs only at the ____ of the stack.

(Multiple Choice)
4.7/5
(37)

You can perform the add operation, called ____, to add an element onto the stack.

(Multiple Choice)
4.8/5
(26)

To describe a queuing system, we use the term ____ for the object that provides the service.

(Multiple Choice)
4.8/5
(36)

____________________ techniques are used when it is too expensive or dangerous to experiment with real systems.

(Short Answer)
4.9/5
(46)

You can perform the operation ____ to remove the top element from the stack.

(Multiple Choice)
4.9/5
(33)

A queue is a data structure in which the elements are ____.

(Multiple Choice)
4.8/5
(35)

If you try to add a new item to a full stack, the resulting condition is called a(n) ____.

(Multiple Choice)
4.8/5
(31)
Showing 21 - 40 of 42
close modal

Filters

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