Vidyalelo
Data Structure · all questions

Trees in Data Structures
practice.

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

173

Questions

5/9

Page

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

Assume +, -, *, / are usual arithmetic operator, + has highest precedence and right associative and -, *, / have equal precedence and left associative. What is the output of the expression 23 * 3 - 6 + 11 - 2 * 8 / 4?

Select an option to see the answer and solution.

Which node is the parent node of Node 6?
Trees in Data Structures mcq question image

Select an option to see the answer and solution.

What is the other name or Van Emde Boas Tree data structure?

Select an option to see the answer and solution.

On which abstract data type does van Emde Boas tree performs the operation?

Select an option to see the answer and solution.

Is Node A sibling of Node B in the given K-ary tree?
Trees in Data Structures mcq question image

Select an option to see the answer and solution.

Each level in a k-d tree is made of?

Select an option to see the answer and solution.

Suppose X is the starting symbol of the given grammar with the following transition rules. Compute the value of X as the root of the parse tree for the expression: 3 & 4 % 7.
X → X1 & B | B {X.value = X1.value + B.value, X.value = B.value}
B → B1 % D | D {B.value = B1.value * D.value, B.value = D.value}
D → num {D.value = num.value}

Select an option to see the answer and solution.

Only infix expression can be made into an expression tree.

Select an option to see the answer and solution.

Which nodes are the siblings of Node D of given ternary tree?
Trees in Data Structures mcq question image

Select an option to see the answer and solution.

What is the time complexity for finding a maximum and minimum integer in Van Emde Boas data structure?

Select an option to see the answer and solution.

Which operation find the value associated with a given key?

Select an option to see the answer and solution.

What is the height of a K-ary tree having only root node?

Select an option to see the answer and solution.

Which pattern is used to evaluate abstract syntax tree?

Select an option to see the answer and solution.

Reducing search space by eliminating irrelevant trees is known as?

Select an option to see the answer and solution.

How many child nodes does each node of Ternary Tree contain?

Select an option to see the answer and solution.

What is the size of the given ternary tree?
Trees in Data Structures mcq question image

Select an option to see the answer and solution.

Which of the following is the implementation of the ternary tree?

Select an option to see the answer and solution.

Which of the following is the name of the node having child nodes?

Select an option to see the answer and solution.

What will be the time complexity of query operation if all the candidates are evenly spaced so that each bin has constant no. of candidates? (k = number of bins query rectangle intersects)

Select an option to see the answer and solution.

A relation R on a set S, defined as x R y if and only if y R x. This is an example of?

Select an option to see the answer and solution.