GATE CS 2023 | Question 62

Databases › File Organization & Indexing · NAT · 2 marks · Answer: 6

  1. Question 62Databasesnat2 marks
    A primary-indexed ordered file has 25,000 fixed-length records of 100 bytes (primary key 15 bytes). Block size 1024 bytes, block pointer 5 bytes. Binary search on the index takes ceil(log2 b) accesses for b index blocks. The worst-case block accesses to find the block possibly containing a key is __________
    GATE CS 2023 Question 62 figure

    Answer: 6

    Solution

    Answer: 6 Records per data block , so data blocks . A primary (sparse) index has one entry per data block; each index entry bytes, so entries per index block . Index blocks . Binary search block accesses.

More GATE PYQ on File Organization & Indexing

All GATE CS Databases PYQ →

Attempt GATE CS 2023 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →