Theory — Data-representation
Data Representation — How Computers Store Everything as Numbers: 14 topics and 36 interactive cards with runnable examples and quizzes.
Topics
- Why Computers Use Binary — Everything Is a Number · Why Only Two Digits?
- Counting in Binary — Place Value, Base 2 · Binary → Denary, in Code · Denary → Binary · Your Turn: Convert It
- Hexadecimal — Shorthand for Binary — Why Hex Exists · Binary ↔ Hex in Four-Bit Chunks · Quick Check
- Binary Addition & Overflow — Adding Bits · Overflow
- Negative Numbers — Two's Complement — The Problem with Minus Signs · Making a Negative Number · Range and a Common Trap
- Logical Binary Shifts — Shifting Left and Right
- Representing Text — Character Sets: ASCII · Unicode: Beyond English
- Representing Images — Bitmaps: A Grid of Pixels · Resolution & File Size
- Representing Sound — Sampling a Wave · Sound File Size
- Storage Units & Compression — Units of Storage · Lossless vs Lossy Compression
- Floating-Point Numbers (A Level) — Storing Fractions · Normalisation & Its Trade-offs
- More Number Representations — Binary Subtraction · Binary-Coded Decimal (BCD) · Unicode in Bytes: UTF-8 · Normalisation, Worked (A Level)
- File Organisation & Access (A Level) — Records, Fields & Files · File Organisation · File Access & Hashing
- Check Your Understanding — Number Systems · Two's Complement · Media & Compression · You've Got the Foundation