Which of the following is the core part of an operating system that always remains in main memory?
- A.Shell
- B.Kernel
- C.Compiler
- D.Loader
Show answer
Correct answer: B. Kernel
Explanation
The correct answer is B, kernel. The kernel is the central part of the operating system and is the portion that is loaded at boot time and stays resident in main memory for as long as the computer is running. It controls the processor, allocates memory, manages files and drives the input and output devices, and every other program reaches the hardware through it.
Option A, the shell, is the outer layer of the operating system; it accepts the command typed by the user and passes it to the kernel, but it is not the core and need not always be resident. Option C, a compiler, is a language translator that converts a high level program into machine code; it is system software but not a part of the operating system core. Option D, a loader, is the program that places an executable file into main memory just before execution and then hands control to it, so it is a small utility and not the core.