📘 CodingMarble Learn

Basic Computer Organisation

A computer system has hardware (parts you can touch) and software (instructions). Input devices bring data in, the CPU (ALU + Control Unit + registers) processes it, and output devices give results. Memory forms a ladder: registers and cache are tiny and fastest, primary memory (RAM, ROM) holds running programs, and secondary storage (HDD, SSD, pen drive) keeps data permanently. Memory is measured in bits and bytes: 8 bits = 1 byte, and each bigger unit (KB, MB, GB, TB, PB) is 1024 times the one before.

🎬 Step-by-step story

  1. Hardware is what you can touch. Software is the list of instructions that makes the hardware work.
  2. Data goes in through input devices. The CPU works on it. Results come out through output devices.
  3. The CPU has three parts. The ALU does maths. The Control Unit gives orders. Registers hold numbers in use right now.
  4. Memory is a ladder. Registers and cache are small and very fast. RAM is in the middle. Hard disk and SSD are big and slow.
  5. Memory is counted in bits. 8 bits make 1 byte. After that, each unit is 1024 times bigger: KB, MB, GB, TB, PB.
  6. Your turn: tap any memory unit and see its size in the smaller unit and in bytes.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

If software can't be touched, where is it?

Software is stored as 0s and 1s on storage like an SSD. When you open it, a copy goes into RAM and the CPU follows its instructions.

Is the CPU the whole box on my table?

No. The box is the cabinet. The CPU is one small chip inside it. In the 3D it is the blue block that data flows into.

Why not make all memory as fast as registers?

Fast memory is very costly and uses more power. So a computer keeps a little fast memory near the CPU and lots of cheap slow storage further away. Watch the ladder widen as it gets slower.

Why 1024 and not 1000?

Computers count in powers of 2. 2¹⁰ = 1024 is the power of 2 closest to 1000, so each step up uses 1024.

Does cache store my files?

No. Cache only keeps short-term copies of data the CPU is using a lot. Files are saved on secondary storage.

Hardware and software

Hardware is every physical part of a computer: CPU, keyboard, monitor, RAM, hard disk. You can touch it.

Software is a set of programs (instructions) that tell the hardware what to do: Windows, Android, Python, a web browser. You cannot touch it.

Hardware without software is a dead box. Software without hardware has nowhere to run. A computer system needs both, plus data and a user.

Input and output devices

An input device sends data or commands into the computer: keyboard, mouse, microphone, scanner, webcam, touch screen, barcode reader, biometric (fingerprint) sensor.

An output device gives the result to the user: monitor, printer, speaker, projector, headphones, plotter, 3D printer.

Some devices do both, such as a touch screen (you touch = input, it shows = output).

All devices send and receive data as binary (0s and 1s).

The CPU (Central Processing Unit)

The CPU is the brain of the computer. It is also called the processor. It has:

A CPU with many cores can work on many tasks at the same time. Its speed is measured in GHz.

Primary, cache and secondary memory

Primary memory is the main memory the CPU reads directly.

Cache memory sits between the CPU and RAM. It keeps copies of the most used data, so the CPU does not wait for slower RAM.

Secondary memory stores data permanently: hard disk (HDD), SSD, pen drive, memory card, CD/DVD. It is big and cheap but slower. The CPU cannot use it directly; data is first loaded into RAM.

Speed order (fastest first): registers → cache → RAM → secondary storage.

Memory units from bit to petabyte

A bit (binary digit) is 0 or 1, the smallest unit.

UnitEquals
1 nibble4 bits
1 byte8 bits
1 KB (kilobyte)1024 bytes
1 MB (megabyte)1024 KB
1 GB (gigabyte)1024 MB
1 TB (terabyte)1024 GB
1 PB (petabyte)1024 TB

Going to a bigger unit: divide by 1024. Going to a smaller unit: multiply by 1024. 1024 = 210.

Board exam focus

Usual questions (1–3 marks): difference between RAM and ROM, primary vs secondary memory, why cache is needed, parts of the CPU, and unit conversions like "how many bits in 2 KB?". Always show the ×1024 steps.

Key formulas and definitions

Worked examples

1. How many bits are there in 2 KB?

2 KB = 2 × 1024 = 2048 bytes. Bits = 2048 × 8 = 16384 bits.

2. Convert 3 GB to MB and to KB.

3 GB = 3 × 1024 = 3072 MB. 3072 MB = 3072 × 1024 = 3,145,728 KB.

3. A file is 5120 KB. How many MB is it?

Going to a bigger unit, divide: 5120 ÷ 1024 = 5 MB.

4. Classify: scanner, plotter, touch screen, SSD, webcam, projector.

Input: scanner, webcam. Output: plotter, projector. Both: touch screen. Storage (secondary memory): SSD.

5. Why is cache memory placed between the CPU and RAM?

The CPU is much faster than RAM. Cache keeps a copy of the most used data right next to the CPU, so the CPU gets it quickly instead of waiting for RAM. This makes the whole computer faster.

6. How many 4 GB videos can fit on a 1 TB disk?

1 TB = 1024 GB. 1024 ÷ 4 = 256 videos.

Common mistakes

Practice quiz

1. Which part of the CPU does comparisons like A > B?
2. Which memory is volatile?
3. 1 byte equals:
4. Which is the fastest?
5. 1 TB equals:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What are the main components of a computer system?

Input devices, the CPU (ALU, CU, registers), memory (primary and secondary) and output devices, all connected by buses, plus the software that runs on them.

What is the difference between primary and secondary memory?

Primary memory (RAM, ROM) is directly used by the CPU, is faster and smaller; RAM is volatile. Secondary memory (HDD, SSD) is slower, bigger, cheaper and keeps data permanently.

What is the order of memory units?

bit < nibble (4 bits) < byte (8 bits) < KB < MB < GB < TB < PB, each from KB onwards being 1024 times the previous.

Where this is taught

Canada (Ontario)Grade 10B. Hardware, Software, and Innovations
Canada (Ontario)Grade 11C. Computer Environments and Systems
Canada (Ontario)Grade 11C. Computer Environments and Systems
Canada (Ontario)Grade 11A. Computer Technology Fundamentals
Canada (Ontario)Grade 11B. Computer Technology Skills
Canada (Ontario)Grade 11A. Computer Technology Fundamentals
Canada (Ontario)Grade 11C. Fabrication, Assembly, and Finishing Skills
Canada (Ontario)Grade 12A. Computer Technology Fundamentals
Canada (Ontario)Grade 12B. Computer Technology Skills
Canada (Ontario)Grade 12A. Computer Technology Fundamentals
Canada (Ontario)Grade 12B. Computer Technology Skills
Canada (Ontario)Grade 12C. Fabrication, Assembly, and Finishing Skills
Spain2º ESODigitalising the personal learning environment
Spain3º ESODigitalising the personal learning environment
CBSE (India)Class 11Computer Systems and Organisation
CBSE (India)Class 11Introduction to Computer System
CBSE (India)Class 11Computer Organisation
Japan高校(専門学科)1〜3年Programming
Japan高校(専門学科)1〜3年Industrial Information and Mathematics
Japan高校(専門学科)1〜3年Hardware Technology
South Korea중학교 2학년Computing systems
South Korea중학교 3학년Computing systems
South Korea고등학교 3학년ICT and new materials
South Korea고등학교 3학년Computing systems
Germany (Bavaria)Jahrgangsstufe 12How a computer works
Russia7 классDigital literacy
Russia7 классDigital literacy

Learn next

Related lessons

All Computer Science lessons