CS FundamentalsHardTCS NQT · Infosys interview pattern

Disk cylinders 0–199; the head is at cylinder 100 and moving towards cylinder 0. Requests: 45, 130, 12, 180, 90, 150, 60. What is the total head movement under SCAN (elevator), which goes to the end of the disk before reversing?

  1. A. 256
  2. B. 268
  3. C. 378
  4. D. 280

Correct answer: D. 280

Moving down: 100 → 90 → 60 → 45 → 12 → 0 = 100 cylinders, then up: 0 → 180 = 180. Total 280. LOOK would turn at 12 instead of 0, giving 256. 378 would be C-SCAN-style jumping that is not SCAN.

More Operating Systems questions

Exams that ask this topic