Exam 17: Stacks and Queue
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures Ii Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes44 Questions
Exam 13: Operator Overloading and Templates41 Questions
Exam 14: Exception Handling43 Questions
Exam 15: Recursion43 Questions
Exam 16: Linked Lists40 Questions
Exam 17: Stacks and Queue43 Questions
Exam 18: Searching and Sorting Algorithms40 Questions
Exam 19: Binary Trees43 Questions
Exam 20: Graph Algorithms48 Questions
Exam 21: Standard Template Library41 Questions
Select questions type
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:
False
What is the output of the following code? 

Free
(Multiple Choice)
4.8/5
(42)
Correct Answer:
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:
C
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)
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)
A stack can be implemented as either a(n) ____ or a linked structure.
(Multiple Choice)
4.9/5
(36)
The postfix expression 3 5 + 2 ; 6 - = will generate an error, because it ____.
(Multiple Choice)
4.9/5
(34)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)