Exam 19: Binary Trees
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
Three lines at the end of an arrow in the diagram of a binary tree indicate that the subtree ____.
(Multiple Choice)
4.8/5
(43)
In copying a binary tree,if you use just the value of the pointer of the root node,you get a ____ copy of the data.
(Multiple Choice)
4.9/5
(43)
The operations to do inorder,preorder,and postorder traversals of a binary search tree are the same as those for a binary tree.
(True/False)
4.9/5
(38)
The ____________________ of a binary tree is the number of nodes on the longest path from the root to a leaf.
(Short Answer)
4.9/5
(29)
A pointer to the root node of the binary tree is stored outside the binary tree in a pointer variable,usually called the ____.
(Multiple Choice)
4.9/5
(35)
When traversing a binary tree with the pointer current,the pointer current is initialized to ____.
(Multiple Choice)
4.8/5
(30)
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.8/5
(38)
After deleting the desired item from a binary search tree,the resulting tree must be a binary search tree.
(True/False)
4.9/5
(33)
The ____________________ of a path in a binary tree is the number of branches on that path.
(Short Answer)
4.8/5
(36)
Each link in a binary tree node points to a(n)____ of that node.
(Multiple Choice)
4.8/5
(38)
The search function searches the binary search tree for a given item.If the item is found in the binary search tree,it returns ____.
(Multiple Choice)
4.9/5
(44)
In a binary search tree,the data in each node is ____ the data in the left child.
(Multiple Choice)
4.7/5
(37)
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
(34)
In C++,a function name without any parentheses is considered a pointer to the function.
(True/False)
4.8/5
(37)
For classes with pointer data members,you must explicitly overload the assignment operator and include the destructor.
(True/False)
4.8/5
(41)
After inserting an item in a binary search tree,the resulting binary tree must be a(n)____________________.
(Short Answer)
4.9/5
(38)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)