Question:

What is the primary function of an operating system?

Show Hint

An operating system manages the computer's resources, ensuring the efficient operation of hardware and software.
Updated On: Jun 27, 2025
  • To compile source code
  • To manage hardware and software resources
  • To design user interfaces
  • To execute database queries
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The primary function of an operating system is to manage hardware and software resources. This encompasses various critical tasks, including:

  • Resource Allocation: The operating system allocates essential resources, such as CPU time, memory space, and I/O devices, to different programs and users.
  • Memory Management: It keeps track of each byte in a computer's memory to manage the allocation and deallocation processes effectively.
  • Process Coordination: It manages processes and oversees the execution of different applications by providing a stable environment where all hardware and software resources are correctly assigned and prioritized.
  • Device Management: The OS controls peripheral devices with the help of drivers, facilitating communication between hardware and software.
  • Interface Provision: It provides an interface between users and the computer hardware, allowing for easier interaction and control.

In contrast, tasks like compiling source code, designing user interfaces, and executing database queries are generally specific functions of application programs or development environments, not the primary responsibility of an operating system.

Was this answer helpful?
0
0