How Computers Work
From a light switch to a running program — bits, the CPU, memory and caches, and what really happens when code runs.
- Module 1 of 8
- Beginner
- 9 chapters
- 1 h 10 min
Every program you write ends up as bits moving between memory and the CPU. Knowing that path explains why some code is fast, why numbers overflow, and what “running” a program really means.
What you will be able to do
- Convert between binary, decimal and hexadecimal
- Explain how the CPU fetches and runs instructions
- Say why memory and storage speeds differ by a million times
- Describe how source code becomes instructions the CPU runs
Chapters
1. BitsOne on/off switch is called a bit (short for "binary digit").5 min2. Binary NumbersOur normal counting system is decimal or base 10.6 min3. Hexadecimal0x10 is 16, not ten. Always check which base a number is in.3 min4. Everything Is Bytes Plus an AgreementRemember the two-switch code from Chapter 1: the same switches meant "meet at park" only because12 min5. The CPU: The Part That Follows InstructionsThe cook is the CPU (Central Processing Unit), also called the processor.6 min6. Memory and Storage: Why Speed Differs a Million TimesRAM (Random Access Memory) is the computer's working memory — where running programs and their8 min7. Memory Addresses: Finding One Byte Among BillionsTwo variables can refer to the same thing. If both hold address 0x5000, changing the text4 min8. Programs: From Code You Write to Instructions the CPU RunsSource code — the human-readable program you write (if (score > 150) ...).7 min9. The Whole Trip: "Hi 😀" From Keyboard to ScreenNow let's use every earlier chapter together. You type Hi 😀 into StudyBuddy and press Save.4 min
Extras
The Whole StoryThe whole module retold as one story — no new facts, a fast revision of How Computers Work.RevisionInterview QuestionsReal interview questions on How Computers Work, answered the way you would say them out loud.Interview prepQuick ReferenceGlossary and cheat sheet for How Computers Work — the page to reread before an interview.Reference