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



Operating Systems MCQ questions and answers – Set 12

1. Which of the following is not a solution to the critical-section problem?

(a) Conditional critical region
(b) Shared memory
(c) Monitor
(d) Semaphore


Click here to view answer and explanation


2. What is the purpose of multiprogramming?

(a) Utilize CPU better
(b) Make the computer hardware more user friendly
(c) Make it easy for the users to run programs
(d) To get the most out of slow input-output devices


Click here to view answer and explanation


3. Which scheduling algorithm can avoid deadlock?

(a) Round Robin algorithm
(b) Rollback algorithm
(c) Banker’s algorithm
(d) None of the above


Click here to view answer and explanation


4. Which of the following components of program state are shared across threads in a multithreaded process?

(a) Register values
(b) Heap memory
(c) Global variables
(d) Stack memory


Click here to view answer and explanation


5. Which of the following scheduling algorithms could result in starvation?
(a) First-come, first-served
(b) Shortest job first
(c) Round robin
(d) Priority


Click here to view answer and explanation



*********