Exam 19: Binary Trees
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
The number of nodes in a binary tree is the number of nodes in its left subtree plus the number of nodes in its right subtree.
Free
(True/False)
4.9/5
(44)
Correct Answer:
False
Every node in a binary tree can have pointers to
Free
(Multiple Choice)
4.9/5
(44)
Correct Answer:
D
The width of a tree is the largest number of nodes at the same level.
Free
(True/False)
4.8/5
(34)
Correct Answer:
True
An operation that can be performed on a binary search tree is
(Multiple Choice)
4.8/5
(40)
In a binary search tree where all the stored values are different, the node holding the largest value cannot have two children.
(True/False)
4.8/5
(32)
In a binary search tree, all nodes to the right of a node hold values greater than the node's value.
(True/False)
4.8/5
(37)
Inorder, preorder, and postorder traversals can be accomplished using
(Multiple Choice)
4.8/5
(38)
The smallest number of levels that a binary tree with three nodes can have is two.
(True/False)
5.0/5
(48)
The preorder method of traversing a binary tree involves processing the root node's data, traversing the left subtree, and then traversing the right subtree.
(True/False)
4.8/5
(35)
If a node has no successor, the corresponding pointer is set to
(Multiple Choice)
4.8/5
(37)
Output will be the same if you use inorder, postorder, or preorder traversals to print the values stored in a binary tree.
(True/False)
4.8/5
(39)
The main difference between a binary tree and a linked list is that
(Multiple Choice)
4.9/5
(34)
Binary trees are commonly used to organize key values that index database records.
(True/False)
4.8/5
(34)
There exists a binary tree with a hundred nodes, but only one leaf.
(True/False)
4.8/5
(37)
Deleting a leaf node from a binary search tree is not difficult. Deleting a non- leaf node requires several steps.
(True/False)
4.9/5
(33)
A binary tree can be created using a structure containing a data value and
(Multiple Choice)
4.9/5
(42)
Showing 1 - 20 of 37
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)