Exam 19: Binary Trees
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
The operations to do inorder, preorder, and postorder traversals of a binary search tree are the same as those for a binary tree.
Free
(True/False)
4.8/5
(41)
Correct Answer:
True
After deleting the desired item from a binary search tree, the resulting tree must be a binary search tree.
Free
(True/False)
4.9/5
(29)
Correct Answer:
True
The sequence of operations in a postorder traversal is ____.
Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
B
The most common operation performed on a binary tree is a(n) ____.
(Multiple Choice)
5.0/5
(38)
In addition to the inorder, preorder, and postorder traversals, a binary tree can also be traversed level-by-level, which is also known as ____________________ traversal.
(Short Answer)
4.9/5
(45)
Consider that A is a binary tree, C and D are the subtrees of A.Which of the following statements is always true?
(Multiple Choice)
4.8/5
(38)
The key of the right child below the root node of a search binary tree is 40.The value in the root node could be ____.
(Multiple Choice)
4.9/5
(37)
The item search, insertion, and deletion operations all require the binary tree to be traversed.
(True/False)
4.9/5
(31)
The three traversal algorithms discussed for binary trees are ____, ____, and ____.
(Multiple Choice)
4.9/5
(32)
The listing of the nodes produced by the preorder traversal of a binary tree is called the ____________________.
(Short Answer)
4.9/5
(34)
Each link in a binary tree node points to a(n) ____ of that node.
(Multiple Choice)
4.7/5
(33)
In a(n) ____________________ traversal, the binary tree is traversed as follows:1.Traverse the left subtree
2.Visit the node
3.Traverse the right subtree
(Short Answer)
4.9/5
(33)
The listing of the nodes produced by the postorder traversal of a binary tree is called the ____.
(Multiple Choice)
4.9/5
(28)
To delete an item from the binary search tree, you must do the following:1.Find the node containing the item (if any) to be deleted.
2.Delete the node.
(True/False)
4.9/5
(35)
When a class object is passed by value, the ____________________ constructor copies the value of the actual parameters into the formal parameters.
(Short Answer)
4.8/5
(41)
Showing 1 - 20 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)