Exam 11: Binary Trees and B-Trees
Exam 1: Software Engineering Principles and C++ Classes42 Questions
Exam 2: Object-Oriented Design OOD and C++35 Questions
Exam 3: Pointers and Array-Based Lists45 Questions
Exam 4: Standard Template Library (STL) I47 Questions
Exam 5: Linked Lists44 Questions
Exam 6: Recursion36 Questions
Exam 7: Stacks44 Questions
Exam 8: Queues48 Questions
Exam 9: Searching and Hashing Algorithms49 Questions
Exam 10: Sorting Algorithms47 Questions
Exam 11: Binary Trees and B-Trees47 Questions
Exam 12: Graphs43 Questions
Exam 13: Standard Template Library (STL) II50 Questions
Select questions type
Because an AVL tree is a binary search tree, the search algorithm for an AVL tree is the same as the search algorithm for a binary search tree.
Free
(True/False)
4.7/5
(34)
Correct Answer:
True
In a preorder traversal of a binary tree, for each node, first the node is visited, then the right subtree is visited, and then the left subtree is visited.
Free
(True/False)
4.8/5
(40)
Correct Answer:
False
After inserting an item in a binary search tree, the resulting binary tree must also be a binary search tree.
Free
(True/False)
4.9/5
(31)
Correct Answer:
True
In a ____ the root has at least 2 children if it is not a leaf, and at most m children.
(Multiple Choice)
4.9/5
(34)
The class implementing the properties of a B-tree must, among others, implement the search, traversal, insertion, and deletion algorithms.
(True/False)
4.8/5
(37)
An ____ is a tree in which each node has at most m children.
(Multiple Choice)
5.0/5
(39)
Operations, such as finding the height, determining the number of nodes, checking whether the tree is empty, tree traversal, and so on, on AVL trees cannot be implemented the same way they are implemented on binary trees.
(True/False)
4.8/5
(38)
Because the insertion of an item might require the splitting of a node and moving the median key to the parent node, the simplest way to implement the insertion algorithm is to use ____.
(Multiple Choice)
4.8/5
(32)
Because an array is not a random access data structure, we cannot use a binary search to effectively find and retrieve an item from an array list.
(True/False)
4.8/5
(40)
Item insertion and deletion in a linked list requires significant data movement.
(True/False)
4.8/5
(34)
The item insertion, deletion, and lookup operations require that the binary tree be ____.
(Multiple Choice)
4.8/5
(36)
Each node should store the number of keys in the node, the records, and the pointer to subtrees.
(True/False)
4.8/5
(41)
The performance of the search algorithm on a binary search tree depends on how large the binary tree is.
(True/False)
4.9/5
(39)
When inserting into a B-tree, if the key is not in the tree, the search terminates at a ____.
(Multiple Choice)
4.8/5
(36)
The basic operations performed on a B-tree are search the tree, insert an item in the tree, delete an item from the tree, and ____.
(Multiple Choice)
4.7/5
(37)
The height of a perfectly balanced binary tree with n nodes is ____.
(Multiple Choice)
4.7/5
(33)
When inserting into a B-tree, if the key is already in the tree, you should output an error message.
(True/False)
4.8/5
(31)
To delete a node, we adjust one of the pointers of the ____.
(Multiple Choice)
4.7/5
(40)
One of the drawbacks of linked lists is that they must be processed ____.
(Multiple Choice)
4.9/5
(32)
Showing 1 - 20 of 47
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)