VM-LEARNING /class.xi ·track.cs ·ch-1-1 session: 2026_27
$cd ..

~/Basic Computer Organisation

root@vm-learning ~ $ open ch-1-1
UNIT 1 ▪ CHAPTER 1
01
Basic Computer Organisation
Hardware · Software · CPU · Memory
A Computer is an electronic device that accepts input (data & instructions), processes it according to a stored set of instructions (called a program), stores the data and results, and produces meaningful output. The word comes from the Latin computāre, meaning "to calculate" — but today's computers do far more than arithmetic. They play music, drive cars, detect diseases, and even write poetry. In this chapter we study the machine itself: the parts it is built from, how those parts cooperate, the different kinds of software that make it useful, and the operating system that ties everything together.
Key characteristics of a computer:
  • Speed — modern processors execute billions of instructions per second.
  • Accuracy — output is exactly what the program asks for (errors are usually human or input errors).
  • Storage — can hold vast amounts of data (photos, videos, entire libraries).
  • Diligence — performs the same task repeatedly without getting tired or bored.
  • Versatility — the same device can compose music, calculate GST, and stream a movie.
  • Automation — once programmed, it works without human intervention.
Learning Outcome 1: Describe the functional units of a computer system and the devices connected to it.

1.1 Basic Computer Organisation

A computer system is organised into four functional units that work together. Input travels from the outside world into the machine, gets processed by the CPU with the help of memory, and output goes back out. This design is often called the von Neumann architecture (after mathematician John von Neumann, 1945).

Block diagram (conceptual): INPUT devices CPU ALU CU Registers OUTPUT devices MEMORY Primary + Cache + Secondary Data flow → two-way bus (read / write) The four units — Input, CPU, Memory, Output — plus a system bus that carries data between them, together make up the computer. The arrows show the direction of normal data flow; the CPU↔Memory link is two-way because the CPU both reads instructions from memory and writes results back to it.

1.2 Hardware vs. Software

Everything physical you can touch in a computer is hardware. Everything you can only run — the instructions that tell the hardware what to do — is software. A computer needs both to be useful. A laptop without Windows is a brick; Windows without a laptop is a DVD.

AspectHardwareSoftware
NaturePhysical / tangibleLogical / intangible (programs)
Touch?Yes — can be seen & heldNo — stored as data / code
Wear & tearSuffers physical damageDoes not wear out, but can become outdated or corrupted
ExamplesCPU, RAM, keyboard, monitorWindows, MS Word, Chrome, Python
ReplacementMust be physically installedDownloaded / re-installed digitally

1.3 Input Devices

An input device is any hardware that lets the user feed data or instructions into the computer. It converts human-readable information into the binary signals the CPU understands.

1.3.1 Common Input Devices

DeviceWhat it doesEveryday Example
KeyboardEnters text and commands by pressing keys (QWERTY layout, 104/108 keys).Typing an essay in MS Word.
MouseA pointing device — moves a cursor, clicks and drags.Selecting a file on the desktop.
Touch screenA screen that senses finger or stylus touch — acts as input and output.Android phone, ATM, self-order kiosk.
ScannerConverts a printed document or photo into a digital image.Scanning an Aadhaar card for upload.
MicrophoneConverts sound waves into an audio signal.Voice note on WhatsApp.
Webcam / CameraCaptures still photos and live video.Attending a Google Meet class.
Joystick / GamepadLets the user control movement in games or simulators.Flight simulator, console gaming.
Light penA pen-shaped sensor used to draw or select directly on the screen.Designing on a graphics tablet.
Barcode readerReads the black-and-white bars printed on products.Billing at a grocery store POS.
OMR (Optical Mark Reader)Detects pencil marks on a printed sheet.Checking JEE / NEET OMR answer sheets.
Biometric sensorReads a unique body trait — fingerprint, iris, face.Aadhaar authentication, office attendance.

1.4 Output Devices

An output device presents processed information back to the user, usually by converting the computer's binary signals into a form humans can see, hear or feel.

1.4.1 Visual Output Devices

1.4.2 Audio Output Devices

Input or output? A few devices do both:
  • Touch screen — shows output and accepts touch input.
  • Modem — sends (output) and receives (input) network data.
  • Headset with mic — speaker = output, mic = input.
These are sometimes called I/O devices.

1.5 The CPU — Central Processing Unit

The CPU is the "brain" of the computer — the chip that actually carries out the instructions of a program. In a modern laptop it is a small square chip, typically made by Intel (Core i3 / i5 / i7) or AMD (Ryzen). Mobile phones use chips such as Qualcomm Snapdragon or Apple's A-series. A CPU has three main parts:

ALU — Arithmetic & Logic Unit Performs all calculations (add, subtract, multiply, divide) and comparisons (greater than, equal, less than). This is where real "thinking" happens.
CU — Control Unit Fetches each instruction from memory, decodes what it means, and tells the ALU, memory and I/O what to do. Think of it as the traffic policeman of the chip.
Registers Tiny, ultra-fast storage inside the CPU. Hold the instruction being executed and the data being worked on right now. Access time: < 1 ns.
The Fetch–Decode–Execute cycle. Every instruction a computer runs follows the same three-step pattern, millions or billions of times per second:
  1. Fetch — the CU pulls the next instruction from main memory into a register.
  2. Decode — the CU figures out what the instruction is (add? move? jump?).
  3. Execute — the ALU (or another unit) actually performs the operation and writes the result back.
The speed of this cycle is measured in hertz (Hz). A 3 GHz processor can run roughly 3 billion cycles per second.
Fetch – Decode – Execute cycle (visual): 1. FETCH read next instruction from memory 2. DECODE CU interprets what it means 3. EXECUTE ALU performs op store result Repeats billions of times per second (Hz) Controlled by the system clock — each tick advances the cycle.
Learning Outcome 2: Classify different types of memory and state their units.

1.6 Memory of a Computer

Computers need places to keep data and instructions. These storage areas are collectively called memory. But not all memory is the same — it differs in speed, size and cost. Memory is organised as a hierarchy, with a small amount of very fast, costly memory close to the CPU, and a large amount of slower, cheaper memory further away.

Memory Hierarchy (pyramid — fastest at top): Registers Cache (L1 / L2 / L3) Primary Memory (RAM, ROM) volatile working memory Secondary Storage HDD · SSD · USB · DVD · Cloud Faster Smaller Costlier per bit Slower Larger Cheaper per bit Access time: Registers ≈ 1 ns · Cache ≈ 3 ns · RAM ≈ 100 ns · SSD ≈ 0.1 ms · HDD ≈ 10 ms

1.6.1 Primary Memory (Main Memory)

Primary memory is directly accessible by the CPU. It holds the program currently running and the data it is working on. When you open Chrome, Windows copies Chrome from your hard disk into primary memory so the CPU can execute it quickly.

(a) RAM — Random Access Memory
(b) ROM — Read Only Memory
FeatureRAMROM
VolatilityVolatile (loses data on power-off)Non-volatile (retains data)
Read/WriteRead & WriteMostly Read only
PurposeWorking memory for running programsStart-up firmware (BIOS)
Typical size4 GB – 32 GBA few MB
Modifiable by user?Yes — data changes constantlyUsually no (manufacturer-written)

1.6.2 Cache Memory

Cache is a small but very fast SRAM memory placed between the CPU and the main RAM. It stores copies of the data the CPU is likely to use next — so the CPU doesn't have to wait for slow RAM every time. Most modern processors have three levels:

Why cache? Accessing RAM takes about 100 CPU cycles; accessing L1 cache takes 2–4. A well-designed cache reduces this delay by keeping recently used and nearby data close at hand — an idea called the locality of reference.

1.6.3 Secondary Memory (Auxiliary Storage)

Secondary memory keeps data permanently, even when the machine is off. It is slower than RAM, but far larger and cheaper. This is where your photos, documents, installed apps and OS itself actually live.

DeviceTechnologyTypical CapacityCommon Use
HDD (Hard Disk Drive)Spinning magnetic platters + moving head500 GB – 10 TBBulk storage in desktops & servers
SSD (Solid State Drive)Flash memory chips (no moving parts)128 GB – 4 TBFast boot drives in modern laptops
USB pen driveFlash memory8 GB – 1 TBCarrying files between computers
Memory card (SD / microSD)Flash memory16 GB – 1 TBPhones, cameras, Raspberry Pi
CD / DVD / Blu-rayOptical — laser reads pits on a disc700 MB / 4.7 GB / 50 GBMovies, software distribution (legacy)
Magnetic tapeLong tape coated with magnetic particlesHundreds of TB per cartridgeEnterprise back-ups, archives
Cloud storageRemote servers accessed over the InternetEffectively unlimitedGoogle Drive, DigiLocker, DropBox

1.6.4 Units of Memory

Computers store everything — text, images, sounds, videos — as binary digits (0 and 1). A single binary digit is a bit. Larger amounts of memory are expressed as multiples of a byte.

UnitSymbolSizeRoughly…
Bitb0 or 1Smallest unit — a single yes/no
Nibble4 bitsHalf a byte (one hex digit)
ByteB8 bits1 character (e.g., the letter 'A')
KilobyteKB1024 bytes½ page of typed text
MegabyteMB1024 KBA short MP3 song
GigabyteGB1024 MBA full-length HD movie
TerabyteTB1024 GBCapacity of a laptop hard disk
PetabytePB1024 TBData processed by Google in ~a day
ExabyteEB1024 PBTotal global Internet traffic every few hours
Memory conversion shortcut:
1 KB = 210 B = 1024 B
1 MB = 220 B = 1024 KB
1 GB = 230 B = 1024 MB
1 TB = 240 B = 1024 GB
Each step up is × 1024 (≈ 1000).
Quick calculations:
  1. A pen drive is labelled 16 GB. How many bytes is that? → 16 × 1024 × 1024 × 1024 ≈ 1.72 × 1010 bytes (~17 billion).
  2. An MP3 song is 4 MB. How many songs fit in 1 GB? → 1024 ÷ 4 = 256 songs.
  3. A photo is 2 MB. How many photos fit in an 8 GB card? → 8192 ÷ 2 = 4096 photos.

📌 Quick Revision — Chapter 1 at a Glance

  • Computer = electronic device that processes data following stored instructions.
  • Four functional units: Input → CPU (ALU + CU + Registers) → Output, with Memory attached (von Neumann architecture).
  • Hardware = physical parts; Software = programs. Both required.
  • Input devices: keyboard, mouse, scanner, mic, webcam, touch screen, barcode, OMR, biometric.
  • Output devices: monitor (CRT / LCD / LED / OLED), printer (impact vs non-impact — inkjet, laser), projector, speaker, plotter.
  • CPU = ALU + CU + Registers. Follows Fetch-Decode-Execute cycle. Speed in GHz.
  • Memory hierarchy: Registers → Cache (L1/L2/L3) → Primary (RAM, ROM) → Secondary (HDD, SSD, USB, cloud).
  • RAM = volatile, read/write. ROM = non-volatile, mainly read, stores BIOS.
  • Units: 1 byte = 8 bits; × 1024 each step → KB, MB, GB, TB, PB.
🧠Practice Quiz — test yourself on this chapter