Week 12
Week 12
2) If a B+ tree of order 4 has a height of 3, what is the maximum number of keys it can
store?
a) 64
b) 80
c) 48
d) 60
3) Which of the following is true for a B+ tree but not for a B-tree?
a) It maintains sorted order of data
b) It has more space complexity
c) It supports better range queries
d) It does not allow duplicate keys
11) Which data structure is commonly used for indexing in Indexed Sequential Files?
a) Array
b) Linked List
c) B-Tree
d) Stack
13) What is the worst-case time complexity of inserting a key in a B-tree of order m and
height h?
a) O(h)
b) O(m)
c) O(log m n)
d) O(n)
14) What happens when a key is deleted from a leaf node in a B+ tree?
a) The key is simply removed without affecting the structure
b) The leaf node merges with another node if required
c) The root of the tree is deleted
d) A new node is added
17) What happens during deletion in a B-tree if a node has fewer than the minimum required
keys?
a) The node is deleted
b) A redistribution or merging of nodes occurs
c) The tree is reconstructed from scratch
d) Nothing changes
18) What is the time complexity of searching in a B-tree with n keys and order m?
a) O(n)
b) O(log m n)
c) O(m)
d) O(1)
19) Which of the following operations may cause a node to split in a B-tree?
a) Insertion
b) Deletion
c) Searching
d) Traversing
20) In a B-tree of order m, what is the maximum number of children a node can have?
a) m
b) m+1
c) m-1
d) 2m