File Systems: GATE CS Previous Year Questions

File Systems · Operating System

12 questions · asked in 10 of 27 years (2000–2026)

MCQ 8 · NAT 41-mark 8 · 2-mark 4

2000Questions per year2026

Questions 1–5 of 12

Q1GATE 2025 (Session 1)2 marksNAT
A disk of size 512M512M bytes is divided into blocks of 64K64K bytes. A file is stored in the disk using linked allocation. Each data block reserves 4 bytes to store the pointer to the next data block. The link part of the last data block contains a NULL pointer (also of 4 bytes). Suppose a file of 1M1M bytes needs to be stored in the disk. Assume, 1K=210,1M=2201K=2^{10}, 1M=2^{20}. The amount of space in bytes that will be wasted due to internal fragmentation is _________. (Answer in integer)

Q2GATE 20222 marksNAT
Consider two files systems A and B , that use contiguous allocation and linked allocation, respectively. A file of size 100 blocks is already stored in A and also in B. Now, consider inserting a new block in the middle of the file (between 50th and 51st50^{th} \text{ and }51^{st} block), whose data is already available in the memory. Assume that there are enough free blocks at the end of the file and that the file control blocks are already in memory. Let the number of disk accesses required to insert a block in the middle of the file in A and B are nAn_A and nBn_B, respectively, then the value of nA+nBn_A+n_B is

Q3GATE 20192 marksNAT
The index node (inode) of a Unix-like file system has 12 direct, one single-indirect and one double-indirect pointer The disk block size is 4 kB and the disk block addresses 32-bits long. The maximum possible file size is (rounded off to 1 decimal place) __________ GB.

Q4GATE 2017 (Session 2)1 markMCQ−0.33 if wrong
In a file allocation system, which of the following allocation schemes(s) can be used if no external fragmentation is allowed?
I. Contiguous
II. Linked
III. Indexed

Q5GATE 2014 (Session 2)1 markNAT
A FAT (file allocation table) based file system is being used and the total overhead of each entry in the FAT is 4 bytes in size. Given a 100x10610^{6} bytes disk on which the file system is stored and data block size is 10310^{3} bytes, the maximum size of a file that can be stored on this disk in units of 10610^{6} bytes is _______.

Keep practising

Topics in Operating System

All CS topics ›