Exam 17: Stacks and Queue

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

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

Free
(True/False)
4.8/5
(42)
Correct Answer:
Verified

False

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

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

C

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

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

C

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

(Multiple Choice)
4.7/5
(31)

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

(Multiple Choice)
4.8/5
(29)

In evaluating a postfix expression, when an equal sign (=) is encountered, how many elements must the stack contain so that no error is generated?

(Multiple Choice)
4.8/5
(40)

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

(True/False)
4.8/5
(42)

Popping an element from an empty stack is called ____.

(Multiple Choice)
4.8/5
(39)

In a(n) ____________________ simulation, the clock is implemented as a counter, and the passage of, say, one minute can be implemented by incrementing the counter by 1.

(Short Answer)
4.9/5
(34)

A(n) ____ is a list of homogenous elements in which the addition and deletion of elements occurs only at one end.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(36)

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

(Multiple Choice)
5.0/5
(38)

The postfix expression 3 5 + 2 ; 6 - = will generate an error, because it ____.

(Multiple Choice)
4.9/5
(34)

A stack is a(n) ____ data structure.

(Multiple Choice)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(32)

The bottom element of the stack is the last element added to the stack.

(True/False)
4.8/5
(35)

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

(Short Answer)
4.8/5
(41)

In a queuing system, every customer has a customer number, arrival time, ____________________ time, transaction time, and departure time.

(Short Answer)
4.8/5
(42)

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

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

Filters

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