Question 61
HardA B+ tree has order 101 (at most 101 children per internal node) and leaves hold up to 100 keys. With 3 levels of internal nodes above the leaves, about how many keys can it index?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
A B+ tree has order 101 (at most 101 children per internal node) and leaves hold up to 100 keys. With 3 levels of internal nodes above the leaves, about how many keys can it index?
About 30,000
About 10 billion
About 100 million
About 1 million
Sign up free to see the answer and a step-by-step explanation.
A table of 10 million rows has a B+ tree index with fan-out 200. About how many levels does the index need?
4
20
2
8
Sign up free to see the answer and a step-by-step explanation.
A disk block is 4 KB, each B+ tree key is 8 bytes and each pointer 8 bytes. What is the maximum fan-out of an internal node?
512
1,024
256
128
Sign up free to see the answer and a step-by-step explanation.
A composite index is on (country, city, age). Which query can use it for all three columns?
WHERE age > 30
WHERE country = 'IN' AND city = 'Pune' AND age > 30
WHERE city = 'Pune' AND age > 30
WHERE country = 'IN' OR age > 30
Sign up free to see the answer and a step-by-step explanation.
With an index on (a, b), why can the query WHERE a > 5 AND b = 3 not use b for seeking?
The index must be rebuilt
After a range on a, the matching b values are scattered across many a values
Indexes can't handle ranges
b is not in the index
Sign up free to see the answer and a step-by-step explanation.
A query selects 40% of a table's rows through a non-clustered index. Why might a full scan be faster?
Indexes are always slower
The index is unsorted
Scans use less memory
Each matching row may need a random page read, while a scan reads pages sequentially
Sign up free to see the answer and a step-by-step explanation.
What does a clustered index guarantee about rows with neighbouring key values?
They are stored physically close together, making range scans efficient
They are on different disks
They are deleted together
They are encrypted
Sign up free to see the answer and a step-by-step explanation.
In extendible hashing, what happens when a bucket with local depth less than the global depth overflows?
Only that bucket splits, and some directory pointers are redirected
The directory doubles
All buckets split
The insert fails
Sign up free to see the answer and a step-by-step explanation.
In linear hashing, which bucket is split when any bucket overflows?
The overflowing bucket
All buckets
The bucket pointed to by the split pointer, in round-robin order
The largest bucket
Sign up free to see the answer and a step-by-step explanation.
What is a bitmap index well suited to?
Columns with few distinct values in read-mostly analytic tables
Frequently updated columns
Free-text search
Primary keys with unique values
Sign up free to see the answer and a step-by-step explanation.