ITPEC FE Morning April 2019 Question 12

Source exam: ITPEC FE Morning April 2019Topic: Computer Systems & Hardware

ITPEC FE Morning April 2019 — Question 12 of 80

Block-wise Allocation — calculate total sectors for files stored in fixed-size blocks.

Given:
- 1 block = 8 sectors × 500 bytes = 4,000 bytes

- File A = 2,000 bytes, File B = 9,000 bytes

- Allocation unit = block (not sector)

Steps:
- File A: 2,000 / 4,000 = 0.5 → round up → 1 block = 8 sectors

- File B: 9,000 / 4,000 = 2.25 → round up → 3 blocks = 24 sectors

- Total: 8 + 24 = 32 sectors

Why not others:
- (a) 22 — counts by sectors (2000/500 + 9000/500 = 22), ignoring block-wise rule

- (b) 26 — arithmetic or rounding error

- (c) 28 — common arithmetic mistake in final addition

Key rule: Block-wise allocation means each file occupies a whole number of blocks, not sectors. Always ceil(file_size / block_size) then multiply by sectors per block.

AI-generated — may contain errors

The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.