MIdTermQBank-OS
MIdTermQBank-OS
Q2\ The opera ng system acts as resource manager for: (list four items)
Q3\ How the opera ng system acts as control program.
An opera ng system (OS) acts as a "control program" by managing and alloca ng computer
resources, ensuring the smooth and efficient execu on of programs, and preven ng errors or
misuse of the system.
Q4\ List the Computer System Components with brief on each item.
Q6\ Define Kernel, system programs, and applica on programs.
Q7\ Explain the difference between the System Programs and Applica on Programs.
Q9\ A er loading, modern Opera ng Systems will _______________________________
A er a modern opera ng system load, it ini alizes itself, manages hardware and so ware
resources, loads device drivers, and presents a user interface (like a desktop) for interac on.
Q10\ Explain the difference between Hardware Interrupts and So ware Interrupts.
Q11\ Why it is not possible to make programs and data to reside in main memory permanently
(give two reasons)?
Q12\ Define caching
Q14\ Draw the diagram for Opera ng System Services
Q15\ List the opera ng System Services (For user and for system)
Q16\ Define Program execu on Service.
Program execu on services are func onali es provided by an opera ng system to facilitate the
running of computer programs by loading them into memory, scheduling execu on, providing
resources, and ensuring proper execu on and resource management.
Q17\ List Four resources that will be allocated by opera ng system to users and processes.
An opera ng system allocates CPU me, memory, I/O devices, and storage space to users and
processes.
Q18\ List only the user interface types.
The primary types of user interfaces (UIs) include Graphical User Interfaces (GUI), Command
Line Interfaces (CLI), Menu-driven interfaces, Touch interfaces, Voice interfaces, and Natural
Language interfaces.
Q19\ What is the OS reac on to errors?
Opera ng systems manage errors using methods like excep on handling, redundancy checks,
and recovery rou nes. Excep on handling stops a program to fix issues. Redundancy checks use
extra data bits to detect errors. Recovery rou nes correct errors and restore normal opera on,
ensuring the system runs smoothly. These methods make opera ng systems reliable and
robust.
Q20\ Define System Calls, and System Programs.
System calls are requests from a program to the opera ng system kernel for specific services,
while system programs are user-friendly tools that provide basic func onality like file
management, debugging, or program execu on, o en built upon system calls
Q22\ List Types of System Calls with examples on each type.
A System Call is a way for a user program to interface with the OS. The program requests several
services, and the OS responds by invoking a series of System Calls to sa sfy the request. The
program can be wri en in assembly language or a high-level language like C or Pascal. System
Calls are predefined func ons that the OS may directly invoke if a high-level language is used.
System Call uses Applica on Program Interface (API) to provide OS services to user programs. It
offers a point of contact between processes and the OS so that the user-level processes can ask
for the OS’s assistance. The limited ways to access the kernel system are through the System
Calls.
Define API.
In an Opera ng System (OS) context, an API (Applica on Programming Interface) is a set of
defined func ons and methods that allow a so ware program to interact with the OS or
another program, enabling them to request services and exchange data.
Q28\ Draw the diagram of System Call – OS Rela onship
Q29\ Define “Process” and explain the difference between Process and Program.
Q30\ List process parts in memory with brief descrip on of each.
In the context of computer memory, a process's memory space is structured into key
parts: code (program instruc ons), data (variables), and stack (func on calls). Here's a brief
descrip on of each:
Code: Contains the executable instruc ons (code) of the process.
Data: Stores the variables and data used by the process during execu on.
Stack: A region of memory used to store temporary data, like func on call informa on
and local variables.
Q31\ Draw the diagram of the process parts in memory
Q34\ List the informa on items stored in Process Control Block (PCB)
Q35\ Define Process Scheduler.
A process scheduler is also known as a short-term scheduler or a CPU scheduler.
Here's a breakdown:
Process Scheduler: This is the general term for the mechanism that decides which
process to run next and allocates the CPU.
Short-Term Scheduler: This type of scheduler makes decisions about which process from
the ready queue to execute next and allocates the CPU.
CPU Scheduler: This is another name for the short-term scheduler
Categories of Scheduling(Pre-Emp ve, Non Preemp ve)
Types of Process Schedulers(Long Term, Medium Term, Short Term)
Q36\ List the scheduling queues with brief descrip on of each
The Job Queue stores all processes that are entered into the system.
The Ready Queue holds processes in the ready state.
Device Queues hold processes that are wai ng for any device to become available. For
each I/O device, there are separate device queues.
Q37\ Draw the Diagram of Process Scheduling Queues Diagram