Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Data Structures Using C++
Quiz 11: Binary Trees and B-Trees
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Question 1
True/False
When data is being organized, a programmer's highest priority is to organize it in such a way that item insertion, deletion, and lookups (searches) are fast.
Question 2
True/False
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.
Question 3
True/False
In an array, item insertion (especially if the array is sorted) and item deletion can be very time consuming, especially if the list size is very large.
Question 4
True/False
Item insertion and deletion in a linked list requires significant data movement.
Question 5
True/False
A sequential search is good only for very small lists because the average search length of a sequential search is half the size of the list.
Question 6
True/False
Every node in a binary tree has at most three children.
Question 7
True/False
A binary tree is a dynamic data structure.
Question 8
True/False
After inserting an item in a binary search tree, the resulting binary tree must also be a binary search tree.
Question 9
True/False
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.
Question 10
True/False
In a preorder traversal of a binary tree, after visiting a node and before moving to the right subtree, we must save a pointer to the node so that after visiting the right subtree, we can visit the left subtree.
Question 11
True/False
As in the case of an inorder traversal, in a postorder traversal, the first node visited is the rightmost node of the binary tree.
Question 12
True/False
To specify a function as a formal parameter to another function, we specify the function type, followed by the function name as a pointer, followed by the parameter types of the function.
Question 13
True/False
The performance of the search algorithm on a binary search tree depends on how large the binary tree is.
Question 14
True/False
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.
Question 15
True/False
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.