GATE 2026
65 questions
MCQ 33 · MSQ 14 · NAT 181-mark 30 · 2-mark 35
Questions 41–45 of 65
Consider a B+ Tree where the maximum number of key values in each leaf node is and the maximum number of pointers in each non-leaf node is . Let the content of the B+ Tree be as shown in the figure.
Which of the following options denotes the key value(s) stored in the root node after inserting a key value in the given B+ Tree?
Which of the following options denotes the key value(s) stored in the root node after inserting a key value in the given B+ Tree?
Answer: (A)
The root has three children: , and . Here a child holds all keys its separator, up to the next separator. The root and the leaves are both full already. The root can hold at most keys and pointers. Each leaf can hold at most keys.
Now insert . Since , the key goes into leaf . This leaf now becomes , which has keys, so it overflows. The leaf splits into on the left and on the right. The new separator goes up into the root. This is the largest key of the left piece, as per the "" convention.
The root was full, so it overflows too. It now holds with child pointers, but the maximum is pointers. So the root must split as well. For an internal node, the middle key is pushed up (not copied) into a new root above. The middle key is , from . The old root splits into two internal nodes. They hold and .
So the new root has only one key, .
Answer: 5
Now insert . Since , the key goes into leaf . This leaf now becomes , which has keys, so it overflows. The leaf splits into on the left and on the right. The new separator goes up into the root. This is the largest key of the left piece, as per the "" convention.
The root was full, so it overflows too. It now holds with child pointers, but the maximum is pointers. So the root must split as well. For an internal node, the middle key is pushed up (not copied) into a new root above. The middle key is , from . The old root splits into two internal nodes. They hold and .
So the new root has only one key, .
Answer: 5
Consider the given relations and . The relation has three columns and . The relation has three columns and . The relation has two columns and .
X
Y
Z
Consider the relational algebra expression
where denotes natural join operation.
Which of the following options is the correct output for the given expression?
X
Y
Z
Consider the relational algebra expression
where denotes natural join operation.
Which of the following options is the correct output for the given expression?
Answer: (D)
Step 1: Find (natural join on ): Take the pairs that appear in both tables: and . This gives . (The pair in has no matching row in .)
Now apply : row fails both conditions, so it is left out. Row satisfies , so it is kept. Result: , which is one row.
Step 2: Find (natural join on ): matches two times ( and ). matches one time (). ( and do not have matches in both tables.)
Now apply : it keeps and (both have ). It drops (because , which is not ).
Step 3: Join the two filtered results (common attributes ): the first filtered set has . The second set has and . None of the combinations match across the two sets, since the values are all different. So the final join gives no rows at all.
Answer: Zero rows
Now apply : row fails both conditions, so it is left out. Row satisfies , so it is kept. Result: , which is one row.
Step 2: Find (natural join on ): matches two times ( and ). matches one time (). ( and do not have matches in both tables.)
Now apply : it keeps and (both have ). It drops (because , which is not ).
Step 3: Join the two filtered results (common attributes ): the first filtered set has . The second set has and . None of the combinations match across the two sets, since the values are all different. So the final join gives no rows at all.
Answer: Zero rows
Consider the concept hierarchies as shown in the figure.
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
Which of the following options denotes the total number of possible data cuboids from these concept hierarchies?
Answer: (A)
Every concept hierarchy in the figure has levels (for example Year→Month→Day). If we also count the "ALL" level (fully summarized), each dimension has possible levels of aggregation.
There are independent dimensions (time, location, item). Each one gives possible aggregation levels. The total number of distinct data cuboids is the product over all dimensions:
Answer: 4³
There are independent dimensions (time, location, item). Each one gives possible aggregation levels. The total number of distinct data cuboids is the product over all dimensions:
Answer: 4³
Let and be two independent random variables. follows distribution and follows distribution.
Which of the following options is the variance of ?
Which of the following options is the variance of ?
Answer: (A)
Define . We have , so (when , with probability ) or (when , with probability ). So every time, whatever value takes. This gives .
and are independent, and . So:
Next,
Then
Answer: 100
and are independent, and . So:
Next,
Then
Answer: 100
Let
Which of the following is the value of
Which of the following is the value of
Answer: (A)
The sum is the CDF of a random variable , taken at its own mean. That is , where .
The Central Limit Theorem says that when is large, . The mean and the variance are both . If we take the CDF of this nearly normal distribution at its own mean, we get . The normal distribution has its median equal to its mean, so the probability is split evenly.
When , the approximation becomes exact:
Answer: 0.5
The Central Limit Theorem says that when is large, . The mean and the variance are both . If we take the CDF of this nearly normal distribution at its own mean, we get . The normal distribution has its median equal to its mean, so the probability is split evenly.
When , the approximation becomes exact:
Answer: 0.5