These are the solved end-of-unit exercises for Unit 1, Operating Systems: Structure and Services, from the new PECTAA Computer Science and Entrepreneurship-10 textbook used by BISE Rawalpindi, Lahore and the other Punjab boards. Every answer is written from the text of the unit, for the 10th Class (SSC Part II) Annual Examination 2027.
This unit covers the operating system as the central controller, the kernel and shell, the layered design, system libraries and device drivers, the process life cycle, multitasking and concurrency, RAM and virtual memory, processes and threads, system calls, the file system and the types of operating systems.
| Unit | 1: Operating Systems: Structure and Services |
|---|---|
| Class | 10th Class (SSC Part II), Punjab boards |
| MCQs answered | 7 |
| Other questions solved | 13 |
Exercise questions deleted in the ALP Smart Syllabus 2027
Under PECTAA’s ALP Smart Syllabus 2027 for Computer Science and Entrepreneurship-10, the following content of Unit 1 is not part of the 2027 annual exam: Topic 1.3.3 Process Scheduling Concepts, First Come First Served (pages 7 to 9) Β· MCQ 6 Β· Short Question 6 Β· Long Question 5. These questions are skipped on this page:
- MCQ 6 In the FCFS scheduling method, processes are served: (a) Randomly (b) Shortest job first (c) In the order they arrive (d) By priority only
- Short 6 Explain one advantage and one disadvantage of FCFS scheduling.
- Long 5 The FCFS numerical on three processes P1, P2 and P3 (arrival time, start time, completion time, waiting time and average waiting time).
Multiple Choice Questions
MCQ 1. Which is NOT an example of an operating system?
(a) Linux (b) Windows (c) Photoshop (d) macOS
Ans: (c) Photoshop β Photoshop is an application program for editing pictures. Linux, Windows and macOS are operating systems.
MCQ 2. In multi-user environments, the OS ensures:
(a) Equal access and data privacy (b) All users share the same files (c) Hardware is never used (d) Internet speed is increased
Ans: (a) Equal access and data privacy β the OS keeps each user’s files private, shares resources fairly and protects shared resources from unauthorized access.
MCQ 3. In Windows, user accounts can be created via:
(a) Task Manager (b) Control Panel or Settings (c) Disk Management (d) BIOS settings
Ans: (b) Control Panel or Settings β a new account is added through Settings or Control Panel β User Accounts β Add New User.
MCQ 4. The core part of the OS that interacts directly with hardware is the:
(a) Shell (b) Kernel (c) Device Driver (d) System Library
Ans: (b) Kernel β the kernel is the core of the OS and directly controls the CPU, memory and devices.
MCQ 5. A graphical shell allows the user to:
(a) Type commands only (b) Click icons and use menus (c) Interact only via code (d) Access only the BIOS
Ans: (b) Click icons and use menus β a graphical shell, such as the Windows desktop, is used by clicking icons and menus.
MCQ 7. Threads in the same process:
(a) Have separate memory spaces (b) Share the same memory and resources (c) Run on different OS (d) Cannot run simultaneously
Ans: (b) Share the same memory and resources β all threads of a process share its memory and resources, yet each thread runs independently.
MCQ 8. Which system call is used to create a new process?
(a) Open (b) read (c) Write (d) fork
Ans: (d) fork β fork creates a new process by duplicating an existing one.
Short Questions
Short 1. Why is the operating system referred to as the “central controller”?
Ans: The OS works like a traffic controller for the computer. It decides which task is done first, how the memory is used and which devices, such as a printer or speakers, are active at a given time. Because it controls all of these, the computer keeps working smoothly even when many tasks run together.
Short 2. How does the OS act as a translator between the user and hardware?
Ans: Hardware understands only binary (0 and 1), not human language. When the user clicks an icon or types a key, the OS changes that action into instructions the hardware can follow. For example, when the letter A is pressed, the OS converts it to the binary code 01000001 and sends it to the screen, which displays A. This lets people use a computer without knowing how the hardware works.
Short 3. Define one way to create a new user account in Windows.
Ans: Open Settings or Control Panel, choose User Accounts, select Add New User, then enter a username and password and choose the account type (Standard, Administrative or Guest).
Short 4. How is the kernel different from the shell?
| Kernel | Shell |
|---|---|
| The core part of the OS. | The outer part of the OS that meets the user. |
| Directly controls the CPU, memory and devices and decides how and when programs use them. | Receives commands from the user and passes them to the kernel. |
| Example: it reads a file from the hard drive and sends it to the screen. It is like the engine of a car. | Can be graphical (Windows desktop) or command-line (Command Prompt, Terminal). It is like the steering wheel and dashboard of a car. |
Short 5. Give one example of a system library and its purpose.
Ans: A system library is a collection of ready-made instructions for common tasks. For example, when a photo editing app needs to open an image, it uses the operating system’s library to read the file. The purpose is that the app does not have to build its own method for opening pictures.
Short 7. Why is virtual memory slower than RAM?
Ans: Virtual memory is a part of the storage drive (hard drive, SSD or NVMe) that the OS uses as temporary RAM when RAM is full. Storage drives have lower data transfer speeds and higher access times than RAM, so programs whose data is moved to virtual memory respond more slowly.
Short 8. Define a system call.
Ans: A system call is a request made by a program to the operating system to perform a task that the program cannot do directly. It acts as a bridge between user programs and the kernel, so applications can use hardware and core OS functions safely. Example: when a text editor saves a file, it uses a system call to ask the OS to write the data to the drive.
Short 9. What is the role of a file system?
Ans: The file system gives a structured way to store, locate and manage information on a storage device such as a hard drive, SSD or USB. It decides where each file is kept and remembers its location, so data stays organized, secure and easy to find again. Examples are FAT32 (USB drives), NTFS (Windows), APFS/HFS+ (macOS) and EXT4 (Linux).
Short 10. Define multitasking in a computer system.
Ans: Multitasking is the ability of the operating system to keep more than one program open and usable by one user at the same time, so the user can switch between them whenever needed. Example: listening to music, keeping a document open and browsing the internet together.
Long Questions
Long 1. Describe the architecture of an operating system, explaining kernel, shell and layered design with examples.
The architecture of an operating system is the way its parts are organized and work together, like the departments of a school that have separate duties but work for one aim.
1. Kernel
The kernel is the core part of the OS. It directly controls the CPU, memory and devices and decides how and when programs use them. Example: when you open a file, the kernel reads it from the hard drive and sends it to the screen.
2. Shell
The shell is the outer part that interacts with the user. It takes the user’s commands and passes them to the kernel. A graphical shell (Windows desktop) is used with icons and menus. A command-line shell (Command Prompt, Terminal) is used by typing instructions.
The user gives a command to the shell, the shell passes it to the kernel, and the kernel uses the hardware to carry it out. The kernel is like the engine of a car, while the steering wheel and dashboard are the shell.
3. Layered design
The OS is divided into layers and each layer has one job:
| Layer | Job | School example |
|---|---|---|
| Lower layer | Works directly with hardware: CPU, RAM, storage, hard disk. | Support staff (guards, cleaners) keep the school ready. |
| Middle layer | Manages resources such as memory and storage so programs can use them. | The administration manages resources, schedules and rules. |
| Upper layer | Runs applications and provides the interface the user sees. | Teachers and students use the arrangements to teach and learn. |
Each layer depends on the layer below it. This design makes the OS easier to manage, repair and improve without changing the whole system.
Long 2. Explain the process life cycle in detail with examples.
A process is a running program. The operating system manages every process through three stages of its life cycle.
- Creation: starts when a program is started, for example MS Word. The OS loads the program into memory and gives it the resources it needs, such as CPU time and memory.
- Execution: the process is actively running and doing its tasks.
- Termination: the process finishes its task and is closed by the user or the system. The OS frees its resources so other processes can use them.
Example: opening Google Chrome on a mobile or computer.
| Stage | What happens with the browser |
|---|---|
| Creation | The user clicks the browser icon. The OS loads the program into memory and gives it the resources it needs. |
| Execution | The browser loads web pages, shows media and responds to the user’s actions. |
| Termination | The user closes the browser. The OS stops the process and releases its resources for other uses. |
Long 3. Differentiate between RAM and virtual memory, and explain how multithreading improves performance.
| RAM (primary memory) | Virtual memory |
|---|---|
| The main working area of the computer. It stores data and instructions temporarily so the CPU can reach them quickly. | A part of the storage drive that the OS uses as temporary RAM when the RAM is full. |
| Fast, with high data transfer speed and low access time. | Slower, because storage drives have lower transfer speeds and higher access times. |
| Its data is erased when the computer is turned off. | Lets more programs run at the same time by moving data of less active programs out of RAM. |
| Example: a Word document and the program are placed in RAM when opened. | Programs moved here may respond slowly and overall performance may fall. |
How multithreading improves performance. Multithreading divides the work of one process into smaller units called threads. The threads run independently but share the process’s memory and resources. The main benefits are:
- Enhanced performance: tasks are split into threads and run in parallel, so complex operations finish sooner.
- Improved responsiveness: the application stays responsive while one thread is busy. In a word processor you keep typing while another thread checks spelling in the background.
- Concurrent operations: several tasks progress together, which matters in games, video editing and real-time communication tools.
- Efficient use of resources: threads share the memory of their process, so they need fewer resources than separate processes.
Example: a web browser is one process. One thread renders the page, another plays audio or video and a third downloads files, so the user never waits for one job to finish before another starts.
Long 4. Describe system calls, their purpose and give examples of at least three types.
A system call is a request from a program to the operating system to perform a task that the program cannot do by itself. System calls are the bridge between user programs and the kernel. Their purpose is to let applications use hardware and core OS functions safely. Without them, programs that control hardware directly would be unsafe and complex.
Example: when you save a file in a text editor, the program makes a system call so the OS writes the data to the storage drive.
| System call | What it does | Example |
|---|---|---|
| open | Opens a file for reading or writing. | Opening a music file to play it. |
| read | Retrieves data from a file or input device. | Reading text from a document. |
| write | Sends data to a file or output device. | Saving an image to the computer. |
| fork | Creates a new process by duplicating an existing one. | Opening a new browser tab, where the OS may use fork to create another process. |
More for 10th Class Computer Science
- All units: 10th Class Computer Science exercise solutions 2027
- 10th Class pairing scheme, model papers and ALP deleted topics 2027
- ALP & pairing schemes 2027 for all classes and subjects
The exercise questions are from the PECTAA Computer Science and Entrepreneurship-10 textbook. The deleted list follows the PECTAA ALP Smart Syllabus 2027. Please confirm all dates and figures on the official website: pectaa.edu.pk
Need help with 10th Class Computer Science? Join our live online classes for Matric (Punjab and Federal Board). Book a free demo class.

Ask a question about this topic