What is the main function of an operating system?

(A) Compiling code
(B) Managing hardware and software resources
(C) Managing applications resources
(D) Managing software resources

The answer is: (B) Managing hardware and software resources
The main function of an operating system (OS) is to act as an intermediary between the user and the computer’s hardware. It manages all the computer’s resources, including the central processing unit (CPU), memory, storage, and input/output devices. The OS ensures that different programs and applications can run smoothly and securely without interfering with each other.

Which language is known as the “mother of all programming languages”?

(A) Python
(B) Java
(C) C
(D) Assembly

The answer is: (C) C
The C programming language is often referred to as the “mother of all programming languages” because it laid the foundation for many modern languages like C++, Java, C#, and Objective-C. Besides, it introduced core programming concepts such as structured programming, pointers, and low-level memory access.