Exam 18: Stacks and Queues
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 Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
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)
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)
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)