1.

A file contains 1026 bytes. How many bytes of disk space will it consume if size of a disk block is 1024 bytes?(a) 1026(b) 1024(c) 2048(d) 4096I had been asked this question by my college professor while I was bunking the class.I would like to ask this question from Listing File and Directory Attributes in section Basic File Attributes of Unix

Answer»

The correct choice is (C) 2048

Explanation: SINE files are written to the disk in terms of BLOCK SIZE, the size consumed by the file vary from the original size of the file. Suppose, if a file size is 800 bytes but the block size on the system is 1024 bytes, then that file will consume 1024 bytes on diskspace i.e. 1 block.



Discussion

No Comment Found

Related InterviewSolutions