CS FundamentalsHardGATE CS (PYQ pattern)

A Unix-style inode has 12 direct pointers, one single-indirect and one double-indirect pointer. Block size is 2 KB and a block pointer is 4 bytes. The maximum file size is:

  1. A. 524,288 KB
  2. B. 525,336 KB
  3. C. 525,312 KB
  4. D. 524,312 KB

Correct answer: B. 525,336 KB

A block holds 512 pointers. Direct: 12 × 2 = 24 KB; single: 512 × 2 = 1,024 KB; double: 512 × 512 × 2 = 524,288 KB. The total is 525,336 KB; the other options each omit one of the three parts.

More Operating Systems questions

Exams that ask this topic