CS FundamentalsHardIBM · Deloitte pattern
A Unix-style inode has 12 direct pointers, 1 single-indirect and 1 double-indirect pointer. The block size is 1 KB and a block pointer is 4 bytes. What is the maximum file size?
- A. 12 KB + 1 MB + 1 GB
- B. 12 KB + 256 KB + 64 MB
- C. 268 KB
- D. 12 KB + 256 KB + 256 MB
Correct answer: B. 12 KB + 256 KB + 64 MB
One block holds 1024/4 = 256 pointers. Direct: 12 × 1 KB; single-indirect: 256 × 1 KB = 256 KB; double-indirect: 256 × 256 × 1 KB = 64 MB. 268 KB ignores the double-indirect pointer.
More Operating Systems questions
- Memory holes, in order, are 150 KB, 450 KB, 250 KB, 350 KB and 500 KB. Requests arrive in order: 240 KB, 410 KB, 130 KB, 380 KB. Which…
- What does this program print? (Assume fork() succeeds; the order of the two lines may vary.) c int x = 5; int main() { if (fork() == 0)…
- A resource-allocation graph contains a cycle. Which conclusion is correct?
- Reference string (times 1 to 14): 3, 5, 3, 1, 4, 4, 2, 1, 1, 6, 6, 6, 2, 5. With working-set window Δ = 4 references, what is the working…
- Processes: A (arrival 0, burst 5), B (arrival 1, burst 3), C (arrival 2, burst 8), D (arrival 3, burst 6). Priorities: A = 3, B = 1, C =…
- Cylinders 0–199, head at 72 moving towards higher cylinders. Requests: 110, 25, 160, 47, 130, 8, 95, 185. Under C-LOOK, counting the jump…