A computer is an electronic device that accepts raw data as input, processes it according to a set of instructions stored in its memory, and produces meaningful information as output. The beauty of a computer lies in its speed, accuracy, diligence, versatility and enormous storage capacity. The modern digital computer has evolved from simple calculating machines into powerful devices capable of controlling spacecraft, diagnosing diseases, simulating weather and running the entire internet.
The subject of Informatic Practices begins with understanding the fundamental building blocks of a computer system. A computer system is not just the hardware that you can touch; it is the combination of hardware, software, data, and users working together. Every computing task, from typing a document to running a Python program, ultimately depends on how these components interact through the input-process-output cycle. Understanding this architecture is the foundation on which all programming concepts taught in later chapters are built.
This chapter introduces the functional units of a computer, the characteristics of memory, the role of input and output devices, the concept of software, and how data is represented inside the machine using the binary number system. It also touches on Boolean logic, which forms the mathematical backbone of all digital circuits. Mastery of these topics helps a student understand why programs behave the way they do and how the hardware interprets the instructions we write.
A computer performs a task by following five basic operations: taking input, storing it, processing it, generating output, and controlling all these activities. These operations are carried out by distinct units that together form the functional architecture of a computer.
The input unit is responsible for accepting data and instructions from the user and converting them into a form that the computer can understand. Input devices such as a keyboard, mouse, scanner, microphone, and webcam feed data into the system. The data is converted into binary form (0s and 1s) before it can be processed.
The CPU is often called the brain of the computer. It has three main components: - Arithmetic Logic Unit (ALU): Performs all arithmetic operations (addition, subtraction, multiplication, division) and logical operations (comparison like greater than, less than, equal to). - Control Unit (CU): Directs and coordinates the operations of all other units. It does not process data itself but tells other components what to do and in what order. - Registers: Small, high-speed memory locations inside the CPU used to hold data and instructions temporarily during processing.
The memory unit stores data and instructions. It is divided into primary memory (RAM, ROM, cache) and secondary memory (hard disk, SSD, pen drive). Primary memory is fast but volatile and expensive; secondary memory is slow but non-volatile and cheap.
The output unit converts processed data from machine-readable binary form into human-readable form. Common output devices are the monitor, printer, speaker, and projector.
Hardware refers to the physical, tangible parts of a computer such as the CPU, keyboard, monitor, and motherboard. Software refers to the set of programs and instructions that tell the hardware what to do. Software is classified into two broad categories:
The operating system is the most important piece of system software. It acts as an interface between the user and the hardware and manages processes, memory, files, and devices. Examples of operating systems used in modern devices include Windows, Linux, Android, and iOS.
Secondary memory, also called auxiliary or external storage, provides permanent and large-capacity storage. It is non-volatile and slower than primary memory. Examples include hard disk drives (HDD), solid-state drives (SSD), CDs, DVDs, USB flash drives, and memory cards. The CPU cannot access secondary memory directly; data must first be copied into primary memory.
| Memory Type | Volatility | Speed | Capacity | Use |
|---|---|---|---|---|
| Register | Volatile | Fastest | Few bytes | Temporary CPU storage |
| Cache | Volatile | Very fast | Few MB | Frequently used data |
| RAM | Volatile | Fast | Several GB | Currently running programs |
| ROM | Non-volatile | Medium | Few MB | Boot instructions |
| Hard Disk / SSD | Non-volatile | Slow compared to RAM | TBs | Permanent storage |
Input devices convert data into computer-readable form. The most common are: - Keyboard: For typing text and giving commands. - Mouse: A pointing device used to select and manipulate items on screen. - Scanner: Converts printed text or images into digital form. - Microphone: Converts sound into digital signals. - Light Pen, Joystick, Touchscreen, Barcode Reader: Used for specialised input in design, gaming, and retail environments.
Output devices present processed information to the user: - Monitor: Displays soft copies of information. Types include LCD and LED monitors. - Printer: Produces hard copies. Types include dot-matrix, inkjet, and laser printers. - Speaker and Headphones: Produce audio output. - Projector: Displays output on a large screen for presentations.
Computers work on electricity, and every piece of data inside a computer is ultimately represented using only two states: ON and OFF, represented by the binary digits 1 and 0, called bits. A group of 8 bits is called a byte.
The binary number system has base 2, the decimal system has base 10, the octal system has base 8, and the hexadecimal system has base 16. Conversion between these systems is frequently asked in exams.
To convert a decimal number to binary, repeatedly divide the number by 2 and record the remainders. For example, decimal 13 in binary:
13 / 2 = 6 remainder 1
6 / 2 = 3 remainder 0
3 / 2 = 1 remainder 1
1 / 2 = 0 remainder 1
Reading remainders bottom-up: 1101
So (13)10 = (1101)2
To convert binary to decimal, multiply each digit by the appropriate power of 2:
(1101)2 = 1*8 + 1*4 + 0*2 + 1*1 = 8 + 4 + 0 + 1 = 13
Boolean logic, named after George Boole, uses two values: TRUE (1) and FALSE (0). The three basic gates used in digital circuits are: - AND gate: Output is 1 only when all inputs are 1. - OR gate: Output is 1 when at least one input is 1. - NOT gate: Inverts the input; output is 1 when input is 0.
Boolean algebra is used to design circuits in the ALU and to optimise logical conditions inside programs. For example, the condition if age >= 18 and has_id == True in Python is a direct application of an AND operation.
| Device | Category | Function |
|---|---|---|
| Keyboard | Input | Enter text and commands |
| Mouse | Input | Point and click |
| Scanner | Input | Digitise images and text |
| Monitor | Output | Display soft copy |
| Printer | Output | Produce hard copy |
| Speaker | Output | Produce sound |
| RAM | Memory | Temporary working storage |
| ROM | Memory | Permanent boot instructions |
| System | Base | Digits Used | Example |
|---|---|---|---|
| Binary | 2 | 0, 1 | (1101)2 |
| Octal | 8 | 0-7 | (15)8 |
| Decimal | 10 | 0-9 | 13 |
| Hexadecimal | 16 | 0-9, A-F | (D)16 |
A computer system is a well-organised combination of hardware and software that transforms raw data into meaningful information through the input-process-output cycle. The CPU, memory, input and output devices each play a vital role, and the operating system binds everything together. Understanding how data is represented in binary and how Boolean logic drives digital circuits gives a programmer deep insight into the behaviour of the machine. This foundational knowledge is essential before moving on to programming, because every variable, every condition, and every file we manipulate in Python ultimately lives inside this hardware that we have just studied.