All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – Operating Systems PYQ: File Systems & Disk Scheduling

16 questions · answer key at the end · updated 1 Oct 2026
Q1.
Indexed/grouped allocation (of disk blocks to a file) is useful because:
(A) It supports both sequential and direct access.
(B) The entire data block is available for data (no pointers embedded in it).
(C) It does not require a lot of space for keeping pointers.
(D) It has no external fragmentation.
  1. (A) (A) only
  2. (B) (B) and (C) only
  3. (C) (B) only
  4. (D) (A), (B) and (D) only
Answer & explanation →
Q2.
A moving-head disk has 200 tracks, numbered 0 to 199. The head has just finished a request at track 125 and is currently at track 143 (so it is moving in the direction of increasing track numbers). The pending request queue, in FIFO arrival order, is: 86, 147, 91, 177, 94, 150, 102, 175, 130. What is the total head movement (in cylinders) to service all these requests using the SCAN algorithm?
  1. (A) 259 cylinders
  2. (B) 169 cylinders
  3. (C) 154 cylinders
  4. (D) 264 cylinders
Answer & explanation →
Q3.
A disk head is currently at cylinder 50. The pending requests, in the order they arrived, are for cylinders: 4, 34, 10, 7, 19, 73, 2, 15, 6, 20. Using the Shortest-Seek-Time-First (SSTF) disk scheduling policy, and given that it takes 1 ms to move the head between two adjacent cylinders, what is the total time needed to service all the requests?
  1. (A) 119 ms
  2. (B) 120 ms
  3. (C) 142 ms
  4. (D) 146 ms
Answer & explanation →
Q4.
Consider an operating system capable of loading and executing a single sequential user process at a time. The disk head scheduling algorithm used is first come first served (FCFS). If FCFS is replaced by shortest seek time first (SSTF) and the vendor claims 50% better benchmark results, what is the expected improvement in the I/O performance of user programs?
  1. (A) 50%
  2. (B) 100%
  3. (C) 25%
  4. (D) 0%
Answer & explanation →
Q5.
What is called journaling in a Linux operating system?
  1. (A) Process scheduling
  2. (B) File saving as transaction
  3. (C) A type of thread
  4. (D) An editor
Answer & explanation →
Q6.
In a file allocation system, the following allocation schemes are used: (A) Contiguous allocation, (B) Indexed allocation, (C) Linked allocation. Which allocation scheme(s) will NOT suffer from external fragmentation?
  1. (A) (A) and (B) only
  2. (B) (A) only
  3. (C) (B) and (C) only
  4. (D) (C) only
Answer & explanation →
Q7.
Suppose a Linux file system has a block size of 2K bytes, a disk address is 32 bits, and an i-node contains the disk addresses of the first 12 direct blocks of a file, one single-indirect block, and one double-indirect block. Approximately, what is the largest file that can be represented by an i-node?
  1. (A) 513 Kbytes
  2. (B) 513 Mbytes
  3. (C) 537 Mbytes
  4. (D) 537 KBytes
Answer & explanation →
Q8.
Consider a disk system having 60 cylinders. Disk requests are received by the disk drive for cylinders 10, 22, 20, 2, 40, 6, and 38, in that order. Assuming the disk head is currently at cylinder 20, what is the time taken to satisfy all the requests if it takes 2 milliseconds to move from one cylinder to an adjacent one and the Shortest Seek Time First (SSTF) algorithm is used?
  1. (A) 240 milliseconds
  2. (B) 96 milliseconds
  3. (C) 120 milliseconds
  4. (D) 112 milliseconds
Answer & explanation →
Q9.
A disk queue has requests for I/O on cylinders 98, 183, 37, 122, 14, 124, 65, 67, with the disk head currently at cylinder 53. Using the shortest seek time first (SSTF) disk scheduling algorithm, what is the total head movement (in cylinders) needed to service all requests?
  1. (A) 224
  2. (B) 248
  3. (C) 236
  4. (D) 240
Answer & explanation →
Q10.
Consider the following statements about UNIX file permissions:
(A) UNIX provides three permission types — Read, Write and Execute.
(B) UNIX provides three permission sets — Owner, Group and Others.
Which of the above statement(s) is/are true?
  1. (A) Only (A)
  2. (B) Only (B)
  3. (C) Both (A) and (B)
  4. (D) Neither (A) nor (B)
Answer & explanation →
Q11.
In the ________ disk scheduling algorithm, the disk head moves from one end of the disk to the other, servicing requests along the way. When it reaches the other end, it immediately returns to the beginning of the disk without servicing any requests on the return trip.
  1. (A) LOOK
  2. (B) SCAN
  3. (C) C-LOOK
  4. (D) C-SCAN
Answer & explanation →
Q12.
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 (average) access time. In what order should the files be stored?
  1. (A) F5, F2, F1, F3, F6, F4
  2. (B) F4, F6, F3, F1, F2, F5
  3. (C) F1, F2, F3, F4, F5, F6
  4. (D) F6, F5, F4, F3, F2, F1
Answer & explanation →
Q13.
Match the following for the UNIX file system:
List I: (A) Boot block (B) Super block (C) Inode block (D) Data block
List II: (I) Contains information about the file system — free block list, free inode list, etc. (II) Contains the operating system files as well as program and data files created by users. (III) Contains the boot program and partition table. (IV) Contains a table entry for every file in the file system, storing file attributes.
  1. (A) A-III, B-I, C-II, D-IV
  2. (B) A-III, B-I, C-IV, D-II
  3. (C) A-IV, B-III, C-II, D-I
  4. (D) A-IV, B-III, C-I, D-II
Answer & explanation →
Q14.
Which of the following statements about the UNIX file system is NOT correct?
  1. (A) The super block contains the number of i-nodes, the number of disk blocks, and the start of the list of free disk blocks.
  2. (B) An i-node contains accounting information as well as enough information to locate all the disk blocks that hold the file's data.
  3. (C) Each i-node is 256 bytes long.
  4. (D) All files and directories are stored in data blocks.
Answer & explanation →
Q15.
In UNIX, files are protected using a 9-bit permission mode ("rights bits"). Consider the statements: (I) A mode of 641 (octal) means the owner can read and write the file, other members of the owner's group can only read it, and all other users can only execute it. (II) A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access. Which of the following is correct?
  1. (A) Only I is correct
  2. (B) Only II is correct
  3. (C) Both I and II are correct
  4. (D) Both I and II are incorrect
Answer & explanation →
Q16.
A disk head is initially positioned at track 32. The disk I/O request queue, in arrival order, is: 98, 37, 14, 124, 65, 67. Using the FCFS disk-scheduling algorithm, find the total number of head movements (in tracks) required to service all requests.
  1. (A) 320
  2. (B) 322
  3. (C) 321
  4. (D) 319
Answer & explanation →

Answer key

  1. 1 – D
  2. 2 – B
  3. 3 – A
  4. 4 – D
  5. 5 – B
  6. 6 – C
  7. 7 – B
  8. 8 – C
  9. 9 – C
  10. 10 – C
  11. 11 – D
  12. 12 – B
  13. 13 – B
  14. 14 – C
  15. 15 – C
  16. 16 – C