Given parameters:
Number of recording surfaces per cylinder = 16
Number of sectors per track/surface = 64
Capacity per sector = 512 bytes=0.5 KB
Total sectors per cylinder = 16×64=1024 sectors
Total sectors required for the file of size 42797 KB:
Total sectors=512 bytes42797×1024 bytes=42797×2=85594 sectors Starting address is ⟨1200,9,40⟩:
The number of sectors preceding this address within cylinder 1200 is:
Offset=9×64+40=576+40=616 sectors The number of sectors available in cylinder 1200 from the starting sector onward:
1024−616=408 sectors
Remaining sectors to be allocated after cylinder 1200:
85594−408=85186 sectors Number of full cylinders occupied:
⌊85186/1024⌋=83 full cylinders These correspond to cylinders 1201 through 1200+83=1283.
Sectors allocated in the full cylinders:
83×1024=84992 sectors Remaining sectors to be placed in the next cylinder:
85186−84992=194 sectors These remaining 194 sectors will reside in cylinder 1284.
Therefore, the cylinder number of the last sector of the file is 1284 (Option D).