Question 1 : OS Concepts and Structure (6 marks)
a) Define an operating system. (2 marks)
b) Explain two functions of an operating system. (2 marks)
c) Name and briefly explain three types of OS structures. (2 marks)
(Monolithic, Layered, Microkernel, Modular)
Question 2 : Memory Management (6 marks)
a) Explain main memory (RAM) management in an OS. (2 marks)
b) Differentiate between paging and segmentation. (2 marks)
c) A computer has 16 MB RAM and uses 4 KB page size.
Calculate the number of pages. (2 marks)
Question 3 : Process Management (6 marks)
a) Define a process and a process state. (2 marks)
b) Draw and label a simple process state diagram. (2 marks)
c) Explain two reasons why process management is essential in an OS. (2 marks)
Question 4 : CPU Scheduling (6 marks)
a) Define CPU scheduling and state its objective. (2 marks)
b) A CPU scheduler uses First-Come, First-Served (FCFS).
Given processes with arrival times and burst times :
Process Arrival Time Burst Time
P1 0 4
P2 1 3
P3 2 1
i) Draw a Gantt chart. (2 marks)
ii) Calculate average waiting time. (2 marks)
Question 5 : Advanced OS Scenario (6 marks)
A small company uses a multitasking OS. They notice the system slows down when several
programs run simultaneously.
a) Suggest two OS strategies to optimize CPU usage. (2 marks)
b) Explain two memory management techniques the OS can use to handle multiple processes
efficiently. (2 marks)
c) State two benefits of using preemptive scheduling in this scenario. (2 marks)