CS FundamentalsHardProduct-company MCQ pattern
RAID 5 stripes data across N disks and stores a rotating parity block (the XOR of the corresponding data blocks) on a different disk for each stripe. If exactly one disk fails, what happens?
- A. RAID 5 cannot tolerate any disk failure; that is only true of RAID 6
- B. All data is permanently lost
- C. The array keeps working in a degraded mode, since any missing data block can be reconstructed by XOR-ing the corresponding blocks (data and parity) on the surviving disks
- D. The array simply ignores the failed disk's stripes, silently returning zeros
Correct answer: C. The array keeps working in a degraded mode, since any missing data block can be reconstructed by XOR-ing the corresponding blocks (data and parity) on the surviving disks
Parity is the XOR of all the other blocks in that stripe, so XOR-ing the surviving blocks (data and parity) reconstructs whatever is missing, letting RAID 5 survive exactly one disk failure (with reduced performance) — a second simultaneous failure, however, loses data, which is why RAID 6 adds a second parity block for that case.
More Operating Systems questions
- An array has 5 disks in RAID 5 (4 data + 1 rotating parity per stripe, effectively). Compared to plain striping (RAID 0) across the same 5…
- A disk subsystem uses C-LOOK (like C-SCAN, but it jumps straight to the lowest pending request instead of running all the way to the…
- In the standard five-state process model, which transition can NEVER happen directly?
- The data structure in which the OS keeps a process's program counter, register contents, state and open-file list is called the:
- Short jobs stuck waiting behind one long CPU-bound job is called the convoy effect. It is characteristic of which scheduling algorithm?
- A system spends most of its time swapping pages in and out and does very little useful work. This condition is called: