Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q151: What does the wait() system call do in UNIX/Linux?
  • A: Starts a new process
  • B: Waits for a process to terminate
  • C: Loads a new program into a process’s memory space
  • D: Ends the execution of a process
View Answer
B

Q152: When a process is created, which resource is NOT typically allocated to it?
  • A: CPU time
  • B: Memory
  • C: I/O devices
  • D: Operating system code
View Answer
D

Q153: If a process creates a child process and then terminates, the child process will be assigned a new parent. This new parent is typically the _______.
  • A: Kernel
  • B: Init process
  • C: Child process
  • D: Parent process
View Answer
B

Q154: A process can terminate itself using which system call?
  • A: exit()
  • B: fork()
  • C: wait()
  • D: terminate()
View Answer
A

Q155: What is the main purpose of the exec() system call in UNIX/Linux?
  • A: Terminate a process
  • B: Replace the process's memory with a new program
  • C: Wait for a process to terminate
  • D: Create a child process
View Answer
B

Q156: The fork() system call is used to _______.
  • A: Terminate a process
  • B: Create a new process
  • C: Replace a process with a new program
  • D: Wait for a process to finish
View Answer
B

Q157: In a UNIX system, a parent process that creates a child process can _______.
  • A: Terminate the child process after its creation
  • B: Wait for the child process to terminate
  • C: Let the child process run indefinitely
  • D: Assign new resources to the child process
View Answer
B

Q158: After a fork() system call, the return value for the parent process is the _______.
  • A: Process ID of the child
  • B: -1
  • C: Process ID of the parent
  • D: 0
View Answer
C

Q159: In the process tree of UNIX/Linux, the first process created is the _______.
  • A: Parent process
  • B: Init process
  • C: Child process
  • D: Supervisor process
View Answer
B

Q160: Fill in the blank: When a parent process terminates, its child processes are typically adopted by the _______ process.
  • A: Init
  • B: Process
  • C: Kernel
  • D: Parent
View Answer
D

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now