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 1–5 of 24

Q1GATE 2026 (Session 2)1 markMCQ−0.33 if wrong
In the context of DBMS, consider the two sets T\mathbf{T} and S\mathbf{S} given below.

TSI: Logical schemaL: ViewsII: Physical schemaM: File organization and indexesIII: External schemaN: Relations\begin{array}{|l|l|} \hline \quad\quad\quad\textbf{T} & \quad\quad\quad\textbf{S} \\ \hline \text{I: Logical schema} & \text{L: Views} \\ \text{II: Physical schema} & \text{M: File organization and indexes} \\ \text{III: External schema} & \text{N: Relations} \\ \hline \end{array}

Which one of the following is the correct match from T\mathbf{T} to S\mathbf{S} ?

Q2GATE 2026 (Session 2)2 marksMCQ−0.67 if wrong
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 index. Consider the following two statements.

S1\text{S1}: A hash index must be a dense index
S2\text{S2}: A B+B^{+} tree index can be a sparse index

Which one of the following options is correct?

Q3GATE 2024 (Session 2)1 markMSQ
Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?

One or more options are correct.

Q4GATE 20232 marksNAT
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 the primary key occupies 15 bytes. The data file is block-aligned in that each data record is fully contained within a block. The database is indexed by a primary index file, which is also stored as a block-aligned ordered file. The figure below depicts this indexing scheme.
Data File Primary Key (15 Bytes) Other Fields (85 Bytes) Index File Block Anchor Primary Key Block Pointer
Suppose the block size of the file system is 1024 bytes, and a pointer to a block occupies 5 bytes. The system uses binary search on the index file to search for a record with a given key. You may assume that a binary search on an index file of bb blocks takes ⌈log⁡2b⌉\left \lceil \log_2 b \right \rceil block accesses in the worst case.
Given a key, the number of block accesses required to identify the block in the data file that may contain a record with the key, in the worst case, is _____

Q5GATE 2021 (Session 1)1 markMSQ
Consider a linear list based directory implementation in a file system. Each directory is a list of nodes, where each node contains the file name along with the file metadata, such as the list of pointers to the data blocks. Consider a given directory foo.

Which of the following operations will necessarily require a full scan of foo for successful completion?

One or more options are correct.

Keep practising

Topics in Databases

All CS topics ›