The GATE Grind

GATE Databases: File Organization and Indexing (B and B+ Trees) – Previous Year Questions

10 GATE previous year questions on File Organization and Indexing (B and B+ Trees) (Databases, Computer Science) with answers and explanations, from every paper.

  1. GATE 2015 CS Q32 (1 mark, Multiple choice) – A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in some index. Then that index is…
  2. GATE 2019 CS Q24 (1 mark, Multiple choice) – Which one of the following statements is NOT correct about the B+ tree data structure used for creating an index of a relational database table?
  3. GATE 2026 CS (CS2) Q46 (2 marks, Multiple choice) – An index in a DBMS is said to be dense if an index entry appears for every search-key value in the indexed file. Otherwise, it is called a sparse…
  4. GATE 2025 CS (CS2) Q57 (2 marks, Numerical answer) – In a B+-tree where each node can hold at most four key values, a root to leaf path consists of the following nodes: A = (49, 77, 83, -), B = (7, 19,…
  5. GATE 2025 CS (CS1) Q21 (1 mark, Multiple select) – Consider the following B+ tree with 5 nodes, in which a node can store at most 3 key values. The value 23 is now inserted in the B+ tree. Which of the…
  6. GATE 2024 CS (CS2) Q26 (1 mark, Multiple select) – Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
  7. GATE 2024 CS (CS1) Q21 (1 mark, Multiple choice) – In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?
  8. GATE 2023 CS Q62 (2 marks, Numerical answer) – Consider a database of fixed-length records, stored as an ordered file. The database has 25,000 records, with each record being 100 bytes, of which…
  9. GATE 2021 CS Q57 (2 marks, Multiple select) – Consider a dynamic hashing approach for 4-bit integer keys: (1) There is a main hash table of size 4. (2) The 2 least significant bits of a key are…
  10. GATE 2020 CS Q64 (2 marks, Numerical answer) – Consider a database implemented using B+ tree for file indexing and installed on a disk drive with block size of 4 KB. The size of search key is 12…