Question 20Asked in UGC NET Computer Science, November 2017 (Paper II & III, Selected Questions)

Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be…

Suppose there are six files F1, F2, F3, F4, F5, F6 with corresponding sizes 150 KB, 225 KB, 75 KB, 60 KB, 275 KB and 65 KB respectively. The files are to be stored on a sequential device in such a way that optimizes access time. In what order should the files be stored?
  1. AF5, F2, F1, F3, F6, F4
  2. BF4, F6, F3, F1, F2, F5
  3. CF1, F2, F3, F4, F5, F6
  4. DF6, F5, F4, F3, F2, F1
Show answerHide answer

Correct answer: (B) F4, F6, F3, F1, F2, F5

Explanation

To minimise access time on a sequential device, store files in increasing order of size: F4 (60 KB), F6 (65 KB), F3 (75 KB), F1 (150 KB), F2 (225 KB), F5 (275 KB).

From UGC NET Computer Science PYQ, November 2017 (Paper II & III, Selected Questions)

This is question 20 of UGC NET Computer Science PYQ, November 2017 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.