CS FundamentalsHardGATE CS (PYQ pattern)
A Unix-style inode has 12 direct pointers, one single-indirect and one double-indirect pointer. Block size is 2 KB and a block pointer is 4 bytes. The maximum file size is:
- A. 524,288 KB
- B. 525,336 KB
- C. 525,312 KB
- D. 524,312 KB
Correct answer: B. 525,336 KB
A block holds 512 pointers. Direct: 12 × 2 = 24 KB; single: 512 × 2 = 1,024 KB; double: 512 × 512 × 2 = 524,288 KB. The total is 525,336 KB; the other options each omit one of the three parts.
More Operating Systems questions
- A process with pages numbered 0 to 4 references them in the order 0 4 0 1 3 4 0 1 4 0 2 0 4 1 3 2. Under FIFO replacement with initially…
- With 3 initially empty frames, the reference string 1 1 1 3 2 6 6 3 3 5 2 5 1 5 6 2 4 6 4 6 5 3 is processed under LRU and under the…
- A process makes 18 page references (times 1 to 18): 2 4 4 3 4 2 4 5 2 5 5 2 1 1 3 5 4 1. The working set W(t, 5) is the set of distinct…
- A multilevel feedback queue has three queues: Q0 (round robin, quantum 4 ms), Q1 (round robin, quantum 8 ms) and Q2 (FCFS). Queues are…
- Five processes (arrival time, CPU burst) are: P1 (1, 8), P2 (4, 1), P3 (0, 3), P4 (7, 6), P5 (5, 1). With preemptive…
- The Banker's algorithm is applied to 5 processes P0-P4 and 3 resource types with Available = (1, 1, 3). P0: Allocation (1, 2, 1), Max (1…