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: Process Management & CPU Scheduling

14 questions · answer key at the end · updated 1 Oct 2026
Q1.
Match List – I with List – II.
List I: (A) LRU (B) Demand cleaning (C) Long term scheduling (D) Medium term scheduling
List II: (I) Page not referenced for the longest time is replaced (II) Page is written to secondary memory only when it has been selected for replacement (III) Decision to add a process to the pool of processes to be executed (IV) Decision to add a process, partially or fully, to main memory
  1. (A) (A)-(I), (B)-(III), (C)-(IV), (D)-(II)
  2. (B) (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
  3. (C) (A)-(III), (B)-(II), (C)-(I), (D)-(IV)
  4. (D) (A)-(IV), (B)-(II), (C)-(III), (D)-(I)
Answer & explanation →
Q2.
Three processes arrive as follows:
ProcessArrival TimeBurst Time
P00 ms7 ms
P11 ms3 ms
P22 ms7 ms
The preemptive shortest-job-first (SJF) scheduling algorithm is used, with scheduling decisions made only at a process arrival or completion. What is the average waiting time for the three processes?
  1. (A) 3 ms
  2. (B) 3.67 ms
  3. (C) 4.47 ms
  4. (D) 4 ms
Answer & explanation →
Q3.
Three processes arrive as follows:
ProcessArrival TimeBurst Time
P00 ms7 ms
P11 ms3 ms
P22 ms7 ms
The preemptive shortest-job-first (SJF) scheduling algorithm is used, with scheduling decisions made only at a process arrival or completion. What is the average waiting time for the three processes?
  1. (A) 3 ms
  2. (B) 3.67 ms
  3. (C) 4.47 ms
  4. (D) 4 ms
Answer & explanation →
Q4.
For the following set of processes scheduled using FCFS policy, determine the average waiting time. Assume that the processes arrived in the order P1, P2, P3, P4.
ProcessBurst Time (ms)
P18
P215
P310
P47
  1. (A) 8
  2. (B) 16
  3. (C) 32
  4. (D) 48
Answer & explanation →
Q5.
Which of the following statements are true?
(A) Shortest remaining time first scheduling may cause starvation.
(B) Preemptive scheduling may cause starvation.
(C) Round robin is better than FCFS in terms of response time.
  1. (A) A only
  2. (B) B, C only
  3. (C) A, B only
  4. (D) A, B, C
Answer & explanation →
Q6.
An OS follows round robin scheduling with a time quantum of 4 ms. Assuming that the CPU is free now and there are 20 processes waiting in the ready queue, what is the maximum amount of time that a process waits before getting into the CPU?
  1. (A) 80 ms
  2. (B) 76 ms
  3. (C) 84 ms
  4. (D) None of the above
Answer & explanation →
Q7.
If an operating system does not allow a child process to exist when the parent process has been terminated, this phenomenon is called:
  1. (A) Threading
  2. (B) Cascading termination
  3. (C) Zombie termination
  4. (D) Process killing
Answer & explanation →
Q8.
Consider the following 3 processes, with the length of the CPU burst time given in milliseconds:
ProcessArrival TimeBurst Time
P108
P214
P329
What is the average waiting time for these processes if they are scheduled using the preemptive shortest-job-first (shortest-remaining-time-first) scheduling algorithm?
  1. (A) 2.66
  2. (B) 4.66
  3. (C) 5.5
  4. (D) 6
Answer & explanation →
Q9.
Assuming that the system call fork() never fails, consider the following C programs P1 and P2 executed on a UNIX/Linux system.
P1P2
int main() {
  fork();
  fork();
  fork();
  printf("Happy\n");
}
int main() {
  fork();
  printf("Happy\n");
  fork();
  printf("Happy\n");
  fork();
  printf("Happy\n");
}
Statement I: P1 displays "Happy" 8 times.
Statement II: P2 displays "Happy" 12 times.
In light of the above statements, choose the most appropriate answer.
  1. (A) Both Statement I and Statement II are true
  2. (B) Both Statement I and Statement II are false
  3. (C) Statement I is correct but Statement II is false
  4. (D) Statement I is incorrect but Statement II is true
Answer & explanation →
Q10.
Consider the following four processes with the arrival time and length of CPU burst given in milliseconds:
ProcessArrival TimeBurst Time
P108
P214
P329
P435
Using the preemptive shortest job first (SJF / SRTF) scheduling algorithm, what is the average waiting time (in ms) for these processes?
  1. (A) 6.5
  2. (B) 7.5
  3. (C) 6.75
  4. (D) 7.75
Answer & explanation →
Q11.
Which module gives control of the CPU to the process selected by the short-term scheduler?
  1. (A) Dispatcher
  2. (B) Interrupt
  3. (C) Scheduler
  4. (D) Threading
Answer & explanation →
Q12.
A fair share scheduler computes the priority of a process based on which of the following?
(1) Processor utilization by the individual process.
(2) Weight assigned to the user/group.
(3) Processor utilization by the user/group.
  1. (A) Only (1) and (2)
  2. (B) Only (1) and (3)
  3. (C) (1), (2) and (3)
  4. (D) Only (2) and (3)
Answer & explanation →
Q13.
Which of the following CPU scheduling algorithms may cause starvation of a process? (1) First-Come-First-Served (2) Round Robin (3) Priority scheduling (4) Shortest-Process-Next (5) Shortest-Remaining-Time-First
  1. (A) 1, 3 and 5
  2. (B) 3, 4 and 5
  3. (C) 2, 4 and 5
  4. (D) 2, 3 and 4
Answer & explanation →
Q14.
A scheduling algorithm assigns a process's priority proportional to how long it has been waiting; every process starts at priority zero (the lowest), and the scheduler re-evaluates all priorities and picks the next process to run every T time units. If no process performs I/O and all arrive at time zero, which classical scheduling discipline does this scheme effectively implement?
  1. (A) Priority scheduling
  2. (B) Round Robin scheduling
  3. (C) Shortest Job First
  4. (D) FCFS
Answer & explanation →

Answer key

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