Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q311: Which of the following commands moves a process from background to foreground in UNIX/Linux?
  • A: bg
  • B: fg
  • C: kill
  • D: ps
View Answer
B

Q312: Threads within the same process share the _________.
  • A: Stack
  • B: Memory and resources
  • C: Thread ID
  • D: CPU resources
View Answer
B

Q313: The command to resume a suspended job in UNIX/Linux is _________.
  • A: kill
  • B: bg
  • C: fg
  • D:
View Answer
C

Q314: Which of the following commands displays the status of suspended and background jobs in UNIX/Linux?
  • A: ps
  • B: kill
  • C: fg
  • D: jobs
View Answer
D

Q315: A thread's register set is _________.
  • A: Shared with other threads
  • B: Unique to each thread
  • C: Shared with the process
  • D: Not relevant
View Answer
B

Q316: A thread's program counter points to _________.
  • A: The start of the program
  • B: The next instruction to execute
  • C: The memory address of the program
  • D: Other threads' code
View Answer
B

Q317: The UNIX/Linux command _________ is used to suspend a running process.
  • A:
  • B: kill
  • C: bg
  • D: fg
View Answer
A

Q318: In multi-threaded applications, the threads share the _________.
  • A: Code section and data section
  • B: Stack and heap
  • C: Program counter
  • D: All of the above
View Answer
A

Q319: What is the correct syntax to use the fg command?
  • A: fg %job_id
  • B: fg job_id
  • C: fg -job_id
  • D: fg
View Answer
A

Q320: The ________ system call is used to create a new process.
  • A: fork()
  • B: join()
  • C: execute()
  • D: kill()
View Answer
A

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now