Storage & Indexing
57 past exam problems with worked solutions.
Practise them on GATE DA →
Indexing (B-trees, B+ trees, Hash Indexing)
- GATE DA 2024: An OTT company is maintaining a large disk-based relational database of differe nt movies with the following schema:…
- GATE DA 2026: In a relational database, a B+ Tree Index is to be constructed for a relation on a key field. In a B+ Tree, a Node…
- UGC-NET Dec 2013: For any B-tree of minimum degree t ≥ 2, every node other than the root must have at least ____ keys and every node can…
- UGC-NET Jun 2014: The upper bound and lower bound for the number of leaves in a B-tree of degree K with height h is given by:
- GATE DA 2026: Consider a B+ tree in which a leaf node holds at most 2 key values and a non-leaf node holds at most 3 pointers. The…
- GATE CS 2023: Consider a database of fixed-length records, stored as an ordered file. The database has 25,000 records, with each…
- GATE CS 2020: Consider a database implemented using B+ tree for file indexing and installed on a disk drive with block size of 4 KB.…
- GATE CS 2019: Which one of the following statements is NOT correct about the B^+ tree data structure used for creating an index of a…
- ISRO 2018: Which of the following is dense index?
- ISRO 2018: in a file which contains 1 million records and the order of the tree is 100, then what is the maximum number of nodes…
- ISRO 2016: A clustering index is defined on the fields which are of type
- ISRO 2015: Given a block can hold either 3 records or 10 key pointers. A database contains n records, then how many blocks do we…
- GATE CS 2015 · Set-3: Consider a B+ tree in which the search key is 12 bytes long, block size is 1024 bytes, record pointer is 10 bytes long…
- GATE CS 2015 · Set-1: A file is organized so that the ordering of data records is the same as or close to the ordering of data entries in…
- GATE CS 2008: Consider a file of 16384 records. Each record is 32 bytes long and its key field is of size 6 bytes. The file is…
- GATE IT 2006: In a database file structure, the search key field is 9 bytes long, the block size is 512 bytes, a record pointer is 7…
- GATE CS 2005: Which one of the following is a key factor for preferring B^+ - trees to binary search trees for indexing database…
- GATE CS 2004: The order of an internal node in a B+ tree index is the maximum number of children it can have. Suppose that a child…
- GATE CS 2002: A B+-tree index is to be built on the Name attribute of the relation STUDENT. Assume that all student names are of…
- GATE CS 2002: In the index allocation scheme of blocks to a file, the maximum possible size of the file depends on
- GATE CS 1998: There are five records in a database. hline textbf Name textbf Age textbf Occupation Category; hline Rama 27 CON A;…
- GATE CS 2024 · Set-1: In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following…
- GATE CS 2021 · Set-1: Consider a dynamic hashing approach for 4-bit integer keys: 1. There is a main hash table of size 4. 2. The 2 least…
- ISRO 2015: If a node has K children in B tree, then the node contains exactly _____ keys.
- GATE CS 2009: The following key values are inserted into a B+ tree in which the order of the internal nodes is 3, and that of the…
- GATE CS 2007: Consider a hash table of size seven, with starting index zero, and a hash function (3x + 4)mod7. Assuming the hash…
File Organization & Data Types
- UGC-NET Jan 2017: If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m, where…
- UGC-NET Dec 2015: The hash function used in double hashing is of the form:
- UGC-NET Jun 2014: Searching for an element in the hash table requires O(1) time for the _________time, whereas for direct addressing it…
- UGC-NET Jun 2014: If h is chosen from a universal collection of hash functions and is used to hash n keys into a table of size m, where…
- UGC-NET Jun 2015: Consider a hash table of size m=100 and the hash function h(k)=floor (m(kA mod 1)) for A=frac (√(5)-1)2 = 0.618033.…
- GATE CS 2024 · Set-2: Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?
- ISRO 2017: Which of these is characteristic of RAID 5?
- GATE CS 2017 · Set-2: In a B^+ tree, if the search -key value is 8 bytes long, the block size is 512 bytes and the block pointer size is 2…
- ISRO 2016: The order of a leaf node in a B^+ - tree is the maximum number of (value, data record pointer) pairs it can hold.…
- ISRO 2013: Embedded pointer provides
- ISRO 2013: The physical location of a record determined by a formula that transforms a file key into a record location is
- ISRO 2013: Calculate the order of leaf ( P_leaf) and non leaf (P) nodes of a B^+ tree based on the information given below.…
- GATE CS 2000: B^+ -trees are preferred to binary trees in databases because
- GATE CS 2026 · Set-2: The keys 5,28,19,15,26,33,12,17,10 are inserted into a hash table using the hash function h(k)=k bmod 9. The…
- GATE CS 2026 · Set-1: Consider a hash table P[0,1, …, 10] that is initially empty. The hash table is maintained using open addressing with…
- GATE CS 2025 · Set-1: In a double hashing scheme, h_1(k) = k mod 11 and h_2(k) = 1 + (k mod 7) are the auxiliary hash functions. The size m…
- GATE CS 2022: Suppose we are given n keys, m hash table slots, and two simple uniform hash functions h_1 and h_2. Further suppose…
- ISRO 2020: In linear hashing, if blocking factor bfr, loading factor i and file buckets N are known, the number of records will be
- GATE CS 2020: Consider a double hashing scheme in which the primary hash function is h_1(k)=k mod 23, and the secondary hash…
- GATE CS 2015 · Set-3: Given a hash table T with 25 slots that stores 2000 elements, the load factor α for T is ____________. rule2.5cm0.4pt
- ISRO 2014: Consider a 13 element hash table for which f(key)=key mod 13 is used with integer keys. Assuming linear probing is…
- GATE CS 2014 · Set-3: Consider a hash table with 100 slots. Collisions are resolved using chaining. Assuming simple uniform hashing, what is…
- GATE CS 2014 · Set-1: Consider a hash table with 9 slots. The hash function is h(k)=k mod 9. The collisions are resolved by chaining. The…
- GATE CS 2010: A hash table of length 10 uses open addressing with hash function h(k) = k bmod 10, and linear probing. After…
- GATE CS 2010: A hash table of length 10 uses open addressing with hash function h(k) = k bmod 10, and linear probing. After…
- GATE CS 2010: Consider a B+-tree in which the maximum number of keys in a node is 5. What is the minimum number of keys in any…
- GATE CS 2009: The keys 12, 18, 13, 2, 3, 23, 5 and 15 are inserted into an initially empty hash table of length 10 using open…
- GATE IT 2007: Consider a hash function that distributes keys uniformly. The hash table size is 20. After hashing of how many keys…
- GATE IT 2005: A hash table contains 10 buckets and uses linear probing to resolve collisions. The key values are integers and the…
- GATE CS 2004: Given the following input (4322, 1334, 1471, 9679, 1989, 6171, 6173, 4199) and the hash function x mod 10, which of…
- GATE CS 1996: An advantage of chained hash table (external hashing) over the open addressing scheme is
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com