GATE CS 2025 Set 1 | Question 51

Operating Systems › File Systems & I/O · NAT · 2 marks · Answer: 65468

  1. Question 51Operating Systemsnat2 marks
    A disk of size 512M bytes is divided into blocks of 64K bytes. A file is stored using linked allocation. Each data block reserves 4 bytes to store the pointer to the next block; the last block's link is a NULL pointer (also 4 bytes). A file of 1M bytes is stored. Assume , . The amount of space in bytes wasted due to internal fragmentation is ______. (Answer in integer)

    Answer: 65468

    Solution

    Answer: 65468 Each -byte block reserves bytes for the pointer, leaving bytes of data per block. File size bytes. Blocks needed blocks. - First 16 blocks hold bytes. - Remaining file data bytes, placed in the 17th block. Internal fragmentation is the unused data area of the last block:

More GATE PYQ on File Systems & I/O

All GATE CS Operating Systems PYQ →

Attempt GATE CS 2025 Set 1 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →