In: Computer Science
1. What does compiling do?
A. Manages process switching in a computer
B. Translates a source program written in a high-level language into machine language
C. Transfers programs from memory to RAM to disk
D. Controls the process switching between cores when a CPU has multiple cores
E. None of these answers
2. What does the file system do?
A. Keeps users and kernel/root processes distinct
B. Organize the information stored on the non-volatile storage of a computer
C. Control process switching
D. All of the above
3. Kernel space in the address space is reserved for us by what?
A. Privileged processes
B. No processes
C. All of these answers
D. All processes
E. User processes
4. What is the kernel of an operating system?
A. It handles processors
B. It handles memory and I/O devices
C. the core component of the operating system
D. All of these answers
E. It handles low-level resources
Answer 1: B. Translates a source program written in a high-level language into machine
language
Manages process switching in a computer is done by operating system.
Compiler is language translator which take one language (high-level) as input and produce its equivalent another language (machine language). During this process if any error are encounter then compiler display error message.
So option (B) is correct option.
Answer 2: B. Organize the information stored on the non-volatile storage of a computer.
For process switching kernel is responsible.
A file is collection of correlated information which is recorded on secondary storage. Its main objective is provide I/O support for variety of storage device type, minimize data lost, and help OS to standardized I/O interface routine.
So option (B) is correct option.
Answer 3: E. User processes
When CPU is in privileged mode then and then the kernel address space is accessible
Kernel space is part of memory where the kernel runs and provide its service.
Through the use of system calls kernel space can be accessed by user process. By an active process system call are requests in a UNIX.
So option (E) is correct option.
Answer 4: D. All of these answers
A kernel is the heart of an operating system which has control over everything in the system.
The kernel is the first program which is loaded after the boot loader and remain in the memory until the operating system is shut-down.
For low-level tasks such as disk management, memory management, task management, etc. the Kernel is responsible. An interface between the user and the hardware components of the system is provided by t=the kernel.
Every process need memory and allocation and deallocation of memory for execution of process is manage by the kernel. Allocation of peripheral devices is also managed by the kernel.
So option (D) is correct option.
If at any point if you find any difficulty feel free ask me.