CHAPTER PDF
Complete curriculum textbook chapter document for reading and offline study.
NOTES
Complete conceptual breakdown, formulas, diagrams, and memory aids.
Chapter 1: Computer System
Complete, student-friendly notes covering the chapter concepts, definitions, diagrams in text form, comparisons, practical examples and solved textbook exercises.
How to study this chapter
A computer system is a combination of hardware and software. Hardware receives input, processes data, stores it and produces output. Software provides the instructions that control this work. The operating system coordinates the resources and provides an interface to the user.
↕ Primary memory • ↕ Secondary storage
Learning outcomes: identify computer components; explain memory and buses; distinguish microprocessors from microcontrollers; classify data and software; explain translators and operating-system services.
Introduction to Computer System
A computer is an electronic device programmed to accept data (input), process it according to instructions and generate a result (output). A computer system consists of a computer together with the additional hardware and software required to perform tasks.
A computer system primarily comprises the Central Processing Unit (CPU), memory, input/output devices and storage devices. These components work together as one unit. Computers are available in many forms: servers, desktop computers, laptops, tablets and smartphones.
Basic components and their roles
| Component | Main purpose | Example |
|---|---|---|
| Input device | Enters data and instructions into the computer. | Keyboard, mouse, scanner |
| CPU | Processes instructions and controls operations. | Processor |
| Primary memory | Holds programs and data currently being used. | RAM, ROM |
| Secondary storage | Stores data and programs for future use. | HDD, SSD, pen drive |
| Output device | Presents processed information to the user. | Monitor, printer, speaker |
The arrows in the textbook block diagram represent the flow of data and control signals between components.
Central Processing Unit (CPU)
The CPU is the electronic circuitry that carries out the actual processing. It is commonly called the brain of the computer or processor. Physically, it may be placed on one or more integrated circuits (ICs) made using semiconductor materials.
The CPU fetches instructions and data from memory, performs arithmetic and logical operations, and stores results back in memory. While processing, it uses small, high-speed storage locations called registers.
Registers
Registers are part of the CPU chip. They are limited in size and number and temporarily hold data, instructions, addresses or intermediate results needed by the processor.
Main components of CPU
Arithmetic Logic Unit (ALU)
Performs arithmetic operations such as addition, subtraction, multiplication and division, and logical operations such as comparisons.
Example: calculating 25 + 15 or checking whether marks are greater than 80.
Control Unit (CU)
Controls the sequence of instruction execution, interprets instructions and directs the flow of data among memory, ALU and input/output devices.
Example: coordinating the steps required to read two numbers, add them and store the result.
Input Devices
Input devices are devices through which data and control signals are sent to a computer. They convert input into a digital form that the computer can process.
| Input device | Use / example |
|---|---|
| Keyboard | Enters text, numbers and commands. |
| Mouse | Controls pointer, selects icons and menus. |
| Scanner | Converts printed documents or photographs into digital images. |
| Touch screen | Accepts input by touching the display. |
| Microphone / voice input | Captures spoken commands, such as voice search. |
| Braille keyboard | Helps visually impaired users enter data. |
| Barcode reader | Reads product codes at shops and billing counters. |
Data entered through an input device is temporarily held in main memory (RAM). For permanent storage and future use, data and instructions are saved in secondary memory.
Output Devices
An output device receives data from the computer and presents it in a human-understandable form, on a display, through sound or as a physical product.
| Output device | Purpose |
|---|---|
| Monitor / display | Displays text, images, video and other visual output. |
| Projector | Projects computer output onto a large screen. |
| Speaker / headphone | Produces audio output. |
| Printer | Produces physical output (hardcopy). |
| Braille display monitor | Presents textual output in a form usable by a visually challenged person. |
| 3D printer | Creates a physical replica of a digital 3D design; used for prototypes and explored in medical applications. |
Common printer types
- Inkjet: forms output by spraying tiny droplets of ink onto paper.
- Laser: uses a laser and toner to produce printed output.
- Dot matrix: forms characters and images using pins striking an ink ribbon.
- 3D printer: builds a physical three-dimensional object from a digital design.
Evolution of Computer
Computing devices evolved from simple mechanical calculators to powerful electronic computers and connected smart devices. The textbook timeline highlights these milestones:
| Year / period | Invention / development | Contribution |
|---|---|---|
| About 500 BC | Abacus | Mechanical device used for simple arithmetic calculations. |
| 1642 | Pascaline — Blaise Pascal | Mechanical calculator for addition and subtraction; multiplication and division through repeated addition and subtraction. |
| 1834 | Analytical Engine — Charles Babbage | Mechanical computing device designed for input, processing, storage and output; considered a basis of modern computers. |
| 1890 | Tabulating Machine — Herman Hollerith | Summarised data stored on punched cards; an important step towards data processing. |
| 1937 | Turing Machine concept | General-purpose programmable machine concept capable of solving problems by executing stored instructions. |
| 1945 | EDVAC / ENIAC and stored-program concept | John von Neumann introduced the concept of storing both data and programs in memory. EDVAC and then ENIAC are described in the chapter in this historical context. |
| 1947 | Transistor | Developed at Bell Labs; replaced vacuum tubes and used semiconductor materials. |
| 1970 | Integrated Circuit (IC) | Electronic circuits integrated on a small silicon chip, reducing computer size. |
| 1970s onward | LSI and microprocessor | Large Scale Integration made it possible to place a complete CPU on a single chip. |
Von Neumann architecture
The architecture contains a CPU for arithmetic and logical processing, memory for storing data and programs, input and output devices, and communication channels. Its central idea is the stored-program concept: data and instructions are stored in memory.
Integration technologies
- LSI (Large Scale Integration): integration of a large number of electronic components, enabling a CPU on one chip.
- VLSI (Very Large Scale Integration): much higher integration density, supporting powerful processors.
- SLSI (Super Large Scale Integration): still higher density of transistors and components on a single IC.
Moore’s Law
In 1965, Intel co-founder Gordon Moore predicted that the number of transistors on a chip would double approximately every two years while costs would be halved. The chapter uses this to explain the rapid increase in chip capacity.
Personal and connected computing
IBM introduced a personal computer for home users in 1981; Apple introduced Macintosh machines in 1984. Graphical User Interface (GUI) operating systems helped popularise PCs over command-line-only systems such as DOS and UNIX. Growth of the World Wide Web in the 1990s accelerated computer use. Laptops made computing portable, followed by smartphones, tablets and personal digital assistants. The chapter also points to wearable devices and smart appliances connected through the Internet of Things (IoT), with Artificial Intelligence (AI) contributing to smart functionality.
Computer Memory
A computer needs memory to store data and instructions for processing. The term primary memory generally refers to the main memory directly used by the CPU. Secondary memory stores data, instructions and results for future use.
Units of Memory
Computers store and process information using binary digits. A binary digit, either 0 or 1, is called a bit. Bits are grouped into larger units.
| Unit | Meaning | Relationship |
|---|---|---|
| Bit | Binary digit | 0 or 1 |
| Nibble | 4 bits | Example: 1001 |
| Byte | 8 bits (two nibbles) | Example: 01000110 |
| KB | Kilobyte | 1 KB = 1024 Bytes |
| MB | Megabyte | 1 MB = 1024 KB |
| GB | Gigabyte | 1 GB = 1024 MB |
| TB | Terabyte | 1 TB = 1024 GB |
| PB | Petabyte | 1 PB = 1024 TB |
| EB | Exabyte | 1 EB = 1024 PB |
| ZB | Zettabyte | 1 ZB = 1024 EB |
| YB | Yottabyte | 1 YB = 1024 ZB |
Types of Memory
A. Primary Memory
Programs and data are loaded into primary memory before processing. The CPU interacts directly with it for read and write operations. The two types are RAM and ROM.
RAM — Random Access Memory
- Volatile memory: contents are lost when power is turned off.
- Temporarily stores programs and data currently in use.
- Applications are loaded into RAM when launched.
- Faster than secondary storage.
Example: data currently being edited in a word processor.
ROM — Read Only Memory
- Non-volatile: retains contents without power.
- Stores small but important permanent or rarely changed instructions.
- Example: startup program (boot loader) that loads the operating system into primary memory.
B. Cache Memory
RAM is faster than secondary storage but slower than the CPU. A very high-speed memory called cache is placed between the CPU and primary memory. It stores copies of data from frequently accessed memory locations to reduce average access time.
How it works: the CPU checks cache first. If the required data is present (cache hit), it is read from cache. Otherwise (cache miss), the CPU accesses primary memory.
C. Secondary Memory
Primary memory has limited capacity and RAM is volatile. Secondary memory provides larger, non-volatile storage for long-term use. It is generally slower and cheaper than main memory and is not accessed directly by the CPU; required contents must first be brought into main memory.
Examples: Hard Disk Drive (HDD), Solid State Drive (SSD), CD/DVD, memory card, tape drive and pen/flash drive. SSDs support faster data transfer than traditional HDDs; portable flash drives make data transfer between computers convenient.
| Feature | RAM | ROM | Secondary storage |
|---|---|---|---|
| Volatility | Volatile | Non-volatile | Non-volatile |
| Purpose | Temporary working area | Permanent startup / essential instructions | Long-term data and program storage |
| CPU access | Direct | Direct | Data must be loaded into main memory |
| Capacity / speed | Typically faster than storage | Small, specialised storage | Usually larger and slower than RAM |
| Example | 8 GB RAM | Firmware / boot instructions | SSD, HDD, pen drive |
Data Transfer between Memory and CPU
Data move between CPU and primary memory, and between primary and secondary memory. Components communicate through physical connections called buses.
Three types of bus
| Bus | Function | Direction |
|---|---|---|
| Data bus | Transfers actual data between components. | Bidirectional — data can travel to and from CPU. |
| Address bus | Carries the address of the memory location the CPU wants to read or write. | Unidirectional in the textbook model — CPU sends the address to memory. |
| Control bus | Carries control signals such as read and write. | Shown as unidirectional in the textbook model. |
All three together form the system bus.
Read and write operations
Write operation (CPU → memory)
- CPU places the target memory address on the address bus.
- CPU sends the write control signal on the control bus.
- CPU places the data on the data bus.
- The data is stored at the specified memory address.
Read operation (memory → CPU)
- CPU places the required memory address on the address bus.
- CPU sends the read control signal on the control bus.
- The memory controller manages the transfer and places the requested data on the data bus.
- CPU receives the data.
Microprocessors
Earlier CPUs occupied large rooms or multiple cabinets. Technological progress made it possible to implement a processor (CPU) on a single microchip. Such a processor is called a microprocessor. In modern computers, CPU and microprocessor are commonly used synonymously.
A microprocessor is a small electronic component that performs data-processing tasks, including arithmetic and logical operations. It is built on an integrated circuit containing millions of components such as transistors, resistors and diodes.
Generations of microprocessors (as shown in the textbook)
| Generation | Era | Chip type | Word size | Maximum memory size | Clock speed | Cores | Examples |
|---|---|---|---|---|---|---|---|
| First | 1971–73 | LSI | 4 / 8 bit | 1 KB | 108–200 KHz | Single | Intel 8080 |
| Second | 1974–78 | LSI | 8 bit | 1 MB | Up to 2 MHz | Single | Motorola 6800, Intel 8085 |
| Third | 1979–80 | VLSI | 16 bit | 16 MB | 4–6 MHz | Single | Intel 8086 |
| Fourth | 1981–95 | VLSI | 32 bit | 4 GB | Up to 133 MHz | Single | Intel 80386, Motorola 68030 |
| Fifth | 1995 till date (textbook table) | SLSI | 64 bit | 64 GB | 533 MHz–34 GHz | Multicore | Pentium, Celeron, Xeon |
The table reproduces the historical classifications and example specifications in the supplied textbook edition (2020–21); it should not be treated as a current processor buying guide.
Microprocessor Specifications
A. Word Size
Word size is the maximum number of bits a microprocessor can process at a time. The chapter describes earlier 8-bit words and later 16-, 32- and 64-bit processors. A larger word size can allow the processor to handle more bits in one operation.
B. Memory Size
The textbook explains that the amount of RAM supported varies with processor design and word size. It traces the increase from very small memory capacities in early processors to much larger capacities in later generations.
C. Clock Speed
A computer has an internal clock that generates pulses at regular intervals. Clock speed is the number of clock pulses per second and indicates the rate at which the processor can execute operations. It is measured in Hertz (Hz), Kilohertz (kHz), Megahertz (MHz) or Gigahertz (GHz).
| Unit | Meaning |
|---|---|
| 1 Hz | 1 pulse per second |
| 1 kHz | 1,000 pulses per second |
| 1 MHz | 1,000,000 pulses per second |
| 1 GHz | 1,000,000,000 pulses per second |
D. Cores
A core is a basic computation unit of the CPU. A single-core processor has one core. Multicore processors can execute multiple tasks more effectively and improve system performance.
| Processor type | Number of cores |
|---|---|
| Dual-core | 2 |
| Quad-core | 4 |
| Octa-core | 8 |
Activity 1.2: Find the processor model and clock speed of your computer and compare them with classmates. On Windows, open Task Manager → Performance → CPU; the model and speed are displayed there.
Microcontrollers
A microcontroller is a small computing device that combines a CPU, a fixed amount of RAM, ROM and other peripherals on a single chip. A microprocessor chip, in the chapter’s comparison, contains the CPU, while the rest of the computer system supplies memory and peripherals.
Microcontrollers are designed for specific tasks and are often embedded inside another device. Examples mentioned in the chapter include washing machines, digital cameras, pen drives, remote controllers and microwave ovens.
Example: automatic washing machine
- The microcontroller starts the washing cycle.
- It controls water filling.
- It manages soaking and washing.
- It controls draining of water.
- It controls the spin-drying stage.
| Microprocessor | Microcontroller |
|---|---|
| Primarily the CPU implemented on a chip. | CPU, fixed RAM, ROM and peripherals integrated on one chip. |
| Used as a general-purpose processing component in computers. | Usually designed for a specific embedded control task. |
| Typically depends on external memory and peripherals. | Many required components are already on the chip. |
| Example: processor in a desktop computer. | Example: controller in an automatic washing machine. |
Why appliances use microcontrollers: their tasks are specific and repetitive. Integrating the processor, memory and peripherals on one chip reduces size and cost and allows automatic operation without continuous human intervention.
Data and Information
A computer is primarily used for processing data. Everything handled by a computer—including instructions, pictures, songs, videos and documents—is represented internally as data. Data are raw, unorganised facts. When data are processed and organised to convey meaning, they become information.
Example: individual marks such as 72, 85 and 91 are data. A calculated class average or a ranked result list is information that helps someone understand performance.
Data and Its Types
Input data may come from different sources and in different formats. Internally, a computer stores data in binary form (0 and 1). Externally, users may enter letters, numbers, symbols, other languages, images, audio, video or files. An image is represented as RGB pixels; a video consists of frames; a fee receipt can contain numeric and non-numeric characters.
A. Structured Data
Data that follows a strict, predefined record structure and is easy to understand is called structured data. It is commonly organised in rows and columns and can be sorted.
| Roll No. | Name | Month | Attendance (%) |
|---|---|---|---|
| R1 | Mohan | May | 95 |
| R2 | Sohan | May | 75 |
| R3 | Sheen | May | 92 |
| R4 | Geet | May | 82 |
| R5 | Anita | May | 97 |
| R1 | Mohan | July | 98 |
| R2 | Sohan | July | 65 |
Other examples: sales transactions, online railway ticket bookings and ATM transactions.
B. Unstructured Data
Data that are not organised in a predefined record format are called unstructured data. Examples include audio and video files, graphics, text documents, social-media posts and satellite images. A report card combining free-form text and graphics may also be unstructured if it does not follow a consistent record schema.
C. Semi-structured Data
Semi-structured data does not have a rigid tabular structure but uses internal tags or markers to separate and identify data elements. Examples include email documents, HTML pages and CSV files as listed in the textbook.
Name: Mohan Month: July Class: XI Attendance: 98
Name: Sohan Month: July Class: XI Attendance: 65
Name: Sheen Month: July Class: XI Attendance: 85
Here, labels such as Name, Month, Class and Attendance identify the meaning of each value.
| Type | Organisation | Examples |
|---|---|---|
| Structured | Fixed rows, columns and fields | Student table, bank transactions |
| Semi-structured | Flexible structure with tags / markers | Email, HTML, CSV (as in the chapter) |
| Unstructured | No predefined record structure | Video, audio, images, social posts |
Data Capturing, Storage and Retrieval
Before data can be processed, it must be captured. It is then stored in a file or database. When required, it is retrieved from storage for processing.
A. Data Capturing
Data capturing is the gathering of data from different sources in digital form. Methods include keyboard entry, barcode readers at shops, social-media comments and posts, and remote sensors on satellites. Different formats and sources can make data capture complex.
B. Data Storage
Data storage means saving captured data so it can be processed later. Digital storage devices have become more affordable, but the volume of data continues to grow, so storage capacity must be upgraded periodically. Large organisations may deploy data servers to store large amounts of data and support efficient processing. Setting up and maintaining servers can be expensive, especially for small organisations and start-ups.
C. Data Retrieval
Data retrieval is fetching stored data for processing according to user requirements. As databases grow, searching and retrieving data quickly becomes more challenging. Minimising access time is important for efficient processing.
Data Deletion and Recovery
Digital data may be lost because a storage device malfunctions, a user accidentally deletes files, or a hacker or malware intentionally deletes data.
What happens when a file is deleted?
In many file systems, a normal delete operation initially marks the file’s storage space as available and removes or updates its directory reference. The underlying contents may remain until overwritten. Therefore, the data may sometimes be recovered.
Data Recovery
Data recovery is the process of retrieving deleted, corrupted or lost data from secondary storage devices. Recovery may be possible if the storage space has not been overwritten by other data.
Data security and confidentiality
- Restrict system access to authorised users.
- Use passwords for user accounts and files wherever possible.
- Use encryption to protect files against unauthorised reading or modification.
- Before disposing of old or faulty storage devices, use appropriate secure-erasure or data-shredding tools. A simple delete operation may not permanently remove the contents.
Activity 1.4: Explore safe recovery methods using a test file or a non-critical practice device. Activity 1.5: Create a test file, delete it using Shift+Delete and investigate recovery. Do not perform experiments on important personal or school data.
Software
Hardware means the physical components of a computer that can be seen and touched, such as RAM, keyboard, printer, monitor and CPU. Software is the set of instructions and related data that makes hardware perform desired tasks. Hardware and software work together to complete a task.
Examples of software include operating systems (Ubuntu, Windows), word processors (LibreOffice Writer, Microsoft Word), video players (VLC) and photo editors (GIMP).
A document stored on a hard disk or pen drive is a soft copy. When printed on paper, it becomes a hard copy.
1.7.1 Need of Software
Software makes hardware useful and operational. It tells hardware components how to work, communicate with one another and interact with users. Users cannot normally instruct hardware directly; software acts as an interface between people and hardware.
The chapter broadly classifies software into system software, programming tools and application software.
System Software
System software provides the basic functionality required to operate a computer by interacting directly with its hardware. It may provide services to users and to other software. Main categories described in the chapter are operating systems, system utilities and device drivers.
A. Operating System
The operating system is the most basic system software. It manages application programs and provides access and security for users. Examples listed in the textbook include Windows, Linux, Macintosh, Ubuntu, Fedora, Android and iOS. The full OS topic is covered in section 1.8.
B. System Utilities
A system utility is software used for maintenance and configuration of a computer system.
| Utility | Purpose |
|---|---|
| Disk defragmentation | Reorganises fragmented data on supported disks to improve access efficiency. |
| Formatting utility | Prepares a storage device or partition with a file system. |
| System restore utility | Helps restore system settings to an earlier state. |
| Antivirus | Detects and helps remove malicious software. |
| Disk cleaner | Removes selected temporary or unnecessary files. |
| Disk compression | Reduces the space occupied by stored data. |
C. Device Drivers
A device driver is software that enables the operating system to communicate with and control a particular hardware device. It acts as an interface or mediator, hiding low-level hardware details from the operating system and applications.
Example: a printer driver allows the operating system to send print jobs using instructions understood by the printer. Other examples include graphics, audio, network and scanner drivers.
Programming Tools
To make a computer perform a task, we write instructions in a programming language. Humans and computers use different languages: programmers commonly write in high-level languages, while the processor executes machine instructions. Translators convert source programs into a machine-understandable form. Editors and development environments help create and debug programs.
A. Classification of Programming Languages
Low-level languages
Machine-dependent languages, including machine language and assembly language.
- Machine language: instructions represented using 0s and 1s. The computer can execute them directly.
- Assembly language: uses mnemonic or English-like words and symbols instead of binary instructions. It is CPU-specific.
High-level languages
Generally machine-independent and easier for humans to write and understand. They use English-like statements and language rules.
Examples: C++, Java and Python. They require translation before the processor can execute them.
| Feature | Machine language | Assembly language | High-level language |
|---|---|---|---|
| Representation | 0s and 1s | Mnemonics / symbols | English-like statements |
| Machine dependency | Machine-dependent | Machine-dependent | Generally machine-independent |
| Ease of writing | Very difficult | Easier than machine language | Relatively easy |
| Translator | Not needed to convert to machine code | Assembler | Compiler or interpreter |
| Example | Binary instruction | MOV, ADD (processor-specific) | Python, Java, C++ |
B. Language Translators
The program written in assembly or a high-level language is called source code. The machine-understandable result is called object code or machine code.
1. Assembler
An assembler translates assembly-language instructions into machine language. It is designed for a specific processor instruction set; therefore, the resulting machine code is not generally portable to a different processor architecture.
2. Compiler
A compiler translates the source program into machine code as a whole before execution. If the program follows the language’s syntax rules, the generated code can be executed. Once translation is complete, the compiler is not needed each time the compiled program runs.
3. Interpreter
An interpreter translates and executes the program one statement or line at a time. It checks a line, translates it if syntactically correct, executes it and proceeds to the next line. The interpreter is required whenever the source program is executed.
| Assembler | Compiler | Interpreter |
|---|---|---|
| Assembly → machine code | High-level source → object / machine code | High-level source translated and executed statement by statement |
| Works with assembly language | Translates a program before execution | Works during execution |
| Processor-specific instruction set | Produces a translated program | Reports errors as the relevant statement is reached |
C. Program Development Tools
A text editor allows a programmer to type and save instructions as source code. A translator is then used to produce executable code. A debugger helps detect and correct errors in source code.
An Integrated Development Environment (IDE) combines tools such as a text editor, build tools and debugger in one application. Examples given in the chapter include Python IDLE, NetBeans, Eclipse, Atom and Lazarus.
# Example high-level source code (Python)
number1 = 12
number2 = 8
total = number1 + number2
print(total)
# Output:
20
This is an illustrative Python program. It shows source code written in a high-level language; a Python execution environment interprets the statements to produce output.
Application Software
Application software runs on top of system software and is designed to meet the specific requirements of end users. The chapter divides it into two broad categories.
A. General Purpose Software
Ready-made application software designed for common tasks and a large audience. Users can apply it to their own needs.
Examples: LibreOffice Calc for calculations and account sheets, Adobe Photoshop, GIMP, Mozilla web browser and iTunes.
B. Customised Software
Customised or tailor-made software is developed for a particular organisation or individual according to specific requirements.
Examples: a school management system, an organisation’s accounting system or a website designed for a specific business.
| General purpose | Customised |
|---|---|
| Designed for common needs of many users. | Designed for a particular user or organisation. |
| Ready-made and widely available. | Developed according to specified requirements. |
| Example: spreadsheet application. | Example: school fee-management system. |
Proprietary, Freeware and Free and Open Source Software
Free and Open Source Software (FOSS)
For FOSS, developers make the source code available under a licence that permits users to study, use, modify and redistribute it under the licence conditions. The chapter’s examples include Ubuntu, Python, LibreOffice, OpenOffice and Mozilla Firefox.
Freeware
Freeware is software made available for use without a purchase price. Its source code may not be available, and users may not have permission to modify it. Examples cited in the textbook include Skype and Adobe Reader.
Proprietary Software
Proprietary software is controlled by its copyright holder or vendor and is used according to the licence terms. It may require purchase or subscription; its source code is generally not freely available. Examples cited in the textbook include Microsoft Windows, Tally and Quick Heal.
| Type | Source code access | Modification / redistribution | Examples in the chapter |
|---|---|---|---|
| FOSS | Available under the licence | Permitted according to licence conditions | Ubuntu, Python, LibreOffice, Firefox |
| Freeware | May not be available | Not automatically permitted | Skype, Adobe Reader |
| Proprietary | Generally not publicly available | Controlled by vendor licence | Windows, Tally, Quick Heal |
Operating System
An Operating System (OS) is the most important system software. It can be considered a resource manager because it manages CPU, RAM, disk, network and input/output devices. It also controls application software and device drivers, manages system security and handles access by different users.
Examples listed in the chapter include Windows, Linux, Android, Macintosh, Ubuntu, Fedora and iOS.
Two primary objectives of an operating system
- Provide services for application programs: when an application needs to run, the OS loads it into memory, allocates CPU time and decides the order of execution when several programs need to run.
- Provide a user interface: the OS provides a way for users to enter commands or input and interact with the computer.
OS User Interface
A user interface is the software component through which a user gives commands or input to the operating system. The chapter explains five common types.
A. Command-based Interface
The user types commands to perform tasks such as creating, opening, editing or deleting files. The keyboard is the primary input device. Users must remember command names and syntax. The chapter describes it as less interactive and commonly associated with one program at a time.
DIR # Example command in Windows Command Prompt: list files
CD folder # Change to a directory
CLS # Clear the command screen
Examples: MS-DOS and command-line UNIX environments. The commands above are illustrative examples; exact commands vary by operating system and shell.
B. Graphical User Interface (GUI)
A GUI lets users interact through icons, menus, windows and other visual options. Icons represent files or programs; windows display running programs. Mouse and keyboard are commonly used.
Examples: Microsoft Windows, Ubuntu, Fedora and Macintosh.
C. Touch-based Interface
Users interact through touchscreen actions. Taps, swipes and other touch gestures are interpreted as commands such as opening or closing an app, dialling a number or scrolling.
Examples: Android and iOS; touchscreen versions of Windows also support touch interaction.
D. Voice-based Interface
Users speak commands instead of relying only on a keyboard, mouse or touchscreen. It can improve accessibility and support hands-free interaction.
Examples mentioned in the chapter: Siri on iOS, Google Now / “OK Google” on Android and Cortana in Windows 10.
E. Gesture-based Interface
Users interact through physical or device-recognised gestures such as waving, tilting, eye motion or shaking. The chapter notes possible applications in gaming, medicine and other areas.
| Interface | How the user interacts | Example |
|---|---|---|
| Command-based | Types commands | MS-DOS, UNIX shell |
| GUI | Icons, menus, windows | Windows desktop |
| Touch-based | Taps and swipes | Android / iOS phone |
| Voice-based | Spoken commands | Siri, Google voice assistant |
| Gesture-based | Movement or recognised gestures | Motion-controlled applications |
Functions of Operating System
The operating system manages resources so that multiple programs and users can work efficiently and securely. The chapter discusses four major functions.
A. Process Management
A program is a set of instructions. A process is a program or task currently in execution. Several processes may run while the computer is operational. The OS manages these processes, allocates CPU time and required resources, and supports information exchange among processes.
Example: while a user plays music, downloads a file and edits a document, the OS schedules CPU time and manages the running tasks.
B. Memory Management
Main memory is limited. The OS allocates memory to running processes, frees memory when processes finish and tracks which memory locations are occupied or available. It must do this without interfering with other processes.
Example: when a browser opens a new tab, the OS manages the memory required by the browser and other running programs.
C. File Management
Data and programs are stored as files in secondary storage. File management includes creating, updating, deleting and protecting files. It prevents unauthorised users from accessing files that have not been shared with them.
Key distinction: file management handles files in secondary storage; memory management handles primary (main) memory.
D. Device Management
A computer has many input/output devices. The OS manages these devices by interacting with their device drivers and related software. It supports device configuration and restricts device access to authorised users, software and hardware.
| OS function | Resource managed | Typical responsibility |
|---|---|---|
| Process management | CPU and running tasks | Scheduling, resource allocation, coordination |
| Memory management | Primary memory (RAM) | Allocate, free and track memory |
| File management | Secondary storage files | Create, update, delete and protect files |
| Device management | Input/output hardware | Coordinate drivers, configure devices and control access |
Chapter Summary and Important Points
- A computer accepts input data, processes it according to instructions and produces output.
- The major physical components are CPU, primary memory, input devices and output devices; storage devices provide persistent storage.
- CPU includes ALU, CU and registers.
- RAM is volatile; ROM and secondary storage are non-volatile.
- Cache stores frequently accessed data to reduce average access time.
- Bit is a binary digit; 4 bits form a nibble and 8 bits form a byte.
- Data, address and control buses together form the system bus.
- A microprocessor implements a CPU on a chip; a microcontroller integrates CPU, memory and peripherals for embedded tasks.
- Word size, memory capacity, clock speed and number of cores are processor specifications.
- Structured data follows a predefined record format; semi-structured data uses tags; unstructured data has no predefined record structure.
- Data capture, storage and retrieval are stages before or during data processing.
- Deleted data may remain recoverable until overwritten; secure erasure is important before disposal.
- Software makes hardware functional. Software categories include system software, programming tools and application software.
- Assembler translates assembly language; compiler translates a program before execution; interpreter translates and executes statement by statement.
- FOSS, freeware and proprietary software are distinguished by source-code and licence rights, not simply by price.
- The OS provides application services and a user interface and manages processes, memory, files and devices.
Key terms
CPU • ALU • CU • Register • Input device • Output device • RAM • ROM • Cache • Secondary memory • Bit • Byte • Bus • Microprocessor • Microcontroller • Word size • Clock speed • Core • Structured data • Semi-structured data • Unstructured data • Data recovery • Hardware • Software • Source code • Object code • Assembler • Compiler • Interpreter • IDE • FOSS • Operating system • Process management
Exercise — Solved Answers
The following answers address all 14 exercise questions on pages 24–25 of the supplied chapter.
Q1. Name the software required to make a computer functional. Write down its two primary services.
Q2. How does the computer understand a program written in high-level language?
Q3. Why is the execution time of machine code less than that of source code?
Q4. What is the need of RAM? How does it differ from ROM?
Q5. What is the need for secondary memory?
Q6. How do different components of the computer communicate with each other?
Q7. Draw the block diagram of a computer system. Briefly write about the functionality of each component.
CPU ↔ Primary memory ↔ Secondary storage
- Input device: enters data and instructions.
- CPU: processes data; ALU performs arithmetic/logical operations and CU controls execution.
- Primary memory: stores data and programs currently being processed.
- Secondary storage: stores data and programs permanently for future use.
- Output device: presents processed results to the user.
Q8. What is the primary role of system bus? Why is data bus bidirectional while address bus is unidirectional?
Q9. Differentiate between proprietary software and freeware software. Name two software for each type.
Q10. Write the main difference between microcontroller and microprocessor. Why do smart home appliances have a microcontroller instead of microprocessor embedded in them?
Q11. Mention the different types of data that you deal with while browsing the Internet.
Q12. Categorise the following data as structured, semi-structured and unstructured: Newspaper, Cricket Match Score, HTML Page, Patient records in a hospital.
| Item | Category | Reason |
|---|---|---|
| Newspaper | Unstructured (in the broad printed-content sense) | Contains mixed text, photographs and layouts rather than one consistent record schema. |
| Cricket match score | Structured | Typically organised into fields such as player, runs, balls, overs and wickets. |
| HTML page | Semi-structured | Uses tags to mark and organise content. |
| Patient records in a hospital | Structured | Typically stored in predefined fields such as patient ID, name, date, diagnosis and test results. |
Note: A digital newspaper page can contain structured metadata and semi-structured HTML as well; the classification above treats the newspaper content as a whole.
Q13. Name the input or output device used to do the following.
| Task | Device | Type |
|---|---|---|
| a) Output audio | Speaker or headphone | Output |
| b) Enter textual data | Keyboard | Input |
| c) Make hard copy of a text file | Printer | Output |
| d) Display data or information | Monitor / display | Output |
| e) Enter audio-based command | Microphone | Input |
| f) Build 3D models | 3D printer (to produce the physical model) | Output |
| g) Assist a visually-impaired individual in entering data | Braille keyboard | Input |
Q14. Identify the category (system, application, programming tool) of the following software: Compiler, Assembler, Ubuntu, Text editor.
| Software | Category | Reason |
|---|---|---|
| Compiler | Programming tool | Translates high-level source code. |
| Assembler | Programming tool | Translates assembly code into machine code. |
| Ubuntu | System software | It is an operating system. |
| Text editor | Programming tool | Used to create and edit source code. |
Explore Yourself — Suggested Work
- Locate two device drivers: open Device Manager and note two installed drivers, their device categories and provider names.
- List system and application software: prepare a table of two system software examples and two application software examples installed on your computer.
- Identify your processor: note the processor model and use the manufacturer’s specifications to identify its generation/family.
- Find clock speed: use Task Manager → Performance → CPU or the system information utility; record the displayed speed.
- Find microcontrollers: list two home or school devices that contain a microcontroller, such as a washing machine or microwave oven.
- Record RAM and HDD/SSD capacity: prepare a table and convert capacities using the textbook’s 1024-based units. Example: 4 GB = 4096 MB = 4 × 1024 × 1024 × 1024 bytes.
- List secondary storage: identify HDD, SSD, pen drive, memory card, optical disc or other devices available at home or school.
- Identify the operating system: record the OS name and version installed on your home or school computer.
Quick self-check
- Can you explain the difference between ALU and CU?
- Can you distinguish RAM, ROM, cache and secondary storage?
- Can you explain the roles of all three buses?
- Can you distinguish a microprocessor from a microcontroller?
- Can you classify examples of structured, semi-structured and unstructured data?
- Can you compare assembler, compiler and interpreter?
- Can you name the five user-interface types and four OS management functions?
TEXTBOOK SOLUTION
Step-by-step solved textbook exercises, derivations, and solutions.
Exercise Solutions Being Updated
Step-by-step verified exercise solutions are currently being uploaded.
IMPORTANT QUESTION
High-yield board questions, previous year questions (PYQs), and model answer keys.
Important Questions Being Compiled
Board blueprint and previous years' exam questions for this chapter will be live soon.