Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q141: Which system call is used to terminate a process in UNIX/Linux?
  • A: exit()
  • B: fork()
  • C: wait()
  • D: terminate()
View Answer
A

Q142: In UNIX, which process gets a new process identifier (PID) when a fork() system call is made?
  • A: The parent process
  • B: The child process
  • C: Both processes
  • D: Neither process
View Answer
B

Q143: A parent process must call which system call to wait for a child process to terminate?
  • A: fork()
  • B: wait()
  • C: exit()
  • D: exec()
View Answer
B

Q144: When a process terminates, what is the status information returned to?
  • A: The parent process
  • B: The operating system
  • C: The kernel
  • D: Another child process
View Answer
A

Q145: Which of the following is NOT shared between parent and child processes after a fork() system call?
  • A: Open file descriptor table
  • B: Current working directory
  • C: Parent process ID (PPID)
  • D: Signal handling settings
View Answer
C

Q146: The child process created by fork() has its own copy of the parent’s _______.
  • A: File descriptors
  • B: Environment
  • C: Current working directory
  • D: PID
View Answer
D

Q147: When a process exceeds its allocated resources, it can be terminated by the _________.
  • A: Operating system
  • B: Parent process
  • C: Child process
  • D: Kernel
View Answer
B

Q148: Which of the following is a possible reason for the fork() system call to fail?
  • A: Maximum number of processes for a user exceeded
  • B: Memory allocation failed
  • C: Parent process terminated
  • D: Child process has no resources
View Answer
A

Q149: If the parent process terminates, all of its children are assigned to which process?
  • A: Init process
  • B: Parent process
  • C: IDLE process
  • D: Kernel process
View Answer
A

Q150: The system call used to destroy the memory image of a program and load a new program is _______.
  • A: fork()
  • B: exec()
  • C: wait()
  • D: exit()
View Answer
B

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now