CS FundamentalsHardGATE CS · Amazon/Microsoft SDE MCQ

Disk cylinders 0–199; the head is at 50 moving toward higher cylinders; the queue holds 82, 170, 43, 140, 24, 16, 190. Counting the return jump as head movement, what are the totals for SCAN and C-LOOK?

  1. A. SCAN 332, C-LOOK 341
  2. B. SCAN 314, C-LOOK 341
  3. C. SCAN 332, C-LOOK 314
  4. D. SCAN 391, C-LOOK 332

Correct answer: A. SCAN 332, C-LOOK 341

SCAN goes 50 → 199 (149) and back to 16 (183): 332. C-LOOK goes 50 → 190 (140), jumps to 16 (174) and continues to 43 (27): 341. LOOK, which reverses at 190, would give 314.

More Operating Systems questions

Exams that ask this topic