24 total
By the end of this topic, you should be able to:
Understand how and why a computer represents text and the use of character sets, including American Standard Code for Information Interchange (ASCII) and Unicode.
Understand how and why a computer represents sound, including the effects of the sample rate and sample resolution.
Understand how and why a computer represents an image, including the effects of the resolution and colour depth.
Computers work using electronic switches that can only be in two states: ON or OFF. This is why computers use the binary system – a number system that only uses two digits: 1 (representing ON) and 0 (representing OFF).
When you type text on a computer, the letters and symbols you see on the screen are not actually stored as letters. Instead, each character (letter, number, or symbol) is converted into a binary code – a unique pattern of 1s and 0s. This conversion happens because computers can only process and store information in binary form.
A character set is a collection of all the characters and symbols that a computer system can recognize and use. Each character in the set is given its own unique binary code.
Think of a character set like a dictionary where:
Character sets are important because they provide a standard – a set of rules that all computers agree to follow. Without this standard, one computer might interpret the binary code 01000001 as the letter 'A', while another computer might think it means something completely different. This would make it impossible for computers to communicate with each other properly.
ASCII is one of the oldest and most common character sets. It was created to provide a standard way for computers to represent text.
Key features of ASCII:
Example: The letter 'A' in ASCII is represented by the binary code 01000001 (which equals 65 in denary).
Extended ASCII:
Limitations of ASCII:
Unicode was created as a solution to the problems with ASCII. It was designed to represent characters from all languages around the world, not just English.
Key features of Unicode:
Example: The emoji 😊 can be represented in Unicode, but not in ASCII.
| Feature | ASCII | Unicode |
|---|---|---|
| Number of bits | 7 bits (or 8 for Extended ASCII) | 16 bits or more |
| Number of characters | 128 (or 256 for Extended) | 65,536 or more |
| Languages supported | English only | All major world languages |
| Can store emojis? | No | Yes |
| Storage space needed | Less (fewer bits per character) | More (more bits per character) |
| Use cases | Simple English text, older systems | Modern applications, multilingual content, international communication |
Why Unicode uses more bits: To represent more characters, Unicode needs more unique binary codes. More bits means more possible combinations. While ASCII's 7 bits give 128 combinations, Unicode's 16 bits give 65,536 combinations – enough to include characters from many different writing systems.
Trade-off:
Sign in to view full notes