Revision Notes
OxfordAQA A-Level Computer Science (9645): Units of information – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.5.2: bits and bytes, 2^n values, binary and decimal prefixes, conversion rules and a self-test.
- Subject
- Computer Science
- Level
- AS LEVEL
- Topic
- Topic 5 – Representing data
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to OxfordAQA A Level Computer Science (9645), 2024-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): OxfordAQA A Level Computer Science.
Syllabus points this page covers
9645 (AS Level)
- 3.5.2 Units of information
This page covers 1 of the 8 subtopics in topic 5, Representing data.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9645).
These notes condense sub-topic 3.5.2 Units of information of OxfordAQA International AS and A-level Computer Science (9645), Version 1.1 (AS content in topic 3.5 Representing data). For longer worked examples, see the units of information study guide; then practise with the units of information practice questions.
What the specification requires
- The bit is the fundamental unit of information; a byte is a group of 8 bits.
- 2^n different values can be represented with n bits (for example 3 bits give 2^3 = 8 patterns).
- Quantities of bytes can use binary prefixes (powers of 2) or decimal prefixes (powers of 10). One kibibyte is 1 KiB = 2^10 B; one kilobyte is 1 kB = 10^3 B. The terms kibibyte, mebibyte and so on have replaced the historic meanings of kilobyte, megabyte and so on.
- Know the names, symbols and powers of the binary prefixes kibi, mebi, gibi, tebi and the decimal prefixes kilo, mega, giga, tera.
Key terms
| Term | Meaning |
|---|---|
| Bit | A binary digit, 0 or 1; the fundamental unit of information |
| Byte | A group of 8 bits |
| Binary prefix | A prefix meaning a power of 2 (kibi, mebi, gibi, tebi) |
| Decimal prefix | A prefix meaning a power of 10 (kilo, mega, giga, tera) |
| Pattern | One distinct arrangement of bits |
Prefix tables
| Binary | Symbol | Power of 2 | Decimal | Symbol | Power of 10 |
|---|---|---|---|---|---|
| kibi | Ki | 2^10 = 1,024 | kilo | k | 10^3 = 1,000 |
| mebi | Mi | 2^20 = 1,048,576 | mega | M | 10^6 |
| gibi | Gi | 2^30 = 1,073,741,824 | giga | G | 10^9 |
| tebi | Ti | 2^40 = 1,099,511,627,776 | tera | T | 10^12 |
Unit symbols: KiB, MiB, GiB, TiB against kB, MB, GB, TB. The capital B means byte; a small b means bit.
The binary unit is larger than its decimal neighbour by 2.4% (kibi against kilo), 4.9% (mebi), 7.4% (gibi) and 10.0% (tebi). Recomputed.
Counting values from bits
- Each extra bit doubles the number of patterns.
- n bits give 2^n patterns, so unsigned values 0 to 2^n − 1.
| Bits | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 10 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|
| Patterns | 2 | 4 | 8 | 16 | 32 | 64 | 128 | 256 | 1,024 | 65,536 |
To find the bits needed for v values, find the smallest n with 2^n ≥ v.
| Values | Bits |
|---|---|
| 5 | 3 |
| 26 | 5 |
| 52 | 6 |
| 300 | 9 |
| 1,000 | 10 |
Conversion rules
| From | To | Operation |
|---|---|---|
| MiB | KiB | × 1,024 |
| KiB | MiB | ÷ 1,024 |
| GiB | MiB | × 1,024 |
| MB | kB | × 1,000 |
| GB | MB | × 1,000 |
| B | bits | × 8 |
| bits | B | ÷ 8 |
Going to a smaller unit gives a bigger number. Going to a larger unit gives a smaller number.
Worked reminders
All results recomputed.
| Conversion | Working | Result |
|---|---|---|
| 6 MiB to KiB | 6 × 1,024 | 6,144 KiB |
| 12,288 KiB to MiB | 12,288 ÷ 1,024 | 12 MiB |
| 8 GiB to MiB | 8 × 1,024 | 8,192 MiB |
| 2.5 TB to GB | 2.5 × 1,000 | 2,500 GB |
| 750 MB to bytes | 750 × 1,000,000 | 750,000,000 B |
| 320 kB to bytes | 320 × 1,000 | 320,000 B |
| 3,670,016 B to MiB | 3,670,016 ÷ 1,048,576 | 3.5 MiB |
| 4 GiB to bytes | 4 × 2^30 | 4,294,967,296 B |
| 40 GB drive in GiB | 40,000,000,000 ÷ 1,073,741,824 | about 37.3 GiB |
The last row explains why an operating system can report less space than the drive’s label: the label uses decimal GB, the report uses binary GiB.
Small examples
- 12 states need 4 bits (2^3 = 8 is too few, 2^4 = 16 is enough).
- 90 values need 7 bits (2^7 = 128).
- A 2 KiB block holds 2 × 1,024 × 8 = 16,384 bits.
Extra worked reminders
| Question | Working | Answer |
|---|---|---|
| 2.5 KiB in bytes | 2.5 × 1,024 | 2,560 bytes |
| 2.5 KiB in bits | 2,560 × 8 | 20,480 bits |
| 64 GiB in bytes | 64 × 2^30 | 68,719,476,736 bytes |
| 64 GiB in GB | 68,719,476,736 ÷ 10^9 | about 68.7 GB |
| 1 TiB in GiB | 2^40 ÷ 2^30 | 1,024 GiB |
| Bits for 600 values | 2^9 = 512 is too few; 2^10 = 1,024 is enough | 10 bits |
Exam traps
- kB is 1,000 B; KiB is 1,024 B. Do not swap them.
- b is a bit, B is a byte. Read the capital letter.
- Direction of conversion. Check whether the result should be bigger or smaller.
- 2^n, not 2n. Each added bit doubles the count.
- Highest unsigned value with n bits is 2^n − 1.
- Symbols. Ki, Mi, Gi, Ti (binary); k, M, G, T (decimal).
- Show the power of 2 or 10 you used, since it shows the system.
Quick self-test
- How many bits are in a byte?
- How many patterns do 6 bits give?
- How many bits are needed to represent 52 different values?
- Write 1 KiB in bytes and 1 kB in bytes.
- State the symbol and the power of 2 for mebi.
- State the symbol and the power of 10 for giga.
- Convert 6 MiB to KiB.
- Convert 2.5 TB to GB.
- How many bytes are in 4 GiB?
- Which is larger, 1 GiB or 1 GB, and by about how much?
- Why does a 40 GB drive appear as about 37.3 GiB?
- What is the largest unsigned value that 10 bits can hold?
Answers
-
-
-
- 1,024 bytes and 1,000 bytes.
- Mi, 2^20.
- G, 10^9.
- 6,144 KiB.
- 2,500 GB.
- 4,294,967,296.
- 1 GiB, by about 7.4%.
- The label uses decimal GB (10^9) and the display uses binary GiB (2^30).
- 1,023.
- Units of information study guide
- Units of information practice questions
- Number bases revision notes
Official syllabus
OxfordAQA International AS and A-level Computer Science (9645) specification, Version 1.1, for International AS exams May/June 2025 onwards and International A-level exams May/June 2026 onwards: sub-topic 3.5.2 Units of information.
Related resources
-
Study guides
OxfordAQA A-Level Computer Science (9645): Basic encryption methods
OxfordAQA 9645 sub-topic 3.5.7 in depth: encryption terms, the Caesar and Vernam ciphers, perfect and computational security and the key exchange problem.
Computer Science · OxfordAQA · AS Level
Read guide -
Practice questions
OxfordAQA A-Level Computer Science (9645): Basic encryption methods – Practice Questions
Twelve original OxfordAQA 9645 questions on sub-topic 3.5.7: Caesar and Vernam ciphers, perfect and computational security and key exchange, with answers.
Computer Science · OxfordAQA · AS Level
Try questions -
Revision notes
OxfordAQA A-Level Computer Science (9645): Basic encryption methods – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.5.7: Caesar and Vernam ciphers, perfect and computational security, key exchange and a self-test.
Computer Science · OxfordAQA · AS Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.