Exam 19: Custom Templatized Data Structures
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
Select the incorrect statement. Binary search trees (regardless of the order in which the values are inserted into the tree):
Free
(Multiple Choice)
4.8/5
(33)
Correct Answer:
C
Which of the following statements about stacks is incorrect?
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
B
Which of the following tasks would a binary search tree not be well suited for?
(Multiple Choice)
4.9/5
(33)
The pointer member in a self-referential class is referred to as a:
(Multiple Choice)
4.9/5
(40)
How many pointers are contained as data members in the nodes of a circular, doubly linked list of integers with five nodes?
(Multiple Choice)
4.8/5
(37)
__________ is not an advantage of linked lists when compared to arrays.
(Multiple Choice)
4.9/5
(33)
Which data structure represents a waiting line and limits insertions to be made at the back of the data structure and limits removals to be made from the front?
(Multiple Choice)
4.8/5
(35)
A queue performs the following commands (in pseudo-code): enqueue 4, 6, 8, 3, 1
Dequeue three elements
Enqueue 3, 1, 5, 6
Dequeue two elements
What number is now at the front of the queue?
(Multiple Choice)
4.8/5
(31)
What kind of linked list begins with a pointer to the first node, and each node contains a pointer to the next node, and the pointer in the last node points back to the first node?
(Multiple Choice)
4.8/5
(40)
A linked list has the functions insertAtFront, removeFromFront, insertAtBack and removeFromBack, which perform operations on nodes exactly as their names describe. Which two functions would most naturally model the enqueue and dequeue operations, respectively, of a queue?
(Multiple Choice)
4.8/5
(37)
A stack is initially empty, then the following commands are performed: push 5
Push 7
Pop
Push 10
Push 5
Pop
Which of the following is the correct stack after those commands (assume the top of the stack is on the left)?
(Multiple Choice)
4.9/5
(34)
For a non-empty linked list, select the code that should appear in a function that adds a node to the end of the list. newPtr is a pointer to the new node to be added and lastPtr is a pointer to the current last node. Each node contains a pointer nextPtr.
(Multiple Choice)
4.8/5
(38)
If you add the following nodes to a binary search tree in the order they appear (left-to-right): 6 34 17 19 16 10 23 3
What will be the output of a postorder traversal of the resulting tree?
(Multiple Choice)
5.0/5
(41)
If you have a 1000-element balanced binary search tree, what is the maximum number of comparisons that may be needed to find an element in the tree?
(Multiple Choice)
4.9/5
(40)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)