Computer Fundamentals Topic 7: Binary - Lesson 2
Representing Text, Images, And Sound
Learn how binary patterns can represent many kinds of data.
Data As Patterns
Computers store everything as binary patterns. The meaning depends on how software interprets those patterns.
The same bits can represent a number, character, color, sound sample, or instruction depending on the format.
- Text uses character encodings such as ASCII or Unicode.
- Images store pixel color values.
- Audio stores sound samples over time.
File Size And Compression
A high-resolution image or long video needs many more bytes than a short text note.
Compression tries to store data more efficiently, often by finding repeated patterns or using smarter encodings.
- Compression can reduce file size.
- Some compression loses detail; some preserves exact data.
Meaning Comes From Encoding
Binary data by itself is just a pattern. Software needs rules to interpret it. Those rules are called encodings, formats, or protocols depending on the context.
The same binary pattern could mean a number in one program, a letter in another, a color value in an image, or part of an instruction in machine code. This is why file type and format matter.
- Text needs character encoding.
- Images need pixel and color formats.
- Audio needs sample format and timing.
- Programs need instruction formats.
Text, Images, And Audio
Text can be represented by assigning numbers to characters. ASCII covers basic English characters, while Unicode supports many languages and symbols. The computer stores the numbers as binary.
Images are often stored as grids of pixels. Each pixel has color information. Audio is stored as samples, which are measurements of sound at many moments per second. More detail usually means more data.
- More pixels usually means larger image files.
- More audio samples can mean higher quality and larger files.
- Unicode helps represent text from many languages.
- Compression can reduce file size.
Why Files Need Formats
A file format tells software how to interpret bytes. A `.txt` file is interpreted as text. A `.png` file is interpreted as an image. A `.mp3` file is interpreted as compressed audio.
If you rename a file extension without changing its actual data, the contents do not magically change. The extension is a label; the bytes inside still need to match the expected format.
- File extensions hint at format.
- Software reads bytes according to format rules.
- Renaming a file does not convert it.
- Corrupt or mismatched formats may fail to open.
Quick Summary
- Binary patterns can represent many types of data.
- Encoding or file format gives bits their meaning.
- Compression can reduce the number of bytes needed.
Practice Quiz
Now practice this lesson with MCQs and explanations: