Vidyalelo
Data Structure · all questions

Binary Search Trees(B Tree)
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

275

Questions

3/14

Page

Pick an option on a question to see the right answer and solution.

In a Binary Search Tree (BST), how can you find the depth of a particular node?

Select an option to see the answer and solution.

What is the typical use case for a Binary Search Tree (BST) in computing?

Select an option to see the answer and solution.

What is the result of an inorder traversal of a Binary Search Tree (BST)?

Select an option to see the answer and solution.

How do you handle duplicate values in a Binary Search Tree (BST) if duplicates are allowed?

Select an option to see the answer and solution.

In a Binary Search Tree (BST), what does the term "node height" refer to?

Select an option to see the answer and solution.

What is the space complexity of the in-order traversal in the recursive fashion? (d is the tree depth and n is the number of nodes)

Select an option to see the answer and solution.

Consider a situation of writing a binary tree into a file with memory storage efficiency in mind, is array representation of tree is good?

Select an option to see the answer and solution.

Which of the following is an application of Red-black trees and why?

Select an option to see the answer and solution.

What is the worst case analysis of an AA-Tree?

Select an option to see the answer and solution.

Select the code snippet which performs in-order traversal.

Options are not available for this question.

Select an option to see the answer and solution.

What is the priority of a null node?

Select an option to see the answer and solution.

Why to prefer red-black trees over AVL trees?

Select an option to see the answer and solution.

A self - balancing binary search tree can be used to implement . . . . . . . .

Select an option to see the answer and solution.

What output does the below pseudo code produces?
Tree_node function(Tree_node x)
{
    Tree_node y = x.left;
    x.left = y.right;
    y.right = x;
    return y;
}

Select an option to see the answer and solution.

What is a Cartesian tree?

Select an option to see the answer and solution.

To obtain a prefix expression, which of the tree traversals is used?

Select an option to see the answer and solution.

What is the special property of red-black trees and what root should always be?

Select an option to see the answer and solution.

Find the postorder traversal of the binary tree shown below.
Binary Search Trees(B Tree) mcq question image

Select an option to see the answer and solution.

In a full binary tree if number of internal nodes is I, then number of leaves L are?

Select an option to see the answer and solution.

Several other operations like union set difference and intersection can be done in treaps.

Select an option to see the answer and solution.