0
0
DBMS Theoryknowledge~5 mins

B-tree index structure in DBMS Theory - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a B-tree index structure in databases?
A B-tree index is a balanced tree data structure that helps databases find data quickly by keeping data sorted and allowing fast searches, insertions, and deletions.
Click to reveal answer
beginner
Why is a B-tree index called 'balanced'?
Because all leaf nodes are at the same depth, ensuring that the time to find any data is similar, which keeps search times fast and predictable.
Click to reveal answer
intermediate
How does a B-tree index improve database search performance?
It reduces the number of disk reads by organizing data in a tree where each node can have many children, so the database can skip large parts of data and find the target quickly.
Click to reveal answer
intermediate
What happens when a node in a B-tree index becomes full?
The node splits into two nodes and the middle key moves up to the parent node, keeping the tree balanced and maintaining efficient search times.
Click to reveal answer
beginner
Name two advantages of using a B-tree index in a database.
1. Fast data retrieval even with large datasets. 2. Maintains balance automatically to keep operations efficient.
Click to reveal answer
What does the 'B' in B-tree stand for?
ABinary
BBalanced
CBlock
DBasic
In a B-tree, what happens when a node is full and a new key needs to be inserted?
AThe node splits and the middle key moves up
BThe node is deleted
CThe tree becomes unbalanced
DThe key is ignored
Which of the following is a key benefit of using a B-tree index?
AFaster random data access
BSlower insertions
CFaster sequential scans
DNo need for disk storage
How are keys stored in a B-tree node?
AIn random order
BOnly the largest key
CSorted order
DOnly the smallest key
What is the main reason B-trees are used in databases instead of binary trees?
AB-trees use less memory
BB-trees are easier to implement
CBinary trees are unbalanced by design
DB-trees handle large blocks of data efficiently
Explain how a B-tree index keeps data balanced and why this is important for database performance.
Think about how the tree structure affects search time.
You got /4 concepts.
    Describe the process that occurs when inserting a new key into a full node in a B-tree index.
    Focus on how the tree adjusts to keep balance.
    You got /4 concepts.