File Organization and Indexing: GATE DA Previous Year Questions

File Organization and Indexing · Database Management and Warehousing

3 questions · asked in 2 of 3 years (2024–2026)

MCQ 1 · MSQ 1 · NAT 11-mark 1 · 2-mark 2

2024Questions per year2026

Questions 1–3 of 3

Q1GATE 20261 markNAT
In a relational database, a B+{B}+ Tree Index is to be constructed for a relation on a key field. In a B+\text{B+} Tree, a Node Pointer points to a sub-tree and a Data Record Pointer points to a block of database records.

Let, Node size =4096=4096 bytes, Node Pointer size =10=10 bytes, Search Key Field size =11=11 bytes and Data Record Pointer size =12= 12 bytes.

The maximum number of Node Pointers that can be present in a non-leaf node of the B+\text{B+} Tree is ________. (Answer in integer)

Q2GATE 20262 marksMCQ−0.67 if wrong
Consider a B+ Tree where the maximum number of key values in each leaf node is 22 and the maximum number of pointers in each non-leaf node is 33. 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 33 in the given B+ Tree?
5 8 1 5 7 8 9 12 NULL

Q3GATE 20242 marksMSQ
An OTT company is maintaining a large disk-based relational database of differe nt movies with the following schema:

Movie(ID‾,CustomerRating)Movie(\underline{ID}, CustomerRating)
Genre(ID‾,Name)Genre (\underline{ID}, Name)
Movie_Genre(MovieID‾,GenreID‾)Movie\_Genre(\underline{MovieID}, \underline{GenreID})

Consider the following SQL query on the relation database above:

SELECT * 
FROM Movie, Genre, Movie_Genre 
WHERE  
 Movie.CustomerRating > 3.4 AND 
 Genre.Name = "Comedy" AND 
 Movie_Genre.MovieID = Movie.ID AND 
 Movie_Genre.GenreID = Genre.ID; 
This SQL query can be sped up using which of the following indexing options?

One or more options are correct.

Keep practising

Topics in Database Management and Warehousing

All DA topics ›