GateAI
File Systems

GATE CSE 2012 · Q41

MCQ2 marksMedium

Time

A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 Bytes and the size of each disk block address is 8 Bytes. The maximum possible file size in this file system is

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: B) 35 KBytes

File Systems
  1. Block size =128 Bytes= 128\text{ Bytes}.

  2. Address size =8 Bytes= 8\text{ Bytes}.

  3. Number of addresses per disk block:

    N=1288=16N = \frac{128}{8} = 16
  4. Calculate the maximum number of blocks addressable by a file descriptor:

    • Direct blocks:8 blocks8\text{ blocks}

    • Single indirect blocks:1×16=16 blocks1 \times 16 = 16\text{ blocks}

    • Double indirect blocks:1×16×16=256 blocks1 \times 16 \times 16 = 256\text{ blocks}

  5. Total number of blocks =8+16+256=280 blocks= 8 + 16 + 256 = 280\text{ blocks}.

  6. Maximum possible file size:

    Size=280×128 Bytes=35840 Bytes=358401024 KBytes=35 KBytes\text{Size} = 280 \times 128\text{ Bytes} = 35840\text{ Bytes} = \frac{35840}{1024}\text{ KBytes} = 35\text{ KBytes}

Hence, (B) is the correct option.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This File Systems previous year question is Q41 of the GATE CSE 2012 paper. Find more GATE CSE PYQs on File Systems in Operating Systems, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related File Systems PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

File Systems in GATE CSE

File Systems has 14 GATE CSE PYQs across 14 papers from 2011 to 2026. 3 of them are 2-mark MCQs like this one, and it is the only one in GATE CSE 2012.

How GATE tests File Systems

More from GATE CSE 2012

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2012 · Q41 · MCQ

A file system with 300 GByte disk uses a file descriptor with 8 direct block addresses, 1 indirect block address and 1 doubly indirect block address. The size of each disk block is 128 Bytes and the size of each disk block address is 8 Bytes. The maximum possible file size in this file system is

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.