CS FundamentalsHardHCL · Tech Mahindra pattern
A 16 GB disk is formatted with 4 KB blocks and a File Allocation Table (FAT) that has one 4-byte entry per block. How large is the FAT, and why does it matter?
- A. 16 MB; it must be read from disk for every block of every file
- B. 4 MB; it is stored inside each file's first block
- C. 64 MB; one entry per byte of the block
- D. 16 MB; it is usually cached in memory so following a file's block chain does not need a disk read per block
Correct answer: D. 16 MB; it is usually cached in memory so following a file's block chain does not need a disk read per block
Blocks = 16 GB / 4 KB = 4M = 2²²; 2²² × 4 B = 16 MB. FAT is linked allocation with the links pulled into one table, so caching it makes random access a walk through memory rather than through the disk.
More Operating Systems questions
- How many of the following statements about semaphores and mutexes are correct? 1. A binary semaphore can be used to achieve mutual…
- Process L (low priority) holds a lock that high-priority process H needs. Medium-priority process M, which does not need the lock, becomes…
- Consider this loop: c for (int i = 0; i < 2; i++) { fork(); printf("-"); } stdout is redirected to a file (fully buffered) and no fflush…
- Which CPU scheduling algorithm can make a long process wait indefinitely if short processes keep arriving?
- Which part of the operating system selects which process in the ready queue gets the CPU next?
- Processes (arrival, burst): P1 (0, 4), P2 (1, 3), P3 (2, 6), P4 (4, 2). What is the average turnaround time under FCFS?