Coding information. Units of information
A code is a system of agreed signs used to express information. Turning information from one form into another with special signs is coding, and restoring the meaning of coded information is decoding. Coding can be numeric, symbolic or graphic: road signs, musical notes and Morse code (dots and dashes) are all codes. Coding information to keep it secret is encryption and opening it again is decryption; the science that studies this is cryptography. A computer stores all information using only two signs, 0 and 1. One 0 or 1 is one bit, and 8 bits make 1 byte: one letter or digit usually takes 1 byte. Units: 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB, 1 TB = 1024 GB.
| Unit | Value |
|---|---|
| 1 byte | 8 bits |
| 1 KB | 1024 bytes |
| 1 MB | 1024 KB |
| 1 GB | 1024 MB |
| 1 TB | 1024 GB |
0101₂ = 4 + 1 = 5
The buttons flip the bits: 1 means the place value is added, 0 means it is not
Two children exchanged a silent message from far apart: a raised hand meant 1 and a lowered hand meant 0. Even with just two states a message can be passed as a sequence. A computer also stores everything with two signs like these.
A communications engineer turns data into signals, a programmer works with codes, and an information-security specialist protects data by encrypting it.
Ask a friend three yes/no questions (for example “Is it raining?”) and answer only by writing 1 for yes and 0 for no.
| K | I | T | O | B |
|---|---|---|---|---|
| 8 | 8 | 8 | 8 | 8 |
“Secret note”: in pairs, pupils encrypt a short word by replacing each letter with the next one in the alphabet (A→B, M→N...) and the partner decrypts it. Then they tap “SOS” in Morse code (three short, three long, three short).