edited by
6,241 views
1 votes
1 votes

Match the following $:$

$\begin{array}{clcl}   \text{} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Contiguous allocation} & \text{i.} & \text{This scheme supports very large}\\&&& \text{ file sizes.} \\ \text{b.} & \text{Linked allocation} & \text{ii.} & \text{This allocation technique supports}  \\ &&& \text{ only sequential files.}  \\  \text{c.} & \text{Indexed allocation} & \text{iii.} & \text{The number of disks required to} \\&&&\text{access file is minimal.} \\ \text{d.} & \text{Multi-level indexed} & \text{iv.} & \text{This technique suffers from maximum} \\ &&&\text{wastage of space in storing pointers.}  \\   \end{array}$

$\textbf{Codes :}$

  1. $\text{a-iii; b-iv; c-ii; d-i}$
  2. $\text{a-iii; b-ii; c-iv; d-i}$
  3. $\text{a-i; b-ii; c-iv; d-iii}$
  4. $\text{a-i; b-iv; c-ii; d-iii}$
edited by

2 Answers

Best answer
3 votes
3 votes

Answer is B).

Contiguous allocation ---> Number of disks required to access file is minimal.

Linked allocation ---> This allocation technique supports only sequential files

Indexed allocation --->  This technique suffers from maximum wastage of space 

Multi-level indexed  ---> This scheme supports very large file sizes

selected by
0 votes
0 votes

Contiguous Allocation

  • Files are stored in a contiguous manner, ie, the file is stored in sequential, next-door blocks.
  • Because of this, the R/W head movement is minimal (minimal seek time).
  • Suffers from external fragmentation.

Linked Allocation

  • It is essentially a linked-list of blocks, which we use to store the file.
  • The user has access to only the pointers of the first and the last node, not the intermediate nodes. For this reason:-
  1. Not suitable for random access.
  2. If a block size is 512 B, and pointer size is 4 B, user sees the block as of 508 B.
  • Lots of space is wasted on storing pointers.
  • Unreliable (what if we lose an intermediate pointer?)

Indexed Allocation

  • Same as Linked Allocation, but all the pointers are brought together in a file called the index file.
  • Hence, the user has access to all the pointers, and may perform random access.
  • Maximal wastage of storage is observed in Indexed Allocation as other than the pointers, it also creates additional file for the indices.

Option B


Related: Internal vs External Fragmentation.

edited by
Answer:

Related questions

2 votes
2 votes
1 answer
1
makhdoom ghaya asked Jul 1, 2016
2,643 views
Which of the following is the correct value returned to the operating system upon the successful completion of a program ? 01-1Program do not return a value.
2 votes
2 votes
2 answers
3
makhdoom ghaya asked Jun 29, 2016
3,218 views
Match the following $:$$\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a}. & \text{Multilevel feedback queue} & \text{i.} & \text{Time-slicin...
0 votes
0 votes
3 answers
4