File System: GATE CS Previous Year Questions

File System · Databases

24 questions · asked in 16 of 27 years (2000–2026)

MCQ 17 · MSQ 2 · NAT 51-mark 18 · 2-mark 6

2000Questions per year2026

Questions 16–20 of 24

Q16GATE 20061 markMCQ−0.33 if wrong
In a database file structure, the search key field is 9 bytes long, the block size is 512 bytes, a record pointer is 7 bytes and a block pointer is 6 bytes. The largest possible order of a non-leaf node in a B+ tree implementing this file structure is

Q17GATE 20051 markMCQ−0.33 if wrong
In a computer system, four files of size 11050 bytes, 4990 bytes, 5170 bytes and 12640 bytes need to be stored. For storing these files on disk, we can use either 100 byte disk blocks or 200 byte disk blocks (but can't mix block sizes). For each block used to store a file, 4 bytes of bookkeeping information also needs to be stored on the disk. Thus, the total space used to store a file is the sum of the space taken to store the file and the space taken to store the book keeping information for the blocks allocated for storing the file. A disk block can store either bookkeeping information for a file or data from a file, but not both. What is the total space required for storing the files using 100 byte disk blocks and 200 byte disk blocks respectively?

Q18GATE 20051 markMCQ−0.33 if wrong
A B-Tree used as an index for a large database table has four levels including the root node. If a new key is inserted in this index, then the maximum number of nodes that could be newly created in the process are

Q19GATE 20051 markMCQ−0.33 if wrong
Which one of the following is a key factor for preferring B+B^{+} - trees to binary search trees for indexing database relations?

Q20GATE 20041 markMCQ−0.33 if wrong
Consider a table T in a relational database with a key field K. A B-tree of order p is used as an access structure on K, where p denotes the maximum number of tree pointers in a B-tree index node. Assume that K is 10 bytes long; disk block size is 512 bytes; each data pointer PDP_D is 8 bytes long and each block pointer PBP_B is 5 bytes long. In order for each B-tree node to fit in a single disk block, the maximum value of p is

Keep practising

Topics in Databases

All CS topics ›