UGC NET CS 2017System Software and Operating System › File and Input/Output SystemsVerified
UGC NET CS 2017 PYQ: Suppose there are six files $F1, F2, F3, F4, F5, F6$ with corresponding sizes 150 KB, 225 KB, 75 KB 60 KB,…
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?
- A$F5, F2, F1, F3, F6, F4$
- B$F4, F6, F3, F1, F2, F5$Correct answer
- C$F1, F2, F3, F4, F5, F6$
- D$F6, F5, F4, F3, F2, F1$
Answer
(B) $F4, F6, F3, F1, F2, F5$
Approach
On a sequential device, optimal access time is achieved by storing files in increasing order of size (shortest first), so sort the sizes ascending.
Reviewed by UGC IQ Editorial Team.