Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q351: What is the correct syntax to join a thread in POSIX?
  • A: pthread_join(pthread_t thread, void *status);
  • B: pthread_join(thread_t, status);
  • C: pthread_join();
  • D: thread_join();
View Answer
A

Q352: In the hello_arg2.c program, how are the messages passed to threads?
  • A: Through a global array
  • B: Using thread arguments
  • C: Using global variables
  • D: Directly within the thread function
View Answer
B

Q353: The objective of multiprogramming is to maximize _______.
  • A: CPU utilization
  • B: Memory usage
  • C: Process execution
  • D: Device utilization
View Answer
A

Q354: In multiprogramming, a process is executed until it must wait for _______.
  • A: I/O request
  • B: CPU burst
  • C: Memory allocation
  • D: Termination signal
View Answer
A

Q355: Which of the following is an example of a CPU burst?
  • A: CPU waiting
  • B: I/O processing
  • C: Executing a program
  • D: None of the above
View Answer
C

Q356: The short-term scheduler is also known as the _______.
  • A: CPU scheduler
  • B: Memory manager
  • C: Process dispatcher
  • D: Resource manager
View Answer
A

Q357: What is the main task of the dispatcher?
  • A: Allocate memory
  • B: Restore context
  • C: Execute processes
  • D: Allocate CPU resources
View Answer
B

Q358: Which scheduling method requires no special hardware?
  • A: Preemptive scheduling
  • B: Non-preemptive scheduling
  • C: Both A and B
  • D: None of the above
View Answer
B

Q359: Which of the following scheduling algorithms is non-preemptive?
  • A: FCFS
  • B: Shortest Job First (SJF)
  • C: Round Robin
  • D: All of the above
View Answer
A

Q360: The time it takes for the dispatcher to stop one process and start another is called _______.
  • A: Dispatch latency
  • B: Context switch time
  • C: Preemptive latency
  • D: CPU time
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now