Module Three: How Data is Represented – The Language of Computers
Module Introduction
Hello, data detective! 🔢 In Modules 1 and 2, you learned what a computer is and what its physical parts are. But have you ever wondered how a computer understands words, pictures, and sounds? Computers don't speak English, Yoruba, or Hausa – they speak a language called binary. In this module, we will learn how computers represent information using only two symbols: 0 and 1. We'll explore bits, bytes, and how text, images, and sound are stored. Let's decode the secret language of computers!
Learning Objectives
By the end of this module, you will be able to:
- Explain what binary is and why computers use it.
- Understand the difference between a bit and a byte.
- Explain how text is represented in computers.
- Explain how images are represented.
- Explain how sound is represented.
Warm-up Story: The Secret Code
In a Nigerian village, two friends, Tunde and Ada, wanted to send secret messages. They created a code: a flash of a torch meant 1, and no flash meant 0. They used this code to send messages at night. For example, 1-0-1 meant "Hello." This is exactly how computers work – they use a code of 1s and 0s to represent everything. That code is called binary.
Main Lessons
Lesson 1: What is Binary?
Definition: Binary is a number system that uses only two digits: 0 and 1.
Why it is important: Computers use binary because they work with electricity – on (1) and off (0).
Simple explanation: It's like a light switch – it can be on (1) or off (0).
Real-life example: A computer uses 1s and 0s to store everything.
School example: A teacher asks yes/no questions – that's binary.
Home example: A TV remote uses on/off signals.
Nigerian example: A phone signal is either on or off.
Illustration:
Binary = Only 0 and 1
Example: 1010 is binary.
Mini summary: Binary is a system of just 0s and 1s.
Lesson 2: Why Do Computers Use Binary?
Definition: Computers use binary because they are electronic devices that understand only two states: on and off.
Why it is important: It makes computers simple, fast, and reliable.
Simple explanation: It's like a light bulb – it's either on (1) or off (0).
Real-life example: A transistor in a computer is either on or off.
School example: A light switch has two states.
Home example: A fan is either on or off.
Nigerian example: A generator is either running or not.
Illustration:
Computers = On (1) / Off (0)
Mini summary: Computers use binary because they work with on/off signals.
Lesson 3: What is a Bit?
Definition: A bit is the smallest unit of data in a computer. It is either a 0 or a 1.
Why it is important: Bits are the building blocks of all digital information.
Simple explanation: A bit is like a single letter in a code.
Real-life example: A bit is like a yes/no answer.
School example: A true/false question is like a bit.
Home example: A light is either on or off – that's one bit.
Nigerian example: A bank transaction is either successful (1) or not (0).
Illustration:
Bit = 0 or 1
Mini summary: A bit is a single 0 or 1 – the smallest piece of data.
Lesson 4: What is a Byte?
Definition: A byte is a group of 8 bits. It is the basic unit of storage.
Why it is important: Bytes are used to represent characters, numbers, and more.
Simple explanation: It's like a word made of 8 letters.
Real-life example: A single letter is stored as one byte.
School example: The letter "A" is one byte.
Home example: A file size is measured in bytes.
Nigerian example: A text message is measured in bytes.
Illustration:
Byte = 8 bits
Example: 01000001 = the letter 'A'
Mini summary: A byte is 8 bits – it's the basic unit of data.
Lesson 5: How Text is Stored
Definition: Text is stored using codes that map letters to numbers. The most common code is ASCII.
Why it is important: It allows computers to store and display text.
Simple explanation: It's like a secret codebook that maps letters to numbers.
Real-life example: The letter 'A' is stored as 65 in ASCII.
School example: 'B' is 66.
Home example: Your name is stored as numbers.
Nigerian example: A text message is stored as numbers.
Illustration:
ASCII Codes:
A = 65
B = 66
C = 67
Mini summary: Text is stored as numbers using codes like ASCII.
Lesson 6: How Numbers are Stored
Definition: Numbers are stored in binary – using 0s and 1s.
Why it is important: It allows computers to do math and calculations.
Simple explanation: It's like counting using only 0 and 1.
Real-life example: The number 5 is 101 in binary.
School example: Counting on fingers is like binary.
Home example: A score is stored as a number.
Nigerian example: A bank balance is stored as a number.
Illustration:
Binary Numbers:
0 = 0
1 = 1
2 = 10
3 = 11
4 = 100
5 = 101
Mini summary: Numbers are stored in binary (0s and 1s).
Lesson 7: How Images are Stored
Definition: Images are stored as a grid of tiny dots called pixels. Each pixel has a colour value stored as a number.
Why it is important: It allows computers to display pictures, videos, and graphics.
Simple explanation: It's like a mosaic – many small pieces make a bigger picture.
Real-life example: A digital photo is made of pixels.
School example: A screen is made of pixels.
Home example: A TV shows images using pixels.
Nigerian example: A phone camera takes photos made of pixels.
Illustration:
Pixel = Small dot of colour
Image = Grid of pixels
Mini summary: Images are stored as grids of coloured pixels.
Lesson 8: How Sound is Stored
Definition: Sound is stored by taking small samples of the sound wave and converting them to numbers.
Why it is important: It allows computers to play music, speech, and other audio.
Simple explanation: It's like taking snapshots of a sound wave.
Real-life example: MP3 files store sound.
School example: You record a voice note.
Home example: You play music on your phone.
Nigerian example: A Nigerian musician records a song digitally.
Illustration:
Sound → Samples → Numbers
Mini summary: Sound is stored as numbers by taking samples.
Lesson 9: File Sizes – Bytes, KB, MB, GB
Definition: File sizes are measured in bytes. 1 KB = 1024 bytes, 1 MB = 1024 KB, 1 GB = 1024 MB.
Why it is important: It helps us understand how much storage space something uses.
Simple explanation: It's like measuring weight – grams, kilograms, tons.
Real-life example: A text file might be 10 KB; a video might be 2 GB.
School example: A homework file is a few KB.
Home example: A photo is about 2-5 MB.
Nigerian example: A Nigerian movie download might be 1 GB.
Illustration:
File Sizes:
1 KB = 1024 bytes
1 MB = 1024 KB
1 GB = 1024 MB
Mini summary: File sizes are measured in bytes, KB, MB, and GB.
Lesson 10: ASCII and Unicode
Definition: ASCII is a code that represents English characters. Unicode is a code that represents characters from all languages.
Why it is important: It allows computers to display text in any language.
Simple explanation: It's like a universal alphabet book for computers.
Real-life example: Unicode includes letters from Yoruba, Hausa, and Igbo.
School example: You can type in different languages.
Home example: Your phone can show many languages.
Nigerian example: Unicode supports Nigerian languages.
Illustration:
ASCII = English only
Unicode = All languages
Mini summary: ASCII is for English; Unicode supports all languages.
Lesson 11: Binary in Everyday Life
Definition: Binary is not just for computers – it's everywhere in everyday life.
Why it is important: It helps us understand how digital things work.
Simple explanation: It's like the secret code behind everything digital.
Real-life example: Barcodes and QR codes use binary.
School example: A barcode on a book.
Home example: A remote control uses binary signals.
Nigerian example: A bank card uses binary for security.
Illustration:
Binary in:
- Barcodes
- QR codes
- Digital signals
Mini summary: Binary is used in many everyday things.
Lesson 12: Converting Text to Binary
Definition: Each letter is converted to a number, then to binary.
Why it is important: It shows how computers store text.
Simple explanation: It's like translating English to a secret code.
Real-life example: 'A' = 65 = 01000001 in binary.
School example: You can convert your name to binary.
Home example: Your name is stored as binary.
Nigerian example: Your name is stored in binary on your phone.
Illustration:
A = 65 = 01000001
B = 66 = 01000010
Mini summary: Text is converted to binary for storage.
Lesson 13: The Future – Quantum Data
Definition: Quantum computers use qubits (0, 1, or both) to store more information.
Why it is important: It could make computers much faster.
Simple explanation: It's like having a switch that can be on, off, or both.
Real-life example: Quantum computers are being developed.
School example: The future of technology.
Home example: Future devices may use quantum.
Nigerian example: Nigerian universities are researching quantum.
Illustration:
Quantum = Bits + Both states
Mini summary: Quantum computing uses more than 0 and 1.
Lesson 14: Nigerian Data Usage
Definition: Nigerians use data every day for messaging, video, and browsing.
Why it is important: It shows how data is used in everyday life.
Simple explanation: Data is the digital information we use.
Real-life example: Watching a video on YouTube uses data.
School example: Using the internet for research.
Home example: Sending a WhatsApp message.
Nigerian example: Nigerians use data on their phones every day.
Illustration:
Data Use in Nigeria:
- Messaging
- Videos
- Music
- Browsing
Mini summary: Data is used every day in Nigeria.
Lesson 15: Summary – The Language of Computers
Definition: Computers use binary (0s and 1s) to represent all data – text, numbers, images, and sound.
Why it is important: This is how all digital devices work.
Simple explanation: It's the universal language of computers.
Real-life example: Everything on your phone is stored in binary.
School example: Every file on your computer is binary.
Home example: All digital devices use binary.
Nigerian example: Every Nigerian smartphone uses binary.
Illustration:
Binary = The language of computers
Text → Binary
Images → Binary
Sound → Binary
Mini summary: Binary is the language that computers speak.
Key Vocabulary (simple definitions)
- Binary: A number system using only 0 and 1.
- Bit: The smallest unit of data (0 or 1).
- Byte: 8 bits.
- ASCII: A code for English letters.
- Unicode: A code for all languages.
- Pixel: A small dot of colour in an image.
- Sample: A snapshot of sound.
- File Size: Measured in bytes, KB, MB, GB.
- Quantum: Advanced computing with more states.
- Data: Information stored digitally.
Important Concepts
- Binary is the language: Computers use 0s and 1s.
- Bits and bytes: Bits are small; bytes are 8 bits.
- Text, images, sound: All are stored as binary.
- File sizes: Measured in bytes, KB, MB, GB.
Step-by-Step Explanations
How to Convert a Letter to Binary
- Find the ASCII number for the letter (e.g., A = 65).
- Convert the number to binary (65 = 01000001).
- That binary number is how the computer stores the letter.
Teacher Notes
- Use the secret code story to explain binary.
- Show examples of binary conversion.
- Discuss how data is used in Nigeria.
- Use local examples to make it relatable.
Parent Tips
- Help your child convert letters to binary.
- Discuss how data is stored on phones.
- Explain file sizes and storage.
Interesting Facts & Did You Know?
- Did you know? The word "bit" comes from "binary digit."
- Interesting: A single byte can store one letter.
- Did you know? A typical text message is about 160 bytes.
- Nigeria: Nigerians use millions of gigabytes of data every day.
Remember This
- Computers use binary (0s and 1s).
- A bit is 0 or 1; a byte is 8 bits.
- Text, images, and sound are all stored as binary.
- File sizes are measured in bytes, KB, MB, GB.
Common Mistakes
- Confusing bits and bytes: A bit is 0/1; a byte is 8 bits.
- Thinking binary is hard: It's just on/off.
- Not understanding file sizes: KB, MB, GB are different.
Best Practices
- Remember binary is just 0 and 1.
- Know the difference between bits and bytes.
- Understand that all data is stored in binary.
Illustrations & Diagrams
Binary Table
Binary Table:
0000 = 0
0001 = 1
0010 = 2
0011 = 3
0100 = 4
0101 = 5
0110 = 6
0111 = 7
1000 = 8
Text to Binary
A = 65 = 01000001
B = 66 = 01000010
C = 67 = 01000011
Comparison Tables
Bit vs Byte
| Bit | Byte |
|---|---|
| 0 or 1 | 8 bits |
| Smallest unit | Basic unit |
| On/Off | Can store a letter |
File Sizes
| Unit | Size |
|---|---|
| 1 Byte | 1 character |
| 1 KB | 1024 bytes |
| 1 MB | 1024 KB |
| 1 GB | 1024 MB |
End-of-Module Summary
Excellent work! You have learned how computers represent data using binary – the language of 0s and 1s. You now know about bits, bytes, how text, images, and sound are stored, and how file sizes are measured. You also explored how data is used in Nigeria and the future of quantum computing. In Module 4, we will learn about software – the instructions that make computers do amazing things. Keep decoding!
Frequently Asked Questions (10)
- What is binary? A system using 0 and 1.
- What is a bit? A 0 or 1.
- What is a byte? 8 bits.
- How is text stored? As numbers in binary.
- How are images stored? As pixels in binary.
- How is sound stored? As samples in binary.
- What is ASCII? A code for English letters.
- What is Unicode? A code for all languages.
- What is a file size? Measured in bytes, KB, MB, GB.
- What is quantum computing? More than 0 and 1.
Review Questions (15)
- What is binary?
- What is a bit?
- What is a byte?
- How is text stored?
- How are images stored?
- How is sound stored?
- What is ASCII?
- What is Unicode?
- What is the difference between a bit and a byte?
- What is a pixel?
- What is a sample?
- What are file sizes measured in?
- What is quantum computing?
- How is data used in Nigeria?
- What is the language of computers?
Fill-in-the-Blank Exercises
- _______ is a system using 0 and 1. (Binary)
- A _______ is a 0 or 1. (bit)
- A _______ is 8 bits. (byte)
- Text is stored using codes like _______. (ASCII)
- Images are stored as grids of _______. (pixels)
- Sound is stored as _______. (samples)
True or False Exercises
- Binary uses only 0 and 1. (True)
- A byte is 4 bits. (False)
- Images are stored as pixels. (True)
- Unicode supports all languages. (True)
- Quantum computers use only 0 and 1. (False)
Multiple Choice Questions (15)
- What is binary?
A) 0 and 1
B) A game
C) A type of food
Answer: A - What is a bit?
A) 0 or 1
B) 8 bits
C) A game
Answer: A - What is a byte?
A) 8 bits
B) A game
C) A type of food
Answer: A - How is text stored?
A) As numbers
B) As images
C) As sound
Answer: A - What is ASCII?
A) A code for English
B) A code for images
C) A code for sound
Answer: A - What is Unicode?
A) A code for all languages
B) A game
C) A type of food
Answer: A - What is a pixel?
A) A dot of colour
B) A sound
C) A game
Answer: A - What is a sample?
A) A snapshot of sound
B) A pixel
C) A game
Answer: A - What is a file size?
A) Measured in bytes
B) A game
C) A type of food
Answer: A - What is quantum computing?
A) More than 0 and 1
B) Only 0 and 1
C) A game
Answer: A - How is data used in Nigeria?
A) In messaging and videos
B) In games
C) In food
Answer: A - What is the language of computers?
A) Binary
B) English
C) Yoruba
Answer: A - How many bits in a byte?
A) 8
B) 4
C) 16
Answer: A - What is the difference between a bit and a byte?
A) Bit is 0/1; byte is 8 bits
B) They are the same
C) Byte is 0/1
Answer: A - What is a MB?
A) 1024 KB
B) 1 bit
C) A game
Answer: A
Matching Exercises
| Term | Meaning |
|---|---|
| 1. Binary | A. 0 and 1 |
| 2. Bit | B. 0 or 1 |
| 3. Byte | C. 8 bits |
| 4. ASCII | D. English code |
| 5. Pixel | E. Dot of colour |
Answers: 1-A, 2-B, 3-C, 4-D, 5-E
Short Answer Questions
- What is binary?
- What is the difference between a bit and a byte?
- How is text stored in a computer?
- What is Unicode?
Scenario-based Exercises
- Scenario 1: You want to save a text document. How is it stored?
- Scenario 2: You want to save a photo. How is it stored?
- Scenario 3: You want to store a song. How is it stored?
Group Activity
In groups, research the different file sizes (KB, MB, GB). Find examples of each. Present to the class.
Individual Activity
Write your name in binary using the ASCII table. Share with the class.
Classroom Discussion Questions
- Why do computers use binary?
- What would happen if we used a different system?
- How does data affect your daily life?
Mini Project
Create a poster explaining "How Data is Stored." Include binary, bits, bytes, and examples.
Practical Assignment
Find the file sizes of 5 different files on your computer or phone. Write them down and identify if they are KB, MB, or GB.
Challenge Exercise
Research how data is used in Nigeria's telecommunications industry. Write a short summary.
Quiz Answers
Multiple Choice answers: 1-A, 2-A, 3-A, 4-A, 5-A, 6-A, 7-A, 8-A, 9-A, 10-A, 11-A, 12-A, 13-A, 14-A, 15-A.
True/False answers: 1-T, 2-F, 3-T, 4-T, 5-F.
Key Takeaways
- Computers use binary (0s and 1s).
- A bit is 0 or 1; a byte is 8 bits.
- Text, images, and sound are all stored as binary.
- File sizes are measured in bytes, KB, MB, GB.
Preparation for the Next Module
In Module 4, we will explore software – the instructions that tell the computer what to do. We'll learn about operating systems, applications, and programming languages. Get ready to understand the invisible part of computing!







