Which one of the following errors will be handled by the operating system?
2022
Which one of the following errors will be handled by the operating system?
- A.
Lack of paper in printer
- B.
Connection failure in the network
- C.
Power failure
- D.
All of the above
Attempted by 950 students.
Show answer & explanation
Correct answer: D
Concept
An operating system acts as the manager between hardware and user programs. A core duty of that manager is error/exception handling: it continuously monitors its resources and uses interrupt service routines and error-management routines to detect a fault, respond to it, and report it to the user instead of letting the system crash silently. Device, network, and power events all surface to the OS as interrupts or status conditions, so the OS is the layer responsible for catching and managing them.
Applying it to each error
Lack of paper in printer: the printer raises a device status interrupt; the OS device driver/spooler detects the out-of-paper condition and notifies the user, pausing the print job.
Connection failure in the network: the OS networking subsystem detects the broken link, manages timeouts/retries, and reports the failure to the application.
Power failure: a power-fail interrupt lets the OS run a recovery routine to flush buffers, save state, and shut down gracefully so data is protected.
Result
Each listed error is detected and managed at the OS level, so no single option alone captures the full set — the OS handles every one of them. Hence the answer is "All of the above."