Operating systems exams - multiple choice questions (MCQ) and answers



Operating Systems MCQ questions and answers – Set 15

1. Which of the following instructions should be privileged?

(a) Disable interrupts
(b) Read the real-time clock
(c) Switch from user mode to kernel mode
(d) Switch from kernel mode to user mode


Click here to view answer and explanation


2. Which of the following should be found in a Process Control Block (PCB)?

(a) Process state
(b) Accounting information
(c) Open files
(d) All of the above


Click here to view answer and explanation


3. Which of the following is a property of a hard real-time system?
(a) Critical real-time tasks get priority over other tasks and retain that priority until execution time has been completed.
(b) Lack deadline support
(c) Easily support advanced operating system features
(d) Guarantees that critical tasks are completed on time


Click here to view answer and explanation


4. What is the average waiting time using the SJF scheduling algorithm given that process P1 through P3 have burst times of 20ms, 10ms, and 35ms respectively?
(a) 10 ms
(b) 13.3 ms
(c) 21.6 ms
(d) 35 ms


Click here to view answer and explanation


5. What is the average waiting time using the FCFS scheduling algorithm given that process P1 through P3 have burst times of 12ms, 3ms, and 6ms respectively?
(a) 7 ms
(b) 4 ms
(c) 9 ms
(d) 8 ms


Click here to view answer and explanation



*********