Solved exam questions with answers and step-by-step explanations.

Professional Knowledge Solved MCQ

Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size 512 GB. Each i-node has a total of 15 block addresses consisting of direct and indirect block addresses. Suppose the implementat...

GATE CS FULL TEST (ADVANCED)6 Professional Knowledge 4 options Answer with explanation

Consider a UNIX-like file system implemented with i-nodes that resides on a disk of size 512 GB. Each i-node has a total of 15 block addresses consisting of direct and indirect block addresses.

Suppose the implementation wants to support file size up to 1 GB using only direct block addresses and single indirect block address. At least how many of the 15 block addresses should be used as single indirect block address.

Options

  • A
    0
  • B
    1
  • C
    2
  • D
    3
    Correct answer
The correct answer is Option D

Explanation

file size = 1 GB = 230 = number of block in the file * block size

Number of blocks in the file = 215

Block entry size = 3 bytes

So, we need 3 * 215 bytes to store all the blocks of the file

Size of a block = 215, so we need 3 blocks to store all the block addresses of the file, which need 3 indirect addresses to point these 3 blocks.

Share this question: WhatsApp
Practise more questions like thisTimed mock tests and quizzes on ExamLuck are free to attempt.
Take a free mock test

Related questions