What type of tree is used in databases for indexing?
A. B-Tree
B. AVL Tree
C. Red-Black Tree
D. Binary Heap
Select an option to see the answer and solution.
What is the primary use of a Trie data structure?
A. Efficiently storing and retrieving strings, especially for prefix searches.
B. Performing quick sort operations.
C. Managing hierarchical data.
D. Performing binary search.
Select an option to see the answer and solution.
In a B-Tree, what is the minimum number of keys in a non-root node?
A. ⌈t/2⌉ - 1 where t is the minimum degree
B. ⌈t/2⌉
C. ⌈t/2⌉ + 1
D. t - 1
Select an option to see the answer and solution.
What is the primary benefit of using a B+ Tree over a B-Tree?
A. B+ Trees have all values stored in leaf nodes, which improves range queries.
B. B+ Trees use less memory.
C. B+ Trees are simpler to implement.
D. B+ Trees guarantee a balanced height.
Select an option to see the answer and solution.
Which property is maintained in a Red-Black Tree to ensure balanced height?
A. Each path from a node to its descendant leaves has the same number of black nodes.
B. The tree is always a complete binary tree.
C. The root node is always black.
D. All nodes have at most two children.
Select an option to see the answer and solution.
Who is the ancestor of Node G?
Select an option to see the answer and solution.
Bigger the query rectangle the better is the query efficiency.
Select an option to see the answer and solution.
Consider the given syntax tree. Assume that division has the lowest precedence than addition, subtraction and multiplication. Addition and subtraction have the same precedence but more than multiplication. Which of the following expression can be given by the following syntax tree?
A. [5 / (p + q) * (q - r)]
B. [5 * (p + q) / (q - r)]
C. [5 + (p + q) * (q - r)]
D. [5 / (p + q) + (q - r)]
Select an option to see the answer and solution.
What is the depth of the root node of K-ary tree?
Select an option to see the answer and solution.
In an expression tree algorithm, what happens when an operand is encountered?
A. create one node pointing to a stack
B. pop the nodes from the stack
C. clear stack
D. merge all the nodes
Select an option to see the answer and solution.
How many extra nodes are there in Full K-ary tree than complete K-ary tree?
A. 1
B. 2
C. 3
D. Both have same number of nodes
Select an option to see the answer and solution.
What is the depth of the root node of the ternary tree?
Select an option to see the answer and solution.
What is the Height of the given ternary tree?
Select an option to see the answer and solution.
Who is descendant of Node B?
Select an option to see the answer and solution.
Which node is the Leaf node in the following K-ary tree?
Select an option to see the answer and solution.
Which node is the root node of the following ternary tree?
Select an option to see the answer and solution.
What will be the time complexity of delete operation if all the candidates are evenly spaced so that each bin has constant no. of candidates? (m = number of bins intersecting candidate intersects)
A. O(1)
B. O(m)
C. O(m2 )
D. O(log m)
Select an option to see the answer and solution.
How many properties will an equivalent relationship satisfy?
Select an option to see the answer and solution.
What is the size of Node B in given K-ary tree?
Select an option to see the answer and solution.
Which data structure is used in the syntax analysis phase of the compiler?
A. Tree
B. Stack
C. Linked List
D. Queue
Select an option to see the answer and solution.