Operating systems (OS) serve as an intermediary between users and computer
hardware.
They manage hardware resources and provide a user interface, enabling users to
interact with the system.
2. Functions of Operating Systems
What Operating Systems Do: They manage hardware, provide a user interface, and
facilitate the execution of applications.
Computer System Organization: Describes the structure and components of a
computer system, including hardware and software.
Computer System Architecture: Refers to the design and organization of the
computer's components.
3. Operating System Operations
Multiprogramming: Allows multiple jobs to be in memory simultaneously, ensuring the
CPU is always busy.
Multitasking (Timesharing): Extends multiprogramming by allowing users to interact
with multiple jobs, requiring quick response times.
Dual-Mode Operation: Protects the OS and system components by distinguishing
between user mode and kernel mode.
4. Resource Management
Process Management: Involves creating, scheduling, and terminating processes. A
process is an active program in execution.
Memory Management: Ensures that programs and data are loaded into memory
efficiently and manages memory allocation and deallocation.
File-System Management: Provides a logical view of data storage, managing files and
directories, and ensuring access control.
Mass Storage Management: Manages data storage on disks, including free-space
management and disk scheduling.
5. Caching
Caching improves performance by storing frequently accessed data in faster storage,
reducing access time.
6. Protection and Security
Protection: Mechanisms to control access to resources.
Security: Defending the system against attacks, including malware and unauthorized
access.
7. Virtualization
Allows multiple operating systems to run on a single physical machine, enhancing
resource utilization and flexibility.
8. Computing Environments
Different environments include traditional, mobile, client-server, and cloud computing,
each with unique characteristics and requirements.
9. Cloud Computing
Provides computing resources and services over the internet, categorized into public,
private, and hybrid clouds, with service models like SaaS, PaaS, and IaaS.
Important Multiple Choice Questions (MCQs)
1. What is the primary function of an operating system?
A) Manage hardware resources
B) Provide a user interface
C) Execute applications
D) All of the above
Answer: D) All of the above
2. What does multiprogramming allow?
A) Only one job in memory
B) Multiple jobs in memory
C) Jobs to run sequentially
D) None of the above
Answer: B) Multiple jobs in memory
3. In multitasking, what is the maximum response time expected?
A) 1 second
B) 5 seconds
C) 10 seconds
D) 0.5 seconds
Answer: A) 1 second
4. What are the two modes of operation in a dual-mode system?
A) User mode and admin mode
B) User mode and kernel mode
C) Guest mode and host mode
D) Normal mode and safe mode
Answer: B) User mode and kernel mode
5. What is a process?
A) A program in execution
B) A passive entity
C) A type of memory
D) A hardware component
Answer: A) A program in execution
6. Which of the following is NOT a responsibility of memory management?
A) Keeping track of memory usage
B) Allocating and deallocating memory
C) Creating and deleting files
D) Deciding which processes to move in and out of memory
Answer: C) Creating and deleting files
7. What does file-system management provide?
A) Physical access to hardware
B) Logical view of information storage
C) Network connectivity
D) Process scheduling
Answer: B) Logical view of information storage
8. What is the purpose of caching?
A) To store data permanently
B) To improve access speed
C) To manage memory
D) To execute applications
Answer: B) To improve access speed
9. What is the difference between protection and security?
A) Protection is for users; security is for data
B) Protection controls access; security defends against attacks
C) Protection is hardware-based; security is software-based
D) There is no difference
Answer: B) Protection controls access; security defends against attacks
10. What does virtualization allow?
A) Running multiple applications on one OS
B) Running multiple OSes on one physical machine
C) Increasing hardware performance
D) None of the above
Answer: B) Running multiple OSes on one physical machine
11. Which of the following is NOT a type of cloud service model?
A) Software as a Service (SaaS)
B) Platform as a Service (PaaS)
C) Infrastructure as a Service (IaaS)
D) Hardware as a Service (HaaS)
Answer: D) Hardware as a Service (HaaS)
12. What is the main characteristic of client-server computing?
A) All processing is done on the client
B) Servers respond to requests from clients
C) Clients do not require a network
D) All clients are identical
Answer: B) Servers respond to requests from clients
13. Which computing environment is characterized by the use of mobile devices?
A) Traditional
B) Client-server
C) Cloud computing
D) Mobile
Answer: D) Mobile
14. What is the role of a Virtual Machine Manager (VMM)?
A) To manage hardware resources
B) To provide virtualization services
C) To execute applications
D) To manage user interfaces
Answer: B) To provide virtualization services
15. What is the primary benefit of cloud computing?
A) Increased hardware costs
B) Limited accessibility
C) Scalability and flexibility of resources
D) Dependence on local storage
Answer: C) Scalability and flexibility of resources