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
(85)
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
(91)
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
(69)
Correct Answer:
Verified

C

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

(Multiple Choice)
4.7/5
(75)

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

(Multiple Choice)
4.9/5
(80)

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

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

(True/False)
4.8/5
(82)

Popping an element from an empty stack is called ____.

(Multiple Choice)
4.8/5
(82)

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

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

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

(Multiple Choice)
4.9/5
(93)

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

(Multiple Choice)
4.9/5
(78)

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

(Multiple Choice)
5.0/5
(78)

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

(Multiple Choice)
4.9/5
(73)

A stack is a(n) ____ data structure.

(Multiple Choice)
4.8/5
(77)

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

(Multiple Choice)
4.9/5
(70)

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

(True/False)
4.7/5
(76)

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

(Short Answer)
4.8/5
(88)

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

(Short Answer)
4.9/5
(82)

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

(Multiple Choice)
4.7/5
(81)
Showing 1 - 20 of 43
close modal

Filters

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