CommerceBinary Search TreesB Tree MCQs
Practice Binary Search TreesB Tree MCQs for competitive exams.
Binary Search TreesB Tree MCQs
Practice questions from this topic.
How many bits would a succinct binary tree occupy?
- A. n+O(n)
- B. 2n+O(n)
- C. n/2
- D. n
Correct Answer: B
Identify the reason which doesn't play a key role to use threaded binary trees?
- A. The storage required by stack and queue is more
- B. The pointers in most of nodes of a binary tree are NULL
- C. It is Difficult to find a successor node
- D. They occupy less size
Correct Answer: D
What are the applications of weight balanced tree?
- A. dynamic sets, dictionaries, sequences, maps
- B. heaps
- C. sorting
- D. storing strings
Correct Answer: A
Which is the simplest of all binary search trees?
- A. AVL tree
- B. Treap
- C. Splay tree
- D. Binary heap
Correct Answer: B
Which of the following traversing algorithm is not used to traverse in a tree?
- A. Post order
- B. Pre order
- C. Post order
- D. Randomized
Correct Answer: D
What is an AVL tree?
- A. a tree which is balanced and is a height balanced tree
- B. a tree which is unbalanced and is a height balanced tree
- C. a tree with three children
- D. a tree with atmost 3 children
Correct Answer: A
What is a weight balanced tree?
- A. A binary tree that stores the sizes of subtrees in nodes
- B. A binary tree with an additional attribute of weight
- C. A height balanced binary tree
- D. A normal binary tree
Correct Answer: A
Which of the following data structures can be efficiently implemented using height balanced binary search tree?
- A. sets
- B. priority queue
- C. heap
- D. both sets and priority queue
Correct Answer: D
Who invented treaps?
- A. Cecilia and Raimund
- B. Arne Andersson
- C. Donald Shell
- D. Harris and Ross
Correct Answer: A
Consider the pseudo code: int avl(binarysearchtree root): if(not root) return 0 left_tree_height = avl(left_of_root) if(left_tree_height== -1) return left_tree_height right_tree_height= avl(right_of_root) if(right_tree_height==-1) return right_tree_height Does the above code can check if a binary search tree is an AVL tree?
- A. yes
- B. no
Correct Answer: A
Is tango tree represented as a tree of trees.
- A. True
- B. False
Correct Answer: A
What should be the condition for the level of a left node?
- A. It should be less than or equal to that of its parent
- B. It should be greater than that of its parent
- C. It should be strictly less than that of its parent
- D. The level should be equal to one
Correct Answer: C