What a Computer System Is
Quick answer A computer system is hardware plus software running the Input-Process-Output cycle through five functional units — input, memory, control unit, ALU and output — where the control unit and ALU together form the CPU.
A computer system is an electronic machine that accepts raw data, processes it using a stored set of instructions, and gives out information. Keep those two words apart in the exam. Data is raw and by itself meaningless — 245. Information is processed data that answers something — "your electricity bill is Rs 1465".
Every job a computer does, from adding two numbers to booking a Tatkal ticket on IRCTC, follows the same three-stage IPO cycle: Input, then Process, then Output. A fourth stage, Storage, sits alongside so results survive after the machine is switched off. When you pay by UPI, the touchscreen takes the input (amount and PIN), the processor and the bank's servers do the processing, the "Payment Successful" screen is the output, and the entry in your passbook is the storage.
Hardware is every part you can touch — the keyboard, the motherboard, the RAM stick, the printer. Software is the set of instructions that tells the hardware what to do; you cannot touch it, you can only copy it. Neither is useful alone. Hardware without software is a dead box of metal; software without hardware is a file that nobody can run.
| Point | Hardware | Software |
|---|---|---|
| Nature | Physical, tangible | Logical, a set of instructions |
| Made by | Manufacturing | Programming |
| Failure | Wears out, can break physically | Does not wear out, but can have bugs or get corrupted |
| Repair | Replace or repair the part | Reinstall or update |
| Examples | Monitor, mouse, hard disk, CPU chip | Windows, Python, Chrome, a printer driver |
The five functional units. Whatever the size of the machine — a supercomputer at C-DAC or the chip inside a washing machine — the same five blocks are present.
+-------------+ +--------------------------+ +--------------+
| INPUT UNIT | ----- | CPU | ----- | OUTPUT UNIT |
| keyboard, | | +--------+ +--------+ | | monitor, |
| mouse, | | | CU | | ALU | | | printer, |
| scanner | | +--------+ +--------+ | | speaker |
+-------------+ | +------------------+ | +--------------+
| | REGISTERS | |
| +------------------+ |
+--------------------------+
|
+---------------------------+
| MEMORY UNIT |
| primary (cache/RAM/ROM) |
| secondary (HDD/SSD/pen) |
+---------------------------+
- Input unit — accepts data from outside and converts it into the binary form the machine understands.
- Memory unit — holds the data and the instructions while work is going on.
- Control Unit (CU) — the manager. It fetches each instruction, decodes it, and sends control signals telling the other units what to do. It does no calculation itself.
- Arithmetic Logic Unit (ALU) — does the actual work: arithmetic (
+ - * / // %) and logic (comparisons,and,or,not). - Output unit — converts the binary result back into a form a human can use.
The CPU (Central Processing Unit), also called the processor or the microprocessor, is the CU and the ALU together, plus a small set of registers. Registers are the CPU's own tiny, extremely fast storage — the accumulator, the program counter (which holds the address of the next instruction), the instruction register and the memory address register. They hold one value at a time, and they are the fastest storage in the whole machine because they sit inside the processor itself.
The CPU repeats one loop, the machine cycle: Fetch the next instruction from memory, Decode it, Execute it, Store the result. Everything inside the CPU is kept in step by a clock, and clock speed is simply how many clock pulses, or cycles, that clock produces per second. A 3.2 GHz processor produces 3.2 billion clock cycles a second. Be careful not to read that as 3.2 billion instructions a second — one machine cycle normally takes several clock cycles, so the two numbers are not the same. Note the other trap too: for clock speed, giga means 1,000,000,000 exactly, but for memory, giga means 1024 x 1024 x 1024. The two "giga"s are not the same number.
All these units are mounted on or plugged into the motherboard and talk to each other over the system bus, which has three parts: the address bus (which memory location), the data bus (what value) and the control bus (read or write).
The single idea that makes a computer general-purpose is the stored program concept: instructions and data both live in the same main memory. That is why one laptop can be a music player at 9 pm and a Python IDE at 10 pm — you change the instructions in memory, not the hardware.
Worked example 1 — the IPO cycle in code. This program is nothing but Input, Process, Output.
# INPUT: the keyboard (an input device) sends the digits to the CPU
units = int(input("Units consumed: "))
print("Value now in main memory:", units)
# PROCESS: the ALU inside the CPU does the arithmetic
if units <= 100:
bill = units * 4.5
else:
bill = 100 * 4.5 + (units - 100) * 7.0
# OUTPUT: the monitor (an output device) shows the answer
print("Electricity bill = Rs", bill)
Output when the value 245 is supplied to the program:
Units consumed: Value now in main memory: 245
Electricity bill = Rs 1465.0
The first line looks squashed for a good reason. The prompt "Units consumed: " is printed without moving to a new line, and here the 245 was fed straight in rather than typed, so nothing was echoed after the prompt and the next print() continued on the very same line. When you run it and type 245 yourself, the digits you type appear after the prompt and the rest follows below. Notice also that input() handed over the characters 2, 4, 5 as a string — int() had to convert them into a number before the ALU could multiply anything.
Worked example 2 — what the ALU actually does. The "A" and the "L" of ALU, in one program.
a = 17
b = 5
# Arithmetic work - the "A" of ALU
print(a + b, a - b, a * b, a // b, a % b)
# Logic work - the "L" of ALU
print(a > b, a == b, a > b and b > 0, not (a < b))
Output:
22 12 85 3 2
True False True True
Every high-level thing your computer does — playing a video, checking an Aadhaar OTP, rendering this page — is finally broken down into millions of these two kinds of operation.
- Data is raw; information is processed data. Every computer task is the IPO cycle: Input, Process, Output, with Storage alongside.
- Hardware is the tangible parts, software is the instructions. Each is useless without the other.
- The five functional units are input, memory, control unit, ALU and output; CPU = Control Unit + ALU + registers.
- The CU directs and decodes but never calculates; the ALU calculates and compares but never decides what comes next.
- Clock speed counts clock cycles per second, not instructions per second — one machine cycle takes several clock cycles.
- The stored program concept — instructions and data sharing main memory — is what makes one machine general-purpose.
