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 array representation of a stack, the stack is initialized simply by setting stackTop to ____________________.
(Short Answer)
4.8/5
(45)
When a stack is implemented as an array, the array is empty if the value of stackTop is ____.
(Multiple Choice)
4.8/5
(38)
The ____________________ constructor is called when a stack object is passed as a (value) parameter to a function.
(Short Answer)
4.8/5
(37)
The ____ element of the stack is the last element added to the stack.
(Multiple Choice)
4.9/5
(42)
If you try to add a new item to a full stack, the resulting condition is called a(n) ____.
(Multiple Choice)
4.7/5
(38)
The postfix expression 2 4 6 * + 15 - 21 7 / + = evaluates to ____.
(Multiple Choice)
4.8/5
(39)
In the array representation of a stack, if a value called stackTop indicates the number of elements in the stack, then stackTop-1 points to the top item of the stack.
(True/False)
4.8/5
(32)
The following expression (a - b) * (c + d) is equivalent to which of the following postfix expressions?
(Multiple Choice)
4.9/5
(46)
You can perform the operation ____ to remove the top element from the stack.
(Multiple Choice)
4.8/5
(44)
A technique in which one system models the behavior of another system is called ____.
(Multiple Choice)
4.7/5
(38)
The addition and deletion of elements of a stack occurs only at the ____ of the stack.
(Multiple Choice)
4.8/5
(39)
The postfix expression 5 6 + 4 * 10 5 / - = evaluates to ____.
(Multiple Choice)
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
(47)
The expression a + b is the same in both infix notation and postfix notation.
(True/False)
4.9/5
(39)
In ____________________ notation, operators are written after the operands.
(Short Answer)
4.9/5
(41)
The postfix expression 14 2 5 + = will generate an error, because ____.
(Multiple Choice)
4.9/5
(39)
The elements at the ____________________ of the stack have been in the stack the longest.
(Short Answer)
4.9/5
(33)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)