ASCII assigns a unique 7-bit code (0–127) to 128 characters including uppercase/lowercase letters, digits, punctuation, and control characters. Extended ASCII uses 8 bits (256 characters).
| Character | Decimal | Binary (7-bit) |
|---|---|---|
| A | 65 | 1000001 |
| a | 97 | 1100001 |
| 0 | 48 | 0110000 |
| Space | 32 | 0100000 |
Note: uppercase letters are 32 less than their lowercase equivalents. The digit '0' = 48, '1' = 49, etc.
Unicode is an international standard that assigns a unique code point to every character in every writing system worldwide — over 140,000 characters including emoji.
| Encoding | Bits per code unit | Characters |
|---|---|---|
| UTF-8 | Variable (8–32 bits) | Backwards compatible with ASCII; widely used on web |
| UTF-16 | Variable (16–32 bits) | Used internally in Windows, Java |
| UTF-32 | Fixed 32 bits | Simple but wastes space; all code points as fixed width |
Why Unicode matters: ASCII only covers English. Unicode enables multilingual software, supporting Chinese, Arabic, emoji, mathematical symbols, etc. UTF-8 is backward compatible with ASCII — the first 128 code points are identical.
Data transmission and storage can introduce errors (bit flips). Error detection techniques identify when corruption has occurred.
An extra bit added to make the total number of 1s either even (even parity) or odd (odd parity). The receiver checks parity to detect single-bit errors.
| Data (7 bits) | Count of 1s | Even parity bit | Transmitted (8 bits) |
|---|---|---|---|
| 1010011 | 4 (even) | 0 | 10100110 |
| 1110001 | 4 (even) | 0 | 11100010 |
| 1011100 | 5 (odd) | 1 | 10111001 |
Limitation: Parity can only detect an odd number of bit errors — if two bits flip, parity appears correct and the error is missed.
Each bit is sent three times; the receiver takes the majority value. Can correct single-bit errors per group of three. Used in space probes and safety-critical systems.
Example: send 1 as 111 — if received as 101, majority is 1 → corrected.
A value calculated from a block of data; the same calculation is performed at both ends and results compared. More powerful than parity — detects many patterns of errors. Used in TCP/IP, file downloads.
8 questions · instantly marked · AQA 7517 standard
| Term | Definition |
|---|
10 questions · 10 minutes