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 ____________________ of a path in a binary tree is the number of branches on that path.
(Short Answer)
4.8/5
(26)
In a(n) ____________________ traversal, the binary tree is traversed as follows:1.Visit the node.
2.Traverse the left subtree.
3.Traverse the right subtree.
(Short Answer)
4.8/5
(36)
In a binary tree, the level of the children of the root node is ____.
(Multiple Choice)
4.8/5
(44)
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)
In a diagram of a binary tree, each node is represented as a(n) ____.
(Multiple Choice)
4.7/5
(43)
For classes with pointer data members, you must explicitly overload the assignment operator and include the destructor.
(True/False)
4.9/5
(38)
In a binary search tree, the data in each node is ____ the data in the left child.
(Multiple Choice)
4.9/5
(35)
Let T be a binary search tree with n nodes, in which n > 0.When T is linear, the search algorithm makes ____________________ key comparisons, in the unsuccessful case.
(Short Answer)
4.8/5
(39)
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.7/5
(41)
The ____ of a node in a binary tree is the number of branches on the path from the root to the node.
(Multiple Choice)
4.8/5
(33)
In the diagram of a binary tree, an arrow is called a(n) ____.
(Multiple Choice)
4.7/5
(35)
After inserting an item in a binary search tree, the resulting binary tree must be a(n) ____________________.
(Short Answer)
4.9/5
(35)
The ____________________ of a binary tree is the number of nodes on the longest path from the root to a leaf.
(Short Answer)
4.8/5
(41)
In C++, a function name without any parentheses is considered a pointer to the function.
(True/False)
4.8/5
(32)
Assume the key of the left child below the root node of a binary search tree is 30.The value in the root node could be ____.
(Multiple Choice)
4.7/5
(43)
When traversing a binary tree, the pointer current is initialized to ____.
(Multiple Choice)
4.8/5
(34)
A node in a binary tree is called a(n) ____ if it has no left and right children.
(Multiple Choice)
4.9/5
(40)
Showing 21 - 40 of 43
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)