Skip to main content

Operating System MCQs with Answers

Practice important Operating System MCQs with answers and explanations.

Multiple Choice Questions

Q121: Which of the following UNIX/Linux commands is used to compile a C program?
  • A: gcc
  • B: rm
  • C: mv
  • D: mkdir
View Answer
A

Q122: Which process state refers to a process that is currently being executed?
  • A: Running
  • B: Ready
  • C: Waiting
  • D: Terminated
View Answer
A

Q123: What is represented by the process control block (PCB) in an operating system?
  • A: Process state and associated information
  • B: Program counter
  • C: List of files opened by the process
  • D: Memory management information
View Answer
A

Q124: Which of the following processes spends more time doing input/output operations than computations?
  • A: CPU bound
  • B: IO bound
  • C: Hybrid bound
  • D: Time bound
View Answer
B

Q125: Which scheduling queue holds all processes that are in the system?
  • A: Ready queue
  • B: Job queue
  • C: Device queue
  • D: Process queue
View Answer
B

Q126: What does the 'mv' command do in UNIX/Linux?
  • A: Moves or renames files
  • B: Copies files
  • C: Deletes files
  • D: Creates directories
View Answer
A

Q127: In the context of processes, what is context switching?
  • A: Switching from one task to another
  • B: Saving process information before switching processes
  • C: Switching the CPU between different processes
  • D: Saving memory information
View Answer
C

Q128: What type of processes is associated with long CPU bursts and few I/O operations?
  • A: CPU bound
  • B: IO bound
  • C: Multi-threaded
  • D: Time-bound
View Answer
A

Q129: In UNIX/Linux, hidden files are those whose names start with _______.
  • A: .
  • B: _
  • C: $
  • D: /
View Answer
A

Q130: In UNIX/Linux, which command is used to display the absolute pathname of the current directory?
  • A: pwd
  • B: ls
  • C: cd
  • D: mkdir
View Answer
A

Test Your Knowledge

Take a timed quiz on Operating System

🚀 Start Quiz Now