CS FundamentalsModerateHCL · Tech Mahindra pattern
Which disadvantage applies to linked file allocation but NOT to indexed allocation?
- A. Direct (random) access to the i-th block requires following i pointers
- B. Files cannot grow after creation
- C. Space is needed to store an index block
- D. External fragmentation
Correct answer: A. Direct (random) access to the i-th block requires following i pointers
With linked allocation, reaching block i means walking the chain from the first block, so random access is slow. Neither linked nor indexed allocation suffers external fragmentation, and the index-block overhead belongs to indexed allocation.
More Operating Systems questions
- A disk has cylinders 0–199 and the head is at cylinder 72. The request queue, in arrival order, is 110, 25, 160, 47, 130, 8, 95, 185. What…
- A disk spins at 7,200 RPM. What is its average rotational latency?
- Which statement about a page fault is correct?
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using preemptive SJF…
- Processes: P1 (arrival 0, burst 7), P2 (arrival 2, burst 4), P3 (arrival 4, burst 1), P4 (arrival 5, burst 4) (ms). Using Round Robin with…
- Cylinders 0–199, head at 72. Requests: 110, 25, 160, 47, 130, 8, 95, 185. What is the total head movement under SSTF?