Official 2022 Board Exam question paper for the Operating System course.

Tribhuvan University
Faculty of Humanities & Social Sciences
OFFICE OF THE DEAN
2025
Bachelor in Computer Applications

Paper detail Value
Course Operating System
Code No. CACS251
Semester IVth
Full marks 60
Pass marks 24
Time 3 hours

Candidates are required to answer the questions in their own words as far as possible.

Group B

2. What is an operating system? Is a "Multitasking" operating system better than a "Batch" operating system? Justify your answer.

3. What is the role of a scheduler in an operating system? Differentiate between short-term and long-term schedulers.

4. What do you mean by a Race condition? Consider two concurrently running processes P1 with statement S1 and P2 with statement S2. Suppose we require that S2 be executed only after S1 has completed. For this synchronization need, write a semaphore solution.

5. What are CPU scheduling criteria? Consider the below table of four processes under multi-level queue scheduling. The queue number denotes the queue of the process. The priority of queue 1 is greater than queue 2. Queue 1 uses Round Robin with time quantum t=2ms and queue 2 uses FCFS. Draw a Gantt chart to illustrate their execution and calculate average waiting and turnaround time.

6. What is thrashing? Explain three memory management requirements.

7. Given five memory partitions of 100KB, 500KB, 200KB, 300KB, and 600KB (in order). How would the first-fit, best-fit, and worst-fit algorithms place processes of size 212KB, 417KB, 112KB, and 426KB (in order) in fixed-size partitions? Which algorithm makes the most efficient use of memory?

8. When is programmed I/O suitable compared to other I/O handling techniques? Explain different types of system threats.

Group C

Process Allocation Max Available
[A,B,C,D] [A,B,C,D] [A,B,C,D]
P0 0 0 1 1 0 0 1 2 1 5 2 0
P1 1 0 0 0 1 7 5 0
P2 1 3 5 4 2 3 5 6
P3 0 6 3 2 0 6 5 2
P4 0 0 1 4 0 6 5 6

10. How does the second chance page replacement algorithm differ from the FIFO page replacement policy? Explain the concept of Belady’s anomaly with a suitable example.

11. What is clock synchronization? Explain how a physical clock is synchronized by the Cristian algorithm and a logical clock is synchronized by Lamport's algorithm with a suitable example.