Operating Systems
Introduction
Study how operating systems manage processes, threads, memory, storage and access to computer resources.
Topic-Wise Overview
Operating System Basics
System calls, OS structures and processes
Scheduling and Concurrency
Process and thread scheduling, inter-process communication and synchronization
Deadlocks
Deadlock prevention, detection and recovery
Memory Management
Paging, segmentation, virtual memory and thrashing
Storage and Protection
File systems, disk scheduling, security and virtual machines
Study Guidance
Explore the complete collection of 200 Operating Systems MCQs with four answer options and a clear explanation for every question. The questions below are organized into five numbered sets covering processes, CPU scheduling, synchronization, deadlocks, memory, storage, I/O, protection and virtualization. Additional short questions and worked solutions will be developed progressively.
Explore Other Subjects
Browse Computer Science subjects
Operating Systems MCQs: Set 1 (Questions 1–30)
Explore OS foundations, processes, scheduling, synchronization, deadlocks and memory management. Select an answer and open the explanation.
Question 1. What is a primary function of an operating system?
- To manage hardware resources and provide services to programs
- To replace the CPU’s instruction set
- To compile every application automatically
- To provide only internet connectivity
Show correct answer and explanation
Correct answer: A. To manage hardware resources and provide services to programs
An OS coordinates hardware resources and offers abstractions and services to applications.
Question 2. Which component is the core of an operating system?
- Web browser
- Kernel
- Text editor
- Spreadsheet
Show correct answer and explanation
Correct answer: B. Kernel
The kernel manages essential system resources and mediates access to hardware.
Question 3. A system call provides:
- A new physical processor
- A keyboard shortcut
- An interface for a program to request OS services
- A substitute for all device drivers
Show correct answer and explanation
Correct answer: C. An interface for a program to request OS services
System calls let user programs request protected operating-system operations.
Question 4. Which execution mode normally has privileged access to hardware?
- Browser mode
- Guest application mode
- User mode
- Kernel mode
Show correct answer and explanation
Correct answer: D. Kernel mode
Kernel mode permits privileged instructions needed for operating-system functions.
Question 5. A process is best described as:
- A program in execution with its associated state and resources
- Only a source-code file
- A physical memory chip
- A directory on disk
Show correct answer and explanation
Correct answer: A. A program in execution with its associated state and resources
A process represents an executing program and includes execution context and resources.
Question 6. Which process state means waiting for a particular event or I/O completion?
- Running
- Blocked or waiting
- Ready
- Terminated
Show correct answer and explanation
Correct answer: B. Blocked or waiting
A waiting process cannot proceed until an expected event occurs.
Question 7. Which data structure typically stores a process’s scheduling and state information?
- File allocation table
- Translation lookaside buffer
- Process control block
- Disk partition table
Show correct answer and explanation
Correct answer: C. Process control block
A PCB holds process identifiers, state and context information used by the OS.
Question 8. A context switch generally involves:
- Increasing disk capacity
- Compiling user code
- Erasing process memory
- Saving one execution context and restoring another
Show correct answer and explanation
Correct answer: D. Saving one execution context and restoring another
The OS saves relevant processor state and restores another process or thread’s context.
Question 9. Threads within the same process usually share:
- The process address space
- Distinct physical computers
- Separate executable files by definition
- All CPU registers at every instant
Show correct answer and explanation
Correct answer: A. The process address space
Threads in one process typically share memory and other process resources while having individual execution contexts.
Question 10. What is the purpose of CPU scheduling?
- To format hard drives
- To select which ready task runs on a processor
- To disable interrupts permanently
- To translate every file name
Show correct answer and explanation
Correct answer: B. To select which ready task runs on a processor
The scheduler allocates CPU time among runnable tasks.
Question 11. In first-come, first-served scheduling, jobs are served according to:
- Shortest predicted burst first
- Highest memory address
- Arrival order
- Largest process identifier
Show correct answer and explanation
Correct answer: C. Arrival order
FCFS normally runs ready jobs in the order they enter the scheduling queue.
Question 12. Round-robin scheduling is characterized by:
- No time sharing
- Always choosing the longest job
- Disabling preemption
- A fixed time quantum for each turn
Show correct answer and explanation
Correct answer: D. A fixed time quantum for each turn
Round robin cycles through runnable tasks with bounded time slices.
Question 13. A time quantum that is extremely small can cause:
- Excessive context-switch overhead
- Zero context switches
- Guaranteed maximum throughput
- Elimination of waiting time
Show correct answer and explanation
Correct answer: A. Excessive context-switch overhead
Very frequent preemption can spend significant time switching contexts.
Question 14. Shortest-job-first scheduling prioritizes:
- Tasks with the largest memory footprint
- The process with the shortest estimated CPU burst
- Tasks in reverse arrival order
- Only I/O-bound processes
Show correct answer and explanation
Correct answer: B. The process with the shortest estimated CPU burst
SJF chooses the smallest next CPU burst, assuming estimates are available.
Question 15. What is starvation in process scheduling?
- A disk having no free space
- A CPU overheating
- A task waiting indefinitely because it is repeatedly denied resources or CPU time
- A process completing early
Show correct answer and explanation
Correct answer: C. A task waiting indefinitely because it is repeatedly denied resources or CPU time
Starvation occurs when scheduling or resource allocation can postpone a task without bound.
Question 16. Aging in priority scheduling helps:
- Increase every process’s memory size
- Reduce file fragmentation
- Stop all interrupts
- Reduce starvation by raising the priority of long-waiting tasks
Show correct answer and explanation
Correct answer: D. Reduce starvation by raising the priority of long-waiting tasks
Aging adjusts priorities over time so long-waiting tasks can eventually run.
Question 17. A race condition occurs when:
- An outcome depends on the timing or interleaving of concurrent operations
- Two files have the same extension
- The computer has multiple cores
- All processes run serially
Show correct answer and explanation
Correct answer: A. An outcome depends on the timing or interleaving of concurrent operations
Unsynchronized concurrent access can make results depend on operation order.
Question 18. A critical section is code that:
- Cannot contain a function call
- Accesses shared state requiring controlled concurrent access
- Must run in user mode only
- Always performs disk I/O
Show correct answer and explanation
Correct answer: B. Accesses shared state requiring controlled concurrent access
Critical sections protect operations on shared resources from unsafe interleavings.
Question 19. The mutual exclusion requirement means:
- Every thread enters simultaneously
- Only one process can exist
- At most one participant is in a protected critical section at a time
- Only one CPU may be installed
Show correct answer and explanation
Correct answer: C. At most one participant is in a protected critical section at a time
Mutual exclusion prevents concurrent entry into a shared critical section.
Question 20. Which synchronization primitive has atomic wait and signal operations?
- Page table
- Cache line
- File descriptor
- Semaphore
Show correct answer and explanation
Correct answer: D. Semaphore
A semaphore supports atomic decrement/wait and increment/signal semantics.
Question 21. A binary semaphore can be used to:
- Control access to a shared resource with two logical states
- Encode an entire filesystem
- Schedule disks only
- Measure CPU temperature
Show correct answer and explanation
Correct answer: A. Control access to a shared resource with two logical states
A binary semaphore has a value effectively restricted to zero or one and can coordinate exclusive access.
Question 22. A mutex is primarily intended to:
- Compress memory
- Provide mutually exclusive access to a critical section
- Allocate disk sectors
- Start a bootloader
Show correct answer and explanation
Correct answer: B. Provide mutually exclusive access to a critical section
A mutex coordinates access so only its owner holds the protected lock at a time.
Question 23. Which is one necessary condition for a classical resource deadlock?
- Preemption of every resource
- Unlimited resources
- Circular wait
- Immediate task termination
Show correct answer and explanation
Correct answer: C. Circular wait
Circular wait is one of the four Coffman necessary conditions for deadlock.
Question 24. Which choice lists all four Coffman deadlock conditions?
- Mutual exclusion, paging, caching, preemption
- Circular wait, interrupts, scheduling, segmentation
- Hold and wait, aging, swapping, paging
- Mutual exclusion, hold and wait, no preemption, circular wait
Show correct answer and explanation
Correct answer: D. Mutual exclusion, hold and wait, no preemption, circular wait
A deadlock requires all four conditions to hold in the classical model.
Question 25. Banker’s algorithm is associated with:
- Deadlock avoidance
- Directory indexing
- Page compression
- Network routing
Show correct answer and explanation
Correct answer: A. Deadlock avoidance
Banker’s algorithm checks whether allocations preserve a safe resource-allocation state.
Question 26. A safe state in deadlock avoidance means:
- No process is currently running
- There exists an order in which all processes can finish using available and releasable resources
- Every resource is permanently allocated
- No thread uses a lock
Show correct answer and explanation
Correct answer: B. There exists an order in which all processes can finish using available and releasable resources
Safety requires an available completion sequence even if all processes request their remaining declared needs.
Question 27. What is virtual memory?
- Only the installed physical RAM
- A faster mechanical disk
- An address-space abstraction that can be backed by RAM and secondary storage
- A CPU instruction cache
Show correct answer and explanation
Correct answer: C. An address-space abstraction that can be backed by RAM and secondary storage
Virtual memory separates logical address spaces from available physical memory and may use disk backing.
Question 28. Paging divides a virtual address space into:
- Directories
- Variable-length processes
- Only contiguous files
- Fixed-size pages
Show correct answer and explanation
Correct answer: D. Fixed-size pages
Paging maps fixed-size virtual pages to physical memory frames.
Question 29. A page fault occurs when:
- A referenced virtual page is not currently mapped as accessible in the required way
- A CPU uses any register
- A file name is too long
- A process finishes normally
Show correct answer and explanation
Correct answer: A. A referenced virtual page is not currently mapped as accessible in the required way
The processor traps to the OS when a page access cannot be satisfied by the current mapping; the OS may load the page or raise an error.
Question 30. What is the role of a translation lookaside buffer (TLB)?
- Permanently storing user files
- Caching recent virtual-to-physical address translations
- Selecting the next disk request
- Tracking semaphore values
Show correct answer and explanation
Correct answer: B. Caching recent virtual-to-physical address translations
A TLB accelerates address translation by caching translation entries.
Operating Systems MCQs: Set 2 (Questions 31–65)
Choose an answer and reveal the correct option with its explanation.
Question 31. Demand paging loads a page?
- Only at boot
- Only at process exit
- When it is needed
- After every instruction
Show correct answer and explanation
Correct answer: C. When it is needed
It brings required pages into memory on demand.
Question 32. A page frame is?
- A process state
- A file extension
- A CPU register
- A fixed-size physical memory block
Show correct answer and explanation
Correct answer: D. A fixed-size physical memory block
Frames hold virtual pages in physical memory.
Question 33. Internal fragmentation is?
- Unused space within allocated units
- Free gaps between allocations
- A missing file
- A deadlock
Show correct answer and explanation
Correct answer: A. Unused space within allocated units
Fixed-size allocations may contain unused portions.
Question 34. External fragmentation is?
- Unused space inside one page
- Scattered free-space gaps
- A page hit
- A context switch
Show correct answer and explanation
Correct answer: B. Scattered free-space gaps
Variable-sized allocations may leave separated holes.
Question 35. A page table primarily maps?
- Files to directories
- Threads to CPUs
- Virtual pages to physical frames
- Ports to processes
Show correct answer and explanation
Correct answer: C. Virtual pages to physical frames
Page tables contain address translation information.
Question 36. LRU evicts the page?
- Loaded first regardless of use
- Used most recently
- Having largest size
- Not used for the longest time
Show correct answer and explanation
Correct answer: D. Not used for the longest time
LRU uses recency of access.
Question 37. FIFO page replacement evicts the page?
- Resident for the longest time
- Used least recently
- Used most frequently
- Having smallest size
Show correct answer and explanation
Correct answer: A. Resident for the longest time
FIFO follows order of arrival into memory.
Question 38. Belady’s anomaly can occur under?
- Optimal replacement
- FIFO replacement
- LRU replacement
- Stack algorithms generally
Show correct answer and explanation
Correct answer: B. FIFO replacement
FIFO can incur more faults with additional frames.
Question 39. Optimal page replacement evicts?
- The smallest page
- The most recent page
- The page whose next use is farthest away
- The earliest disk sector
Show correct answer and explanation
Correct answer: C. The page whose next use is farthest away
OPT assumes knowledge of future references.
Question 40. Thrashing means?
- Normal CPU scheduling
- Fast disk formatting
- Normal boot
- Excessive paging that limits useful progress
Show correct answer and explanation
Correct answer: D. Excessive paging that limits useful progress
Heavy paging can overwhelm useful execution.
Question 41. A working set approximates?
- Recently active pages
- All possible virtual addresses
- Only kernel files
- Every open socket
Show correct answer and explanation
Correct answer: A. Recently active pages
It estimates memory locality over a reference window.
Question 42. Temporal locality means?
- Nearby addresses are always unused
- Recently accessed data may be reused soon
- All disk reads are random
- All processes have equal priority
Show correct answer and explanation
Correct answer: B. Recently accessed data may be reused soon
Temporal locality is reuse over time.
Question 43. Spatial locality means?
- Only the same address is reused
- Every page is on disk
- Nearby addresses may be accessed soon
- Memory must be contiguous
Show correct answer and explanation
Correct answer: C. Nearby addresses may be accessed soon
Spatial locality is proximity in address space.
Question 44. Segmentation uses?
- Only fixed-size physical frames
- Only cache lines
- Only CPU registers
- Variable-size logical memory regions
Show correct answer and explanation
Correct answer: D. Variable-size logical memory regions
Segments can correspond to code, data, or stacks.
Question 45. Copy-on-write delays copying until?
- A shared page is modified
- A process merely reads
- The OS boots
- Every timer interrupt
Show correct answer and explanation
Correct answer: A. A shared page is modified
A private copy is made on a modifying access.
Question 46. A memory-mapped file permits?
- Converting files to processes
- Accessing file data via virtual addresses
- Disabling virtual memory
- Replacing the kernel
Show correct answer and explanation
Correct answer: B. Accessing file data via virtual addresses
Mapped files appear in a process address space.
Question 47. An inode typically stores?
- Only a directory name
- An active CPU register
- Filesystem object metadata and block references
- The scheduler queue
Show correct answer and explanation
Correct answer: C. Filesystem object metadata and block references
Unix-like inodes identify files and retain metadata.
Question 48. A directory is used to?
- Allocate CPU time
- Replace page tables
- Count page faults
- Associate names with filesystem objects
Show correct answer and explanation
Correct answer: D. Associate names with filesystem objects
Directories support file-name lookup.
Question 49. A hard link creates?
- Another name for the same inode
- A full duplicate independent file
- A network connection
- A copied bootloader
Show correct answer and explanation
Correct answer: A. Another name for the same inode
Hard links share an inode in supported filesystems.
Question 50. A symbolic link generally holds?
- A duplicate file payload
- A target pathname
- A new CPU process
- A hardwired disk address
Show correct answer and explanation
Correct answer: B. A target pathname
Symlinks can reference other paths.
Question 51. Filesystem journaling helps?
- Guarantee no data loss ever
- Make CPU instructions faster
- Recover filesystem consistency after crashes
- Prevent all malware
Show correct answer and explanation
Correct answer: C. Recover filesystem consistency after crashes
Logging updates helps recovery from interruptions.
Question 52. A mount point is?
- A process exit code
- A register
- A timer quantum
- A path where a filesystem is attached
Show correct answer and explanation
Correct answer: D. A path where a filesystem is attached
Mounting integrates a filesystem into the namespace.
Question 53. SSTF disk scheduling chooses?
- The closest pending track request
- The oldest request
- The largest file
- The highest process ID
Show correct answer and explanation
Correct answer: A. The closest pending track request
Shortest seek time first minimizes the next seek distance.
Question 54. SCAN disk scheduling?
- Always picks at random
- Sweeps requests in one direction then reverses
- Avoids moving the head
- Uses shortest CPU burst
Show correct answer and explanation
Correct answer: B. Sweeps requests in one direction then reverses
SCAN is sometimes called elevator scheduling.
Question 55. RAID 1 commonly provides?
- Striping with no redundancy
- Only software compression
- Data mirroring
- A CPU cache
Show correct answer and explanation
Correct answer: C. Data mirroring
RAID 1 keeps replicated data on multiple drives.
Question 56. RAID 0 lacks?
- Striping
- Multiple drives
- Parallel access possibilities
- Data redundancy
Show correct answer and explanation
Correct answer: D. Data redundancy
Failure of one striped drive can affect the whole array.
Question 57. A page cache is used to?
- Keep frequently accessed storage data in RAM
- Erase all disk data
- Store only passwords
- Disable buffering
Show correct answer and explanation
Correct answer: A. Keep frequently accessed storage data in RAM
Caching reduces repeated slow storage operations.
Question 58. DMA stands for?
- Dynamic memory algorithm
- Direct memory access
- Disk management architecture
- Dual memory address
Show correct answer and explanation
Correct answer: B. Direct memory access
DMA hardware transfers data with reduced CPU intervention.
Question 59. An interrupt generally?
- Always shuts down the system
- Deletes user files
- Transfers control to a handler for an event
- Replaces all registers permanently
Show correct answer and explanation
Correct answer: C. Transfers control to a handler for an event
Interrupts signal events requiring processor attention.
Question 60. Polling means?
- Waiting only for interrupts
- Rebooting after every I/O
- Using a filesystem journal
- Repeatedly checking a device or condition
Show correct answer and explanation
Correct answer: D. Repeatedly checking a device or condition
Polling explicitly tests status repeatedly.
Question 61. A device driver?
- Interfaces OS software with a device
- Creates an additional processor
- Always allocates swap
- Is a user document
Show correct answer and explanation
Correct answer: A. Interfaces OS software with a device
Drivers operate or coordinate hardware devices.
Question 62. A bootloader?
- Runs user spreadsheets
- Loads or launches OS startup code
- Replaces RAM
- Performs round robin scheduling
Show correct answer and explanation
Correct answer: B. Loads or launches OS startup code
It transfers control to the OS startup sequence.
Question 63. A daemon is commonly?
- A failed CPU core
- An unused disk sector
- A background service process
- A page table entry
Show correct answer and explanation
Correct answer: C. A background service process
Daemons provide background system services.
Question 64. A zombie process has?
- No process identifier
- Run forever at full CPU
- Never been created
- Exited but not yet been reaped
Show correct answer and explanation
Correct answer: D. Exited but not yet been reaped
Its parent has not collected its termination status.
Question 65. An orphan process is one whose?
- Parent terminated while it continued
- Child is blocked
- Priority is zero
- Page table is empty
Show correct answer and explanation
Correct answer: A. Parent terminated while it continued
A system process or subreaper adopts such children.
Operating Systems MCQs: Set 3 (Questions 66–100)
Choose an answer and reveal the correct option with its explanation.
Question 66. fork() generally?
- Always loads a new executable
- Creates a child process
- Destroys the kernel
- Flushes all pages
Show correct answer and explanation
Correct answer: B. Creates a child process
Unix-like fork duplicates a process context.
Question 67. exec() generally?
- Always creates a new process
- Terminates all children
- Replaces the current process program image
- Deletes the file system
Show correct answer and explanation
Correct answer: C. Replaces the current process program image
The process continues with a new program image.
Question 68. wait() allows a parent to?
- Reset the device
- Raise memory frequency
- Choose a page frame
- Collect a terminated child’s status
Show correct answer and explanation
Correct answer: D. Collect a terminated child’s status
Wait-family calls reap child exit status.
Question 69. A pipe provides?
- A byte-stream IPC channel
- An address translation table
- A page replacement algorithm
- A CPU instruction set
Show correct answer and explanation
Correct answer: A. A byte-stream IPC channel
Pipes transmit data between communicating processes.
Question 70. Shared-memory IPC permits?
- Only disk communication
- Processes to access a common memory region
- Automatic race prevention
- Separate memory for each process only
Show correct answer and explanation
Correct answer: B. Processes to access a common memory region
Shared memory is efficient but often needs synchronization.
Question 71. A message queue supports?
- Only page mapping
- Disk head scheduling
- Sending and receiving discrete messages
- CPU voltage regulation
Show correct answer and explanation
Correct answer: C. Sending and receiving discrete messages
It provides message-oriented IPC.
Question 72. A socket is?
- A page frame
- A physical memory chip
- An interrupt handler only
- A communication endpoint
Show correct answer and explanation
Correct answer: D. A communication endpoint
Sockets support local and network communication.
Question 73. A thread pool contains?
- Reusable workers for incoming tasks
- Only terminated processes
- One disk controller
- Cache blocks
Show correct answer and explanation
Correct answer: A. Reusable workers for incoming tasks
Reusing workers can reduce thread creation overhead.
Question 74. Priority inversion occurs when?
- Every thread has equal priority
- A higher-priority task waits for a lower-priority resource holder
- The CPU swaps priorities randomly
- All interrupts are masked forever
Show correct answer and explanation
Correct answer: B. A higher-priority task waits for a lower-priority resource holder
A lower-priority lock holder can delay a higher-priority task.
Question 75. Priority inheritance helps by?
- Preventing all process creation
- Changing page size
- Temporarily boosting a blocking lock holder
- Destroying locks
Show correct answer and explanation
Correct answer: C. Temporarily boosting a blocking lock holder
It mitigates certain forms of priority inversion.
Question 76. A spinlock waits by?
- Always sleeping in the kernel
- Sending disk messages
- Terminating the thread
- Repeatedly testing lock availability
Show correct answer and explanation
Correct answer: D. Repeatedly testing lock availability
Busy waiting can be suitable for brief waits.
Question 77. A condition variable helps threads?
- Wait for a shared-state condition to change
- Manage physical sectors
- Translate virtual addresses
- Execute privileged instructions
Show correct answer and explanation
Correct answer: A. Wait for a shared-state condition to change
Threads wait and recheck a predicate after notification.
Question 78. A barrier requires participating threads to?
- Terminate immediately
- Wait until all have arrived
- Share a PID
- Hold all locks indefinitely
Show correct answer and explanation
Correct answer: B. Wait until all have arrived
Barriers coordinate phases of parallel work.
Question 79. Livelock means processes?
- All sleep permanently
- Finish normally
- Remain active without making progress
- Have no memory
Show correct answer and explanation
Correct answer: C. Remain active without making progress
Continual reaction can prevent useful progress.
Question 80. An atomic operation?
- Always requires one CPU cycle
- Cannot involve memory
- Must be executed by one process total
- Appears indivisible to competing observers
Show correct answer and explanation
Correct answer: D. Appears indivisible to competing observers
Atomicity hides intermediate states.
Question 81. An access control list defines?
- Object permissions for users or groups
- CPU speed
- Page size
- Disk cylinder location
Show correct answer and explanation
Correct answer: A. Object permissions for users or groups
ACL entries specify access rights.
Question 82. Least privilege recommends?
- Full administrator rights for everyone
- Only permissions needed for a task
- No authentication
- Unlimited data retention
Show correct answer and explanation
Correct answer: B. Only permissions needed for a task
Restricting permissions limits possible damage.
Question 83. Authentication checks?
- Which actions are allowed
- How much memory is free
- An identity claim
- CPU scheduling policy
Show correct answer and explanation
Correct answer: C. An identity claim
Authentication verifies who a subject is.
Question 84. Authorization controls?
- Identity verification only
- File compression
- Clock speed
- Permitted actions on resources
Show correct answer and explanation
Correct answer: D. Permitted actions on resources
Authorization decides what access is allowed.
Question 85. A capability is typically?
- An unforgeable reference conveying authority
- A disk cylinder
- A CPU burst
- A process state
Show correct answer and explanation
Correct answer: A. An unforgeable reference conveying authority
Capabilities designate resources and associated permissions.
Question 86. Sandboxing aims to?
- Give all processes root privileges
- Restrict a program’s accessible resources and effects
- Eliminate testing
- Disable all input
Show correct answer and explanation
Correct answer: B. Restrict a program’s accessible resources and effects
Isolation limits the impact of untrusted code.
Question 87. A hypervisor manages?
- Only shell commands
- Directory names
- Virtual machines
- Memory pages only
Show correct answer and explanation
Correct answer: C. Virtual machines
Hypervisors provide and coordinate virtual hardware.
Question 88. Full virtualization lets a guest OS?
- Always use the host kernel as its own
- Avoid all CPU scheduling
- Operate without memory
- Run against virtualized hardware
Show correct answer and explanation
Correct answer: D. Run against virtualized hardware
Guest systems see a virtual hardware interface.
Question 89. Containers generally?
- Share the host OS kernel
- Require a separate physical host each
- Emulate every hardware component
- Cannot isolate processes
Show correct answer and explanation
Correct answer: A. Share the host OS kernel
OS-level containers isolate workloads with a common kernel.
Question 90. Linux namespaces offer?
- Physical disk mirroring
- Scoped views of system resources
- Password hashing only
- Hard-real-time scheduling guarantees
Show correct answer and explanation
Correct answer: B. Scoped views of system resources
Namespaces isolate resources such as process IDs and networking.
Question 91. Linux cgroups support?
- Filesystem journaling only
- Translation of source code
- Process-group resource limits and accounting
- Sector-level formatting
Show correct answer and explanation
Correct answer: C. Process-group resource limits and accounting
Control groups track and constrain CPU, memory and other resource use.
Question 92. A real-time OS emphasizes?
- Only maximum graphical quality
- Only batch jobs
- No interrupt processing
- Predictable timing and deadline behavior
Show correct answer and explanation
Correct answer: D. Predictable timing and deadline behavior
Real-time systems prioritize timely task completion.
Question 93. Missing a hard real-time deadline?
- Can constitute system failure
- Is always harmless
- Always improves throughput
- Means the processor lacks a cache
Show correct answer and explanation
Correct answer: A. Can constitute system failure
Hard real-time correctness includes meeting specified deadlines.
Question 94. Response time in scheduling commonly measures?
- Only time spent executing instructions
- Delay until the first service or response
- Time spent solely on disk
- Number of interrupts
Show correct answer and explanation
Correct answer: B. Delay until the first service or response
Scheduling response time is commonly first CPU service minus arrival time.
Question 95. Turnaround time is?
- CPU burst minus waiting time
- Only I/O wait time
- Completion time minus arrival time
- Number of times scheduled
Show correct answer and explanation
Correct answer: C. Completion time minus arrival time
Turnaround is total elapsed time from arrival to completion.
Question 96. Waiting time in CPU scheduling is?
- Execution time only
- Overall turnaround time
- Time spent in terminated state
- Total time spent in the ready queue
Show correct answer and explanation
Correct answer: D. Total time spent in the ready queue
Waiting time counts intervals ready but not executing.
Question 97. Throughput means?
- Completed tasks per unit time
- Percent disk capacity
- Mean process identifier
- Total available memory
Show correct answer and explanation
Correct answer: A. Completed tasks per unit time
Throughput is the completion rate.
Question 98. CPU utilization is?
- The number of processors
- The proportion of measured CPU time spent busy
- The number of loaded files
- RAM allocated to the kernel
Show correct answer and explanation
Correct answer: B. The proportion of measured CPU time spent busy
Utilization compares busy time with available processor time.
Question 99. Multiprogramming helps CPU utilization by?
- Disabling all I/O
- Preventing context switches
- Running another task while one waits for I/O
- Requiring one process only
Show correct answer and explanation
Correct answer: C. Running another task while one waits for I/O
Other runnable tasks can occupy the CPU during I/O waits.
Question 100. Which technique helps reduce busy waiting for long resource waits?
- Using an endless spin loop
- Disabling the scheduler
- Continuously polling at maximum speed
- Blocking a thread until notification
Show correct answer and explanation
Correct answer: D. Blocking a thread until notification
Blocking lets other runnable work use the CPU instead of wasting cycles.
Operating Systems MCQs: Set 4 (Questions 101–150)
Answer each question and reveal the explanation.
Question 101. A CPU burst is?
- An interval when a task executes on the CPU
- Time spent waiting for disk I/O
- A memory allocation unit
- A directory operation
Show correct answer and explanation
Correct answer: A. An interval when a task executes on the CPU
A CPU burst is continuous CPU execution between waits or preemptions.
Question 102. For nonpreemptive FCFS, tasks A(4 ms) then B(3 ms) both arriving at time zero yield B waiting time of?
- 0 ms
- 4 ms
- 3 ms
- 7 ms
Show correct answer and explanation
Correct answer: B. 4 ms
B waits for A’s four-millisecond burst.
Question 103. For a process arriving at time 2 and completing at time 11, turnaround time is?
- 11 time units
- 13 time units
- 9 time units
- 2 time units
Show correct answer and explanation
Correct answer: C. 9 time units
Turnaround equals 11 minus 2, or 9.
Question 104. If a task’s turnaround is 12 ms and its CPU burst is 5 ms with no I/O, its waiting time is?
- 5 ms
- 12 ms
- 17 ms
- 7 ms
Show correct answer and explanation
Correct answer: D. 7 ms
For this simple model, waiting equals turnaround minus burst, or 7.
Question 105. A preemptive scheduler can?
- Interrupt a running process to run another
- Switch tasks only on termination
- Never use interrupts
- Run only one application in the system
Show correct answer and explanation
Correct answer: A. Interrupt a running process to run another
Preemption allows the OS to suspend a currently executing task.
Question 106. Which scheduler normally chooses from the ready queue for the next CPU allocation?
- Long-term scheduler only
- Short-term scheduler
- File-system allocator
- Disk controller
Show correct answer and explanation
Correct answer: B. Short-term scheduler
The short-term scheduler dispatches ready tasks.
Question 107. The long-term scheduler primarily controls?
- Memory address translation
- Filesystem permissions
- Admission of jobs and degree of multiprogramming
- Interrupt vector entries
Show correct answer and explanation
Correct answer: C. Admission of jobs and degree of multiprogramming
Job admission regulates how many processes enter the active system.
Question 108. An I/O-bound task generally has?
- Only very long CPU bursts
- No blocked states
- No process control block
- Frequent I/O waits with relatively short CPU bursts
Show correct answer and explanation
Correct answer: D. Frequent I/O waits with relatively short CPU bursts
I/O-bound work often alternates small CPU bursts and device waits.
Question 109. The convoy effect under FCFS refers to?
- Short jobs waiting behind a long-running job
- Tasks receiving equal CPU time
- A virtual memory mapping error
- Several disks being mirrored
Show correct answer and explanation
Correct answer: A. Short jobs waiting behind a long-running job
One long CPU-bound job can delay shorter jobs.
Question 110. A multilevel feedback queue scheduler may?
- Require all tasks to have equal fixed priority forever
- Move tasks between queues based on observed behavior
- Eliminate all starvation automatically
- Use no time quantum
Show correct answer and explanation
Correct answer: B. Move tasks between queues based on observed behavior
Feedback queues dynamically adjust scheduling priorities or classes.
Question 111. The dispatcher is responsible for?
- Assigning filenames to inodes
- Encrypting all files
- Transferring CPU control to the selected task
- Changing physical RAM capacity
Show correct answer and explanation
Correct answer: C. Transferring CPU control to the selected task
Dispatching involves context switching and transfer to the chosen execution context.
Question 112. Dispatch latency measures?
- Total time for a hard drive to boot
- A page’s virtual address
- Average file size
- Time needed to stop one task and start another
Show correct answer and explanation
Correct answer: D. Time needed to stop one task and start another
Dispatcher overhead adds latency to scheduling transitions.
Question 113. A thread’s own execution state typically includes?
- Program counter, registers and stack
- Only a shared process heap
- Only filesystem inode
- All other threads’ registers
Show correct answer and explanation
Correct answer: A. Program counter, registers and stack
Threads maintain individual control and stack state.
Question 114. User-level threading can have a limitation when the kernel sees only one schedulable entity?
- Each user thread must own a disk
- A blocking system call may block all its user threads
- Processes cannot share memory
- CPU instructions become privileged
Show correct answer and explanation
Correct answer: B. A blocking system call may block all its user threads
Some many-to-one threading implementations block an entire process on a blocking syscall.
Question 115. The many-to-one thread mapping model maps?
- One user thread onto many kernels
- Each thread to a different disk
- Many user threads onto one kernel thread
- One process to one filesystem
Show correct answer and explanation
Correct answer: C. Many user threads onto one kernel thread
Many-to-one user threads share a kernel scheduling entity.
Question 116. A multicore processor can allow?
- Only serial execution under all conditions
- No context switches
- No thread communication
- Actual parallel execution of different threads on different cores
Show correct answer and explanation
Correct answer: D. Actual parallel execution of different threads on different cores
Distinct CPU cores can execute tasks at the same time.
Question 117. Concurrency differs from parallelism because concurrency?
- Concerns overlapping progress, not necessarily simultaneous execution
- Always requires multiple physical CPUs
- Never involves shared state
- Means running exactly four threads
Show correct answer and explanation
Correct answer: A. Concerns overlapping progress, not necessarily simultaneous execution
A single core can interleave concurrent activities without true simultaneous execution.
Question 118. Amdahl’s law implies that?
- More cores always give unlimited speedup
- A serial portion limits speedup from parallelization
- A parallel program never has overhead
- Scheduling never affects performance
Show correct answer and explanation
Correct answer: B. A serial portion limits speedup from parallelization
Unparallelizable work limits theoretical overall speedup.
Question 119. If half a workload is strictly serial, maximum speedup as processor count approaches infinity is?
- 4
- 8
- 2
- Unlimited
Show correct answer and explanation
Correct answer: C. 2
Amdahl’s bound is 1 / 0.5 = 2.
Question 120. Which property requires a critical-section algorithm to eventually let waiting participants make progress under suitable conditions?
- Disk mirroring
- File locking alone
- Memory compaction
- Bounded waiting
Show correct answer and explanation
Correct answer: D. Bounded waiting
Bounded waiting limits overtaking before a waiting participant can enter.
Question 121. A counting semaphore initialized to 3 can represent?
- Three simultaneously available resource units
- Exactly one CPU
- Three processes that must terminate
- Three page faults
Show correct answer and explanation
Correct answer: A. Three simultaneously available resource units
The count can track multiple interchangeable resource instances.
Question 122. The producer–consumer problem illustrates?
- Only address translation
- Synchronization over a shared bounded buffer
- Filesystem indexing
- Disk partitioning
Show correct answer and explanation
Correct answer: B. Synchronization over a shared bounded buffer
Producers and consumers coordinate access and available slots.
Question 123. A lost wakeup is a synchronization problem in which?
- A process loses its filename
- The CPU discards the next instruction
- A notification can be missed because waiting is not coordinated correctly
- A disk loses power
Show correct answer and explanation
Correct answer: C. A notification can be missed because waiting is not coordinated correctly
Correct synchronization must prevent races between checking predicates and sleeping.
Question 124. Why must condition-variable waits usually recheck a predicate in a loop?
- The lock is never released
- The CPU never interrupts threads
- All conditions are permanent
- Wakeups may occur without the desired condition being true
Show correct answer and explanation
Correct answer: D. Wakeups may occur without the desired condition being true
Spurious wakeups or competing threads can invalidate the predicate.
Question 125. Deadlock detection differs from deadlock prevention because it?
- Allows deadlocks to arise and subsequently identifies them
- Removes all circular wait by design
- Always preallocates every resource
- Requires only one process
Show correct answer and explanation
Correct answer: A. Allows deadlocks to arise and subsequently identifies them
Detection finds problematic resource cycles or allocation states after they occur.
Question 126. Resource allocation graphs with one instance per resource type can indicate deadlock when?
- No edges exist
- A directed cycle exists
- Every process is ready
- All resources are free
Show correct answer and explanation
Correct answer: B. A directed cycle exists
With single-instance resource types, a cycle implies deadlock.
Question 127. Deadlock recovery can involve?
- Only disabling authentication
- Always increasing CPU clock speed
- Terminating processes or preempting recoverable resources
- Formatting the system partition
Show correct answer and explanation
Correct answer: C. Terminating processes or preempting recoverable resources
Recovery may break a cycle by rollback, termination or resource intervention.
Question 128. A wait-for graph represents?
- Filesystem hierarchy only
- Page replacement order
- Routing information only
- Dependencies among processes waiting for resources held by others
Show correct answer and explanation
Correct answer: D. Dependencies among processes waiting for resources held by others
Wait-for edges indicate process-to-process waiting dependencies.
Question 129. A reentrant lock permits?
- Its owning thread to acquire it recursively under defined semantics
- Every thread to enter simultaneously
- No thread to release it
- Only processes to use it
Show correct answer and explanation
Correct answer: A. Its owning thread to acquire it recursively under defined semantics
A reentrant mutex tracks recursive ownership by the same thread.
Question 130. Readers–writers locks typically allow?
- Unlimited simultaneous writers
- Multiple simultaneous readers or one exclusive writer
- Exactly one reader under all conditions
- No lock acquisition by readers
Show correct answer and explanation
Correct answer: B. Multiple simultaneous readers or one exclusive writer
The design separates shared read access from exclusive write access.
Question 131. A memory address generated by a program before translation is commonly called?
- Physical sector number
- Device IRQ
- Virtual or logical address
- Disk cylinder
Show correct answer and explanation
Correct answer: C. Virtual or logical address
A process operates in virtual address space before translation.
Question 132. A physical address identifies?
- A filename
- A process exit status
- A page replacement priority
- A location in hardware-addressable memory
Show correct answer and explanation
Correct answer: D. A location in hardware-addressable memory
MMU translation yields a physical memory address.
Question 133. For a page size of 4 KiB, a 12-bit page offset can address?
- 4096 byte positions
- 1024 byte positions
- 512 byte positions
- 8192 byte positions
Show correct answer and explanation
Correct answer: A. 4096 byte positions
2^12 = 4096 bytes.
Question 134. A virtual address of 8200 with page size 4096 has page number?
- 1
- 2
- 3
- 8
Show correct answer and explanation
Correct answer: B. 2
Integer division 8200 // 4096 yields virtual page 2.
Question 135. The offset for virtual address 8200 and page size 4096 is?
- 0
- 16
- 8
- 4096
Show correct answer and explanation
Correct answer: C. 8
8200 – 2×4096 = 8.
Question 136. An inverted page table usually has entries indexed mainly by?
- Directory names
- CPU thread priorities
- File extensions
- Physical frames rather than every virtual page of every process
Show correct answer and explanation
Correct answer: D. Physical frames rather than every virtual page of every process
An inverted structure records mappings for physical frames, reducing certain table overheads.
Question 137. A multilevel page table helps by?
- Allocating translation structures on demand for used address ranges
- Making all page faults impossible
- Eliminating virtual addresses
- Guaranteeing a TLB hit
Show correct answer and explanation
Correct answer: A. Allocating translation structures on demand for used address ranges
Hierarchical tables need not allocate entries for entirely unused ranges.
Question 138. A TLB miss necessarily means?
- The entire process must terminate
- A cached translation was not found, but the page may still be resident
- The disk must be faulty
- A page fault always occurred
Show correct answer and explanation
Correct answer: B. A cached translation was not found, but the page may still be resident
A TLB miss can be resolved by consulting page tables without a disk access.
Question 139. A valid or present page-table bit often indicates?
- Whether the filename has been saved
- Whether the CPU has two cores
- Whether a mapping is valid or resident according to the architecture
- Whether a process owns a lock
Show correct answer and explanation
Correct answer: C. Whether a mapping is valid or resident according to the architecture
Architectures use presence/validity bits to determine accessible mappings.
Question 140. A dirty page is a page that?
- Has never been accessed
- Cannot be mapped
- Is always shared read-only
- Has been modified since it was loaded or last written back
Show correct answer and explanation
Correct answer: D. Has been modified since it was loaded or last written back
Dirty state indicates the backing copy may require updating.
Question 141. The reference bit in a page-table entry can assist?
- Approximate recency-based page replacement
- CPU power supply control
- Disk partition formatting
- File naming
Show correct answer and explanation
Correct answer: A. Approximate recency-based page replacement
Reference information can guide clock and related algorithms.
Question 142. Clock page replacement uses?
- Full future reference knowledge
- A circular scan and reference bits to approximate LRU
- Only process identifiers
- Disk sector numbers
Show correct answer and explanation
Correct answer: B. A circular scan and reference bits to approximate LRU
The clock algorithm gives referenced pages another chance.
Question 143. A page-replacement algorithm with the stack property has?
- Guaranteed constant fault rate
- No memory references
- Nonincreasing fault count as allocated frame count grows
- An identical result to FIFO on every trace
Show correct answer and explanation
Correct answer: C. Nonincreasing fault count as allocated frame count grows
Stack algorithms retain the smaller-frame pages within larger-frame resident sets.
Question 144. A page table’s execute-disable permission is meant to?
- Prevent page reads
- Always disable write access
- Make pages physically contiguous
- Prevent instruction execution from protected pages
Show correct answer and explanation
Correct answer: D. Prevent instruction execution from protected pages
NX or execute-disable bits restrict code execution in designated regions.
Question 145. Address space layout randomization (ASLR) aims to?
- Make key process memory locations harder to predict
- Eliminate page tables
- Encrypt every CPU register
- Prevent all programming errors
Show correct answer and explanation
Correct answer: A. Make key process memory locations harder to predict
ASLR randomizes selected address locations to hinder certain exploits.
Question 146. Memory protection between processes helps?
- Force all processes to share one stack
- Prevent unauthorized reading or writing across address spaces
- Guarantee process completion
- Avoid all disk I/O
Show correct answer and explanation
Correct answer: B. Prevent unauthorized reading or writing across address spaces
Per-process mappings and access rights enforce isolation.
Question 147. The heap in a conventional process layout is commonly used for?
- Storing only CPU flags
- The bootloader
- Dynamic memory allocation
- Physical disk sectors
Show correct answer and explanation
Correct answer: C. Dynamic memory allocation
Many programs allocate variable-lifetime objects from the heap.
Question 148. A stack is commonly used for?
- Permanent file storage
- Disk device registers only
- Process scheduling priorities
- Function call frames and automatic local variables
Show correct answer and explanation
Correct answer: D. Function call frames and automatic local variables
The call stack tracks nested calls, return addresses and local state.
Question 149. A guard page near a stack can help?
- Detect some stack overflows through access faults
- Automatically increase CPU performance
- Prevent all deadlocks
- Guarantee no segmentation fault
Show correct answer and explanation
Correct answer: A. Detect some stack overflows through access faults
An inaccessible guard region can expose out-of-bounds stack growth.
Question 150. Which mechanism permits memory allocation without moving every existing process segment?
- Only contiguous partitions
- Paging
- Only compaction
- Only fixed single-task memory
Show correct answer and explanation
Correct answer: B. Paging
Paging maps noncontiguous physical frames to a contiguous virtual view.
Operating Systems MCQs: Set 5 (Questions 151–200)
Read each question and check the answer with its explanation.
Question 151. A filesystem block allocation bitmap records?
- Which CPU task runs next
- Which keyboard key was pressed
- Which disk blocks are free or allocated
- How many threads exist
Show correct answer and explanation
Correct answer: C. Which disk blocks are free or allocated
A bitmap tracks allocation status for storage blocks.
Question 152. Contiguous file allocation can suffer from?
- An inability to read sequentially
- An absence of any metadata
- Only process deadlocks
- External fragmentation and difficulty growing files
Show correct answer and explanation
Correct answer: D. External fragmentation and difficulty growing files
Contiguous extents can be hard to grow when nearby space is occupied.
Question 153. Indexed file allocation uses?
- An index of block addresses for a file
- A separate CPU for each block
- Only adjacent blocks
- A semaphore counter
Show correct answer and explanation
Correct answer: A. An index of block addresses for a file
An index structure points to storage blocks belonging to a file.
Question 154. A file descriptor in a Unix-like process is?
- The entire file’s content
- A small integer handle referring to an open file description
- A disk cylinder number
- The process priority
Show correct answer and explanation
Correct answer: B. A small integer handle referring to an open file description
The process descriptor table maps integers to opened resources.
Question 155. What does an open() system call typically return on success in Unix-like systems?
- A physical disk address
- The entire file
- A nonnegative file descriptor
- A memory page number
Show correct answer and explanation
Correct answer: C. A nonnegative file descriptor
The returned descriptor is used in later operations such as read and write.
Question 156. The read() operation on a regular file generally?
- Always deletes the file
- Increases process priority
- Changes the inode type
- Transfers bytes from the file to a user-provided buffer
Show correct answer and explanation
Correct answer: D. Transfers bytes from the file to a user-provided buffer
A read obtains file content and may advance the file offset.
Question 157. The seek operation on a seekable open file changes?
- The current file offset
- The CPU register count
- The size of physical RAM
- The user’s group ID
Show correct answer and explanation
Correct answer: A. The current file offset
File-position operations set where subsequent reads or writes occur.
Question 158. What is a file’s access time metadata often intended to record?
- The file’s source code language
- The last access time under applicable filesystem policy
- The last CPU dispatch time
- The owner’s password
Show correct answer and explanation
Correct answer: B. The last access time under applicable filesystem policy
Access-time metadata can be updated on reads depending on mount and filesystem settings.
Question 159. A filesystem crash-consistency guarantee concerns?
- Faster CPU vector instructions
- Network routing efficiency
- Valid on-disk structures after interrupted updates
- Password complexity
Show correct answer and explanation
Correct answer: C. Valid on-disk structures after interrupted updates
Crash consistency addresses partially completed persistent operations.
Question 160. What does fsync() aim to do for a file descriptor?
- Schedule a process on a CPU
- Replace a filename with another process
- Immediately reboot the system
- Request synchronization of modified file data and associated metadata to stable storage
Show correct answer and explanation
Correct answer: D. Request synchronization of modified file data and associated metadata to stable storage
fsync requests that relevant buffered updates be persisted according to system guarantees.
Question 161. Write-back caching differs from write-through because it?
- Can defer propagation of writes to lower storage levels
- Always writes every change synchronously
- Cannot hold dirty data
- Eliminates consistency concerns
Show correct answer and explanation
Correct answer: A. Can defer propagation of writes to lower storage levels
Write-back caches may temporarily retain modified data.
Question 162. Sequential disk access is often faster than random access on hard disks because?
- Every request skips the controller
- It reduces repeated seek and rotational overhead
- It avoids all copying
- It disables caching
Show correct answer and explanation
Correct answer: B. It reduces repeated seek and rotational overhead
Mechanical head movement makes scattered accesses costly.
Question 163. Solid-state drives generally have lower random access latency than magnetic disks because?
- They require a moving disk head
- They have no controller
- They lack mechanical seek and rotation
- They cannot perform block reads
Show correct answer and explanation
Correct answer: C. They lack mechanical seek and rotation
Flash storage does not require moving mechanical heads.
Question 164. Wear leveling in flash storage aims to?
- Make every file size equal
- Prevent all read operations
- Increase CPU context switches
- Distribute erase cycles across flash cells
Show correct answer and explanation
Correct answer: D. Distribute erase cycles across flash cells
Flash cells have finite program/erase endurance.
Question 165. TRIM on supported SSD storage informs the device?
- Which logical blocks are no longer needed
- Which process should run next
- Which network address was allocated
- How many threads are blocked
Show correct answer and explanation
Correct answer: A. Which logical blocks are no longer needed
Discard hints can help SSD firmware manage invalidated storage blocks.
Question 166. Disk partitioning divides a device into?
- Separate CPU cores
- Logical regions that can be managed separately
- Multiple running programs
- Virtual CPU instructions
Show correct answer and explanation
Correct answer: B. Logical regions that can be managed separately
Partitions define addressable storage regions.
Question 167. A block device interface commonly transfers data in?
- Only individual characters
- Only network packets
- Addressable blocks or sectors
- Only CPU instructions
Show correct answer and explanation
Correct answer: C. Addressable blocks or sectors
Block devices offer random-addressed block access abstractions.
Question 168. A character device is commonly modeled as?
- A fixed-address disk
- A page table
- An instruction cache
- A stream-oriented I/O device
Show correct answer and explanation
Correct answer: D. A stream-oriented I/O device
Character device interfaces often expose streams rather than random-access blocks.
Question 169. A hardware interrupt vector or table helps?
- Locate the handler for a particular interrupt or exception
- Select a user’s home directory
- Determine a process’s file offset
- Compress application data
Show correct answer and explanation
Correct answer: A. Locate the handler for a particular interrupt or exception
The processor uses configured interrupt/exception entries to dispatch handlers.
Question 170. An exception differs from an ordinary asynchronous device interrupt because it?
- Can never enter kernel mode
- Is typically associated with execution of the current instruction
- Must be caused by a network card
- Always means hardware failure
Show correct answer and explanation
Correct answer: B. Is typically associated with execution of the current instruction
Synchronous exceptions arise from instruction execution, such as faults or traps.
Question 171. A trap is often used for?
- File defragmentation only
- Choosing the largest process
- Intentional transfer into a privileged handler, including system calls
- Mirroring disks
Show correct answer and explanation
Correct answer: C. Intentional transfer into a privileged handler, including system calls
Architectures use traps or related exception mechanisms for controlled OS entry.
Question 172. What does a timer interrupt enable?
- Removal of all thread states
- Disk mirroring without a controller
- Elimination of system calls
- Periodic opportunities for the OS to regain control and preempt work
Show correct answer and explanation
Correct answer: D. Periodic opportunities for the OS to regain control and preempt work
Timers support preemptive scheduling and time accounting.
Question 173. An interrupt service routine should often be kept short because?
- Lengthy handlers increase interrupt latency and disrupt other work
- It must never access memory
- It cannot communicate with drivers
- It always runs in user mode
Show correct answer and explanation
Correct answer: A. Lengthy handlers increase interrupt latency and disrupt other work
Extended interrupt handling delays other system activity.
Question 174. Kernel space and user space separation primarily supports?
- Doubling physical memory
- Protection and controlled privileged operations
- Eliminating all hardware faults
- Replacing device drivers
Show correct answer and explanation
Correct answer: B. Protection and controlled privileged operations
Privilege boundaries prevent ordinary applications from arbitrarily accessing kernel resources.
Question 175. A microkernel architecture tends to move?
- Every application into hardware firmware
- All system calls into disk sectors
- Many services into user-space processes
- The CPU scheduler into source files
Show correct answer and explanation
Correct answer: C. Many services into user-space processes
Microkernels keep a small trusted core while moving services outside it.
Question 176. A monolithic kernel commonly includes?
- Only a command-line shell
- No scheduling logic
- One user application per kernel
- Many OS services and drivers within kernel address space
Show correct answer and explanation
Correct answer: D. Many OS services and drivers within kernel address space
Monolithic kernels implement a broad set of services in privileged code.
Question 177. A hybrid kernel design generally?
- Combines characteristics of different kernel architectural approaches
- Disables all drivers
- Runs without a kernel mode
- Always requires two physical processors
Show correct answer and explanation
Correct answer: A. Combines characteristics of different kernel architectural approaches
Hybrid designs blend monolithic and microkernel features.
Question 178. Kernel modules are commonly used to?
- Edit user documents
- Load or unload selected kernel functionality dynamically
- Replace file permissions automatically
- Remove virtual memory
Show correct answer and explanation
Correct answer: B. Load or unload selected kernel functionality dynamically
Modular kernels can extend capabilities with loadable components.
Question 179. A shell is primarily?
- A page replacement algorithm
- A physical CPU package
- A command interpreter or interface for interacting with the OS
- A disk sector map
Show correct answer and explanation
Correct answer: C. A command interpreter or interface for interacting with the OS
Shells parse commands and initiate programs or shell built-ins.
Question 180. An environment variable is?
- A physical RAM frame
- An immutable disk sector
- A privilege mode
- A named value provided in a process environment
Show correct answer and explanation
Correct answer: D. A named value provided in a process environment
Programs can read named environment entries such as PATH.
Question 181. PATH on many Unix-like systems is used to?
- List directories searched for executable commands
- Store all physical addresses
- Define the number of CPU cores
- Set every file’s owner
Show correct answer and explanation
Correct answer: A. List directories searched for executable commands
Command lookup searches directories named in PATH.
Question 182. A signal in Unix-like operating systems is?
- A dedicated disk partition
- An asynchronous software notification to a process or thread
- A page table level
- A file allocation method
Show correct answer and explanation
Correct answer: B. An asynchronous software notification to a process or thread
Signals notify execution contexts about events such as termination requests.
Question 183. SIGKILL on Unix-like systems typically?
- Requests a graceful handler that must run
- Always suspends the process for exactly one second
- Terminates a process and cannot be caught or ignored
- Flushes all filesystem caches
Show correct answer and explanation
Correct answer: C. Terminates a process and cannot be caught or ignored
SIGKILL forces termination through the kernel’s signal machinery.
Question 184. SIGTERM is typically used to?
- Guarantee uncatchable termination
- Reformat a disk
- Increase process priority
- Request a process to terminate, allowing it to handle the request
Show correct answer and explanation
Correct answer: D. Request a process to terminate, allowing it to handle the request
SIGTERM can be caught to perform cleanup.
Question 185. A file permission mode such as rw-r–r– means?
- Owner can read/write; group and others can read
- Every user can execute
- Only the owner can read
- The file is encrypted
Show correct answer and explanation
Correct answer: A. Owner can read/write; group and others can read
The three permission triplets describe owner, group and other access.
Question 186. The execute permission on a directory in Unix-like systems mainly enables?
- Running the directory as a program
- Traversing or searching through that directory
- Compressing its contents
- Deleting every file automatically
Show correct answer and explanation
Correct answer: B. Traversing or searching through that directory
Directory execute permission controls traversal and pathname resolution.
Question 187. The setuid bit on an executable may cause it to?
- Always disable authentication
- Run only as its invoking user in all cases
- Run with the file owner’s effective user ID under applicable rules
- Increase CPU utilization
Show correct answer and explanation
Correct answer: C. Run with the file owner’s effective user ID under applicable rules
Setuid can change effective credentials when permitted and not suppressed.
Question 188. A user ID (UID) is used to?
- Locate a virtual page
- Number disk tracks
- Choose timer frequency
- Identify a user for access-control decisions
Show correct answer and explanation
Correct answer: D. Identify a user for access-control decisions
UIDs are operating-system identity attributes.
Question 189. Audit logging helps security by?
- Recording relevant system events for investigation and accountability
- Preventing every exploit automatically
- Replacing backups
- Removing all access controls
Show correct answer and explanation
Correct answer: A. Recording relevant system events for investigation and accountability
Audit logs provide evidence about security-relevant activity.
Question 190. A race involving a time-of-check-to-time-of-use (TOCTOU) vulnerability occurs when?
- A file is always read atomically
- A checked condition can change before an operation relies on it
- The CPU runs with one core
- The operating system never preempts
Show correct answer and explanation
Correct answer: B. A checked condition can change before an operation relies on it
Attackers can exploit a gap between checking state and using it.
Question 191. A reference monitor is intended to?
- Replace every driver
- Optimize disk seeks
- Mediate security-sensitive access according to policy
- Compile shell scripts
Show correct answer and explanation
Correct answer: C. Mediate security-sensitive access according to policy
The reference-monitor idea emphasizes complete mediation and tamper resistance.
Question 192. A kernel panic generally indicates?
- Successful process completion
- A user-space warning only
- A normal disk scheduling event
- A severe kernel error from which normal operation cannot safely continue
Show correct answer and explanation
Correct answer: D. A severe kernel error from which normal operation cannot safely continue
The kernel may halt or reboot after an unrecoverable fault.
Question 193. System uptime measures?
- Elapsed time since the system last booted
- Total time spent in user mode only
- The disk’s age
- Average application run time
Show correct answer and explanation
Correct answer: A. Elapsed time since the system last booted
Uptime records duration of continuous system operation since startup.
Question 194. A watchdog timer can be used to?
- Allocate virtual memory pages
- Detect missing progress and trigger recovery actions
- Perform cryptographic hashing
- Replace filesystem permissions
Show correct answer and explanation
Correct answer: B. Detect missing progress and trigger recovery actions
Software or hardware must periodically service a watchdog to avoid its timeout.
Question 195. Checkpointing supports fault tolerance by?
- Ensuring programs never crash
- Removing all disk writes
- Saving recoverable execution state periodically
- Forcing all tasks to be real time
Show correct answer and explanation
Correct answer: C. Saving recoverable execution state periodically
A checkpoint may help restart work from a recent state.
Question 196. A snapshot in a storage system commonly represents?
- A CPU scheduling queue
- An interrupt vector
- A thread stack
- A preserved point-in-time view of data
Show correct answer and explanation
Correct answer: D. A preserved point-in-time view of data
Snapshots capture a storage state, often using copy-on-write mechanisms.
Question 197. What does a backup provide that RAID redundancy alone may not?
- Recovery from accidental deletion or logical corruption
- A higher CPU clock
- More available registers
- Automatic process prioritization
Show correct answer and explanation
Correct answer: A. Recovery from accidental deletion or logical corruption
Drive redundancy does not replace independently recoverable copies.
Question 198. A distributed filesystem commonly aims to?
- Eliminate all network communication
- Provide file access across multiple networked machines
- Require all files on one local disk
- Replace user accounts with PIDs
Show correct answer and explanation
Correct answer: B. Provide file access across multiple networked machines
Distributed filesystems expose shared data across systems.
Question 199. File locking is used to?
- Convert files to hard links
- Compress every write
- Coordinate access to shared files or file regions
- Allocate memory frames
Show correct answer and explanation
Correct answer: C. Coordinate access to shared files or file regions
Locks help applications coordinate concurrent access.
Question 200. Which is a sensible approach to OS performance measurement?
- Evaluate only a single unexplained number
- Assume all hardware behaves identically
- Avoid recording configurations
- Measure defined workloads with relevant latency, throughput and utilization metrics
Show correct answer and explanation
Correct answer: D. Measure defined workloads with relevant latency, throughput and utilization metrics
Meaningful performance comparisons require workloads and reproducible metrics.
