What is the main function of a device driver in an operating system?
a) To provide a graphical interface for users
b) To control and operate specific hardware devices
c) To store and retrieve files from the hard drive
d) To secure the system from unauthorized access
Answer:
b) To control and operate specific hardware devices
Explanation:
A device driver is specialized software that communicates between the operating system and hardware devices. It enables the OS to control and operate hardware such as printers, network cards, or storage devices.
Without drivers, the OS would not be able to interact with hardware components directly. Drivers translate OS commands into instructions that the hardware can understand.
For each hardware device, a specific driver is required to ensure proper functioning within the system.