Parho

Class 10 Computer Science · Chapter 1

Operating Systems: Structure and Services: questions and answers

Every short question, long question and MCQ on this chapter's free papers, each with its answer. Try one yourself first, then check.

48short questions
10long questions
0MCQs

Short questions with answers

  1. Q1 · 2 marks

    Why is the operating system referred to as the “central controller”?

    Answer

    The OS works like a traffic controller for the computer. It decides which task should be done first, how the computer's memory is used, and which devices should be active at a given time. It makes sure the computer works smoothly even when multiple tasks are running at the same time.

  2. Q2 · 2 marks

    How does the OS act as a translator between the user and hardware?

    Answer

    Computer hardware cannot understand human language directly. When you click an icon or type something, the OS changes those actions into instructions that the hardware can understand. This allows people to use computers easily without learning how the hardware works.

  3. Q3 · 2 marks

    Define an operating system.

    Answer

    An Operating System (OS) is a type of system software that manages hardware, runs application software, and provides a user interface. Examples are Windows, macOS, Linux, Android, and iOS.

  4. Q4 · 2 marks

    Why can computer hardware not understand human language directly?

    Answer

    Humans speak languages like Urdu or English, whereas computers understand only binary language, or ON and OFF switches, i.e. 0 and 1. The OS therefore converts human actions into binary.

  5. Q5 · 2 marks

    What binary code does the OS produce when the letter A is pressed on a keyboard?

    Answer

    The OS converts the letter A into the binary code (01000001)2. This code is sent to the computer screen, which displays A. The process happens so quickly that it feels instant to the user.

  6. Q6 · 2 marks

    List the responsibilities of the OS in multi-user environments.

    Answer

    The OS ensures:

    (1)the creation and management of separate user accounts;

    (2)each user's files and information stay private;

    (3)the computer's resources are shared fairly so that no one slows down the system;

    (4)shared resources are protected from unauthorized access.

  7. Q7 · 2 marks

    Define one way to create a new user account in Windows.

    Answer

    In Windows, a new account can be created through the Settings or Control Panel by selecting User Accounts, choosing Add New User, and entering details like username, password, and account type (Standard, Administrative, Guest).

  8. Q8 · 2 marks

    How does the OS keep each student's work separate in a computer lab?

    Answer

    The OS allows separate accounts for different users, each with its own desktop, files, settings, and passwords. In a computer lab, students log in with a username and password provided by the school, which keeps each student's work separate and private.

  9. Q9 · 2 marks

    What is meant by the architecture of an operating system?

    Answer

    The architecture of an operating system is the way its parts are organized and how they work together. Each part has a special role, like different departments in a school that work together for smooth working.

  10. Q10 · 2 marks

    Define the kernel and give an example.

    Answer

    The kernel is the core part of the operating system that directly controls the computer's system software and hardware such as the CPU, memory, and devices. It decides how and when different programs can use these resources.

    Example: when you open a file, the kernel manages reading it from the hard drive and sending it to the screen.

  11. Q11 · 2 marks

    How is kernel different from shell.

    Answer

    The kernel is the core part of the OS that directly controls hardware such as the CPU, memory, and devices. The shell is the outer part of the OS that interacts with the user, receives commands, and passes them to the kernel. Like the engine of a car is the kernel and accessories like the steering wheel and dashboard are the shell.

  12. Q12 · 2 marks

    Differentiate between graphical shells and command-line shells with examples.

    Answer

    Graphical shells (like the Windows desktop) let you click icons and use menus. Command-line shells (like the Command Prompt or Terminal) are where you type instructions.

  13. Q13 · 2 marks

    What are the lower, middle, and upper layers in the layered design of an OS?

    Answer

    The lower layer works directly with hardware devices like the CPU, RAM, and storage (hard disk). The middle layer manages these resources and makes sure programs can use them when needed. The upper layer runs applications and provides the interface that the user views on the screen.

  14. Q14 · 2 marks

    Why is the layered design useful in an operating system?

    Answer

    Each layer has a specific job and depends on the one below it. This design makes the operating system easier to manage, repair, and improve without changing the whole system.

  15. Q15 · 2 marks

    Explain the school example of the layered architecture of an OS.

    Answer

    The support staff (guards and cleaners) work at the base keeping the school ready, like the lower layers working with hardware. The administration manages resources, schedules, and rules, like the middle layers managing memory and storage. The teachers and students use these arrangements to teach and learn, like the upper layers running applications and interacting with users.

  16. Q16 · 2 marks

    Give one example of a system library and its purpose.

    Answer

    System libraries are collections of ready-made instructions that programs can use to perform common tasks such as opening files or showing text on the screen.

    Example: when a photo editing app needs to open an image, it uses the operating system's library to read the file, so the app does not have to create its own method to open pictures.

  17. Q17 · 2 marks

    What are device drivers?

    Answer

    Device drivers are special programs that allow the operating system to communicate with hardware devices such as printers, keyboards, and graphics cards.

  18. Q18 · 2 marks

    What is process management?

    Answer

    Process management ensures that each process (a running program) gets the resources it needs, even when multiple processes are active. It is one of the most important jobs of an OS because it ensures all processes run smoothly without disturbing each other.

  19. Q19 · 2 marks

    Name and briefly describe the stages of a process life cycle.

    Answer

    Creation: the OS loads the program into memory and gives it the resources (like CPU time and memory) it needs.

    Execution: the process is actively running and performing tasks.

    Termination: the process finishes its task and is closed; the OS frees the resources so other processes can use them.

  20. Q20 · 2 marks

    Describe the process life cycle of opening a web browser such as Google Chrome.

    Answer

    Creation begins when the user clicks the browser icon; the OS loads the program into memory and allocates the required resources.

    Execution: the browser loads web pages, displays media, and responds to user actions. Termination occurs when the browser is closed; the OS stops the process and releases its resources.

  21. Q21 · 2 marks

    Define multitasking in computer system.

    Answer

    Multitasking is when the operating system allows more than one program to be open and usable by a single user at the same time, and the user can easily switch between them.

    Example: listening to music, keeping a document open, and browsing the internet.

  22. Q22 · 2 marks

    What is concurrency? Explain with the chef example.

    Answer

    Concurrency means more than one process is active at the same time in an OS, but the CPU processes them one by one in extremely fast cycles. Like a chef preparing three dishes, working on one for a short time, then moving to the next and repeating, the CPU switches between processes so rapidly that the user does not notice any delay.

  23. Q23 · 2 marks

    How many times can the CPU switch between processes in one second?

    Answer

    The CPU can switch between processes millions of times in just one second. This happens so fast that you can play music, browse the web, and download files all at once.

  24. Q24 · 2 marks

    Why does the OS need to manage processes when many are active at once?

    Answer

    Many processes may be active at once but resources like CPU time and memory are limited. The OS must give each process the resources it needs so all run smoothly without disturbing each other.

  25. Q25 · 2 marks

    What is scheduling in an operating system?

    Answer

    The CPU cannot run all processes at the same time, so the OS must decide which process should run first and how long each process should run. This is called scheduling.

  26. Q26 · 2 marks

    Define First Come, First Served (FCFS) scheduling with an example.

    Answer

    In FCFS, the CPU processes tasks in the exact order they arrive. The first process to arrive is completed first, and the next starts only after the previous one finishes.

    Example: like a queue at a shop counter, the first customer in line is served first, then the next, and so on.

  27. Q27 · 2 marks

    Explain one advantage and one disadvantage of FCFS scheduling.

    Answer

    Advantage: FCFS is easy to understand and implement, as processes are served in the exact order they arrive, and no process is skipped.

    Disadvantage: short processes may have to wait a long time if they are queued behind longer processes (the convoy effect), which can affect the overall efficiency of the system.

  28. Q28 · 2 marks

    In the FCFS example with P1 (0s, 5s), P2 (1s, 3s) and P3 (2s, 2s), why must P3 wait although it is the shortest?

    Answer

    P3 arrives after P1 and P2, and in FCFS processes are served in arrival order. P3 must wait until P1 and P2 have finished (P1: 0-5, P2: 5-8, P3: 8-10). Shorter tasks can be delayed if they arrive after longer ones.

  29. Q29 · 2 marks

    Using FCFS, give the order of execution and the start and finish times for P1 (arrival 0s, needs 4s), P2 (1s, 5s) and P3 (2s, 3s).

    Answer

    Order: P1, P2, P3. P1 starts at 0s and finishes at 4s. P2 starts at 4s and finishes at 9s. P3 starts at 9s and finishes at 12s.

  30. Q30 · 2 marks

    In the same activity, what is the total time taken for all processes to finish, and which process waited the longest?

    Answer

    The total time is 12 seconds. P1 waits 0s, P2 waits 3s (4 minus 1) and P3 waits 7s (9 minus 2). P3 had to wait the longest.

  31. Q31 · 2 marks

    What is primary memory (RAM)? Give an example.

    Answer

    Primary memory, also called Random Access Memory (RAM), is the main working area of a computer. It is a fast storage area where the computer keeps data and instructions temporarily; its data is erased when the computer is turned off.

    Example: when you open a Word document, the computer places the program and the document into RAM so the CPU can work on them right away.

  32. Q32 · 2 marks

    Why is virtual memory slower than RAM?

    Answer

    Virtual memory uses part of a storage drive (hard drive, SSD or NVMe). Storage drives operate at lower data transfer speeds and have higher access times as compared to RAM, so using virtual memory can result in reduced system performance.

  33. Q33 · 2 marks

    When does the OS use virtual memory and what is its effect?

    Answer

    When the RAM is full, the OS uses part of the storage drive as virtual memory, which acts like temporary RAM and allows more programs to run at the same time. It frees up RAM for programs in use, but may make the less active programs slower to respond.

  34. Q34 · 2 marks

    Define a process.

    Answer

    A process is an independent program that is currently being executed by the computer. It has its own memory space, CPU time, and other resources, and it is isolated from other processes for stability and security.

  35. Q35 · 2 marks

    Define a thread and explain how threads share resources.

    Answer

    A thread is the smallest unit of execution within a process. Multiple threads can exist in one process, each performing a different task. All threads in the same process share the same memory and resources but operate independently.

  36. Q36 · 2 marks

    What is multithreading?

    Answer

    Multithreading is an operating system technique that allows a single process to perform multiple tasks at the same time by dividing its work into smaller units called threads. It enables faster execution, better responsiveness, and efficient use of system resources.

  37. Q37 · 2 marks

    List the benefits of multithreading.

    Answer

    Enhanced Performance; Improved Responsiveness; Support for Concurrent (parallel) Operations; Efficient Use of Resources, since threads share the memory and resources of their parent process and need fewer resources than separate processes.

  38. Q38 · 2 marks

    Give an example of how multithreading improves responsiveness.

    Answer

    A word processor enables continuous typing while another thread checks spelling in the background, so the application remains responsive even when one thread is busy.

  39. Q39 · 2 marks

    Explain the web browser example of process and threads.

    Answer

    The entire browser application is one process. Within it, one thread loads and renders a webpage, a second plays audio or video, and another downloads files in the background. So the browser keeps loading new content while playing a video without making the user wait.

  40. Q40 · 2 marks

    Define a system call.

    Answer

    A system call is a request made by a program to the operating system to perform a specific task that the program cannot do directly. System calls act as a bridge between user programs and the kernel, allowing applications to access hardware and core OS functions safely.

  41. Q41 · 2 marks

    Name the types of system calls with examples.

    Answer

    open opens a file for reading or writing (opening a music file); 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); fork creates a new process by duplicating an existing one (opening a new browser tab).

  42. Q42 · 2 marks

    What happens when you save a file in a text editor?

    Answer

    The program uses a system call to tell the operating system to write the data to the storage drive (like a hard drive).

  43. Q43 · 2 marks

    What is the role of a file system?

    Answer

    The file system provides a structured way for users and applications to store, locate, and manage information on storage devices. It decides where each file will be kept and saves its location so it can be accessed later, keeping data organized, secure, and easily retrievable.

    Example: like a librarian placing a book in the right section.

  44. Q44 · 2 marks

    Define file, folder and metadata.

    Answer

    A file is a collection of related data stored on a computer. A folder (directory) is a container used to organize files and other folders in a logical structure. Metadata refers to details about a file or folder such as name, type, size, date of creation, and date of last modification.

  45. Q45 · 2 marks

    Name four file systems and the OS or device that uses each.

    Answer

    FAT32 is used in USB flash drives; NTFS is used by Windows OS; APFS / HFS+ are used by macOS; EXT4 is commonly used by Linux OS. The choice of file system affects performance, storage capacity, and security features.

  46. Q46 · 2 marks

    What is a Real-Time Operating System (RTOS)? Where is it used?

    Answer

    A Real-Time Operating System is designed to process data and respond within a strict time limit known as a deadline. It is used where even a tiny delay can cause system failure, such as air traffic control, heart-monitoring devices, or industrial robots.

  47. Q47 · 2 marks

    What is an Embedded OS? Give examples of its use.

    Answer

    An Embedded OS is a small and highly efficient operating system built into a specific device to control only the functions it needs. It uses very little memory and power. It is used in microwaves, washing machines, printers, smart TVs, and ATMs.

  48. Q48 · 2 marks

    What is a Network OS and a Mobile OS?

    Answer

    A Network OS manages and supports multiple computers connected through a network and enables the sharing of resources like files, printers, and internet connections (e.g. a school computer lab). A Mobile OS is designed for smartphones, tablets, and other handheld devices and is optimized for touch-screen use, battery saving, and mobile apps.

Long questions with answers

  1. Q1 · 8 marks

    Describe the architecture of an operating system, explaining kernel, shell, and layered design with examples.

    Answer

    Architecture: the way the parts of an OS are organized and how they work together, like departments in a school.

    1)Kernel: the core part that directly controls the CPU, memory, and devices and decides how and when programs use these resources.

    Example: when you open a file, the kernel reads it from the hard drive and sends it to the screen.

    2)Shell: the outer part that interacts with the user, receives commands and passes them to the kernel. Graphical shells (Windows desktop) use icons and menus; command-line shells (Command Prompt or Terminal) use typed instructions. Figure 1.1 (diagram): User Applications are above the Operating System; inside it the Shell connects to the Kernel; the Kernel connects down to Hardware.

    Car example: the engine is the kernel and the steering wheel and dashboard are the shell.

    3)Layered design: the lower layer works directly with hardware like the CPU, RAM, and hard disk; the middle layer manages these resources; the upper layer runs applications and provides the user interface. Each layer depends on the one below it, which makes the OS easier to manage, repair, and improve.

    School example: support staff = lower layers, administration = middle layers, teachers and students = upper layers.

  2. Q2 · 8 marks

    Explain the process lifecycle in detail with examples.

    Answer

    A process is a running program, and process management ensures each process gets the resources it needs. A process goes through three stages.

    1)Creation: happens when you start a program (like MS Word); the OS loads the program into memory and gives it the resources (CPU time and memory) it needs.

    2)Execution: the process is actively running and performing tasks.

    3)Termination: the process finishes its task and is closed by the user or the system; the OS frees the resources so other processes can use them.

    Example (Google Chrome): Creation begins when the user clicks the browser icon and the OS loads it into memory and allocates resources; Execution is loading web pages, displaying media, and responding to user actions; Termination occurs when the browser is closed and the OS stops the process and releases its resources.

    Diagram: Creation -> Execution -> Termination.

  3. Q3 · 8 marks

    Differentiate between RAM and virtual memory, and explain how multithreading improves performance.

    Answer

    RAM (primary memory) is the main working area of a computer: a fast storage area where data and instructions are kept temporarily and erased when the computer is turned off.

    Example: opening a Word document places the program and document into RAM.

    Virtual memory: when RAM is full, the OS uses part of the storage drive (hard drive, SSD, or NVMe) as extra space that acts like temporary RAM, allowing more programs to run. Storage drives have lower data transfer speeds and higher access times than RAM, so virtual memory can reduce performance. Data of less active programs may be moved there, freeing RAM for current programs but making the less active programs slower.

    Multithreading: a single process divides its work into threads that share the same memory and resources but run independently.

    Benefits: Enhanced Performance (tasks run in parallel so complex operations finish faster); Improved Responsiveness (e.g. a word processor lets you type while another thread checks spelling); Support for Concurrent Operations (games, video editing, real-time communication tools); Efficient Use of Resources (threads need fewer resources than separate processes).

    Example: a browser loads content while playing a video.

  4. Q4 · 8 marks

    Describe system calls, their purpose, and give examples of at least three types.

    Answer

    A system call is a request made by a program to the operating system to perform a specific task that the program cannot do directly.

    Purpose: they act as a bridge between user programs and the kernel, allowing applications to access hardware and core OS functions safely; without system calls, programs that directly control hardware can be unsafe and complex.

    Example: when you save a file in a text editor, the program uses a system call to tell the OS to write data to the storage drive.

    Types:

    1)open: opens a file for reading or writing (opening a music file to play);

    2)read: retrieves data from a file or input device (reading text from a document);

    3)write: sends data to a file or output device (saving an image to the computer);

    4)fork: creates a new process by duplicating an existing one (opening a new browser tab). Linux and macOS have a few hundred system calls while Windows uses nearly 2,000.

  5. Q5 · 10 marks

    A computer system uses the First-Come, First-Served (FCFS) scheduling method to manage processes. The following table shows the arrival time and the CPU burst time (time needed for execution) of three processes: P1 (Arrival Time 0 seconds, Burst Time 4 seconds), P2 (Arrival Time 1 second, Burst Time 3 seconds), P3 (Arrival Time 2 seconds, Burst Time 1 second). Requirements: I. Arrange the processes in the order they will be executed according to the FCFS scheduling method. II. Show the execution sequence of all processes. III. Calculate the start time and completion time for each process. IV. Find the waiting time for each process. V. Calculate the average waiting time for all processes.

    Answer

    I. Order of arrival is P1, P2, P3, so FCFS executes P1, then P2, then P3. II. Execution sequence (Gantt chart): [ P1: 0-4 ] -> [ P2: 4-7 ] -> [ P3: 7-8 ] with time marks 0, 4, 7, 8. III. P1 starts at 0 and completes at 4; P2 starts at 4 and completes at 7; P3 starts at 7 and completes at 8. IV. Waiting time = start time - arrival time: P1 = 0 - 0 = 0 s; P2 = 4 - 1 = 3 s; P3 = 7 - 2 = 5 s. V. Average waiting time = (0 + 3 + 5) / 3 = 8 / 3 = 2.67 seconds (approximately).

  6. Q6 · 8 marks

    Explain the role of the operating system as the central system controller and as a translator between the user and hardware, and describe its responsibilities in multi-user environments.

    Answer

    Central system controller: the OS works like a traffic controller; it decides which task should be done first, how the computer's memory is used, and which devices (like a printer or speakers) should be active, so the computer works smoothly even when multiple tasks run at the same time.

    Translator: hardware cannot understand human language; computers understand only binary (0 and 1). When you click an icon or type, the OS changes these actions into instructions the hardware understands.

    Example: pressing the letter A, the OS converts it into the binary code (01000001)2, which is sent to the screen to display A. Multi-user environments (schools, offices, online systems): the OS creates and manages separate user accounts, keeps each user's files and information private, shares resources fairly so no one slows the system, and protects shared resources from unauthorized access. Each account has its own desktop, files, settings, and passwords; in Windows a new account is added through Settings or Control Panel > User Accounts > Add New User with a username, password, and account type (Standard, Administrative, Guest).

  7. Q7 · 8 marks

    Explain system libraries and device drivers with examples, and describe the activity used to identify the shell, device driver, and system library on a computer.

    Answer

    System libraries are collections of ready-made instructions that programs can use to perform common tasks such as opening files or showing text on the screen.

    Example: a photo editing app uses the OS's library to read an image file, so it does not need its own method to open pictures. Device drivers are special programs that allow the OS to communicate with hardware devices such as printers, keyboards, and graphics cards.

    Activity: Objective is to identify the shell, device driver, and system library used by your computer.

    Steps:

    1)locate the shell (desktop or command-line);

    2)open Device Manager (Windows) or System Information (Mac/Linux);

    3)find one hardware device and note its driver name;

    4)open a simple program (e.g. Calculator) and identify one task that may use a system library (e.g. displaying numbers);

    5)record findings in a table with columns OS Component (Shell / Device Driver / System Library), Your Example (e.g. Windows desktop, HP printer driver, Calculator app), and Purpose/Role.

  8. Q8 · 8 marks

    Describe process scheduling and the FCFS method using the example of P1 (arrival 0s, needs 5s), P2 (1s, 3s) and P3 (2s, 2s), including the execution timeline, waiting times, advantages and disadvantages.

    Answer

    Scheduling: since the CPU cannot run all processes at the same time, the OS decides which process runs first and for how long.

    FCFS: the CPU processes tasks in the exact order they arrive; like a queue at a shop counter.

    Execution: P1 arrives first and runs 0s to 5s; P2 arrives at 1s and waits; P3 arrives at 2s and waits; at 5s P2 runs from 5s to 8s; at 8s P3 runs from 8s to 10s.

    Timeline: [ P1: 0-5 ] -> [ P2: 5-8 ] -> [ P3: 8-10 ]. Waiting times (start - arrival): P1 = 0; P2 = 5 - 1 = 4 s; P3 = 8 - 2 = 6 s; average = 10/3 = 3.33 s.

    Observation: P3 is the shortest (2 s) but must wait for P1 and P2 because they arrived earlier.

    Advantages: easy to understand and implement; no process is skipped.

    Disadvantages: short processes may wait a long time behind longer ones (the convoy effect), which affects overall efficiency.

  9. Q9 · 8 marks

    Explain file system structure and management, including files, folders, metadata, and common file systems with examples.

    Answer

    The OS stores and organizes users' data through the file system, which provides a structured way to store, locate, and manage information on storage devices, keeping data organized, secure, and easily retrievable.

    File: a collection of related data (text, images, audio, video, or program instructions).

    Folder (directory): a container to organize files and other folders in a logical structure.

    Metadata: details about a file or folder such as name, type, size, date of creation, and date of last modification; it lets the OS and user manage them without opening them.

    File system: the way an OS stores and organizes files on a storage device (hard drive, SSD, USB) and saves each file's location.

    Examples: FAT32 (USB flash drives), NTFS (Windows), APFS / HFS+ (macOS), EXT4 (Linux). The choice affects performance, storage capacity, and security.

    Analogy: a librarian places a book in the right section and knows where to find it.

    Activity: students act as the OS and an application, and requests like open, read, write, and close represent system calls.

  10. Q10 · 8 marks

    Describe the main types of operating systems (Real-Time, Embedded, Network, and Mobile) with their key features and uses.

    Answer

    Operating systems are designed according to the needs of the device and work performed.

    1)Real-Time OS (RTOS): processes data and responds within a strict time limit called a deadline; key feature is processing tasks immediately without long waiting; used in air traffic control, heart-monitoring devices, and industrial robots.

    2)Embedded OS (EOS): a small, highly efficient OS built into a specific device to control only the functions it needs; uses very little memory and power and is often stored permanently inside the device; used in microwaves, washing machines, printers, smart TVs, and ATMs.

    3)Network OS (NOS): manages and supports multiple computers connected through a network and enables sharing of files, printers, and internet connections; focuses on communication and coordination; used in offices, schools, and data centers (e.g. a school lab saving files to the same server).

    4)Mobile OS: designed for smartphones, tablets, and handheld devices, optimized for touch-screen use, battery saving, and mobile apps; supports wireless connectivity, cameras, sensors, and app stores; examples include Android and iOS (early example: Symbian).

Test yourself on this chapter

Timed chapter tests, marked the moment you finish.

See the chapter tests

Practise with a free account

Save your scores, see which chapters need work, and keep a notebook of every question you got wrong.

Create free account