Binary Codes
Binary Codes
Objectives:
By the end of this lesson, students will be able to:
1. Understand the concept of binary code and its role in computer systems.
2. Convert decimal numbers to binary and vice versa.
3. Interpret simple binary codes as characters using ASCII.
4. Apply knowledge of binary systems in simple encoding and decoding activities.
1. What is ASCII?
ASCII stands for American Standard Code for Information Interchange.
It is a character encoding standard that uses 7-bit binary numbers to represent text
characters in computers.
Each character (letters, digits, symbols) is assigned a specific binary code.
1. Data Transmission:
Data is transmitted as binary signals (1s and 0s) through various media like fiber optics,
Ethernet cables, and wireless networks.
2. File Formats:
All digital files (images, audio, video) are stored as binary data.
For example: JPEG images, MP3 audio, and MP4 videos are encoded in binary formats for
compression and transmission.
VII. Summary
Binary Code is the fundamental language of computers, using only 0s and 1s to represent
information.
Conversions between decimal and binary are key skills in understanding how computers
process numerical data.
ASCII encoding allows computers to represent text characters using binary numbers.
Understanding binary is crucial for interpreting how computers perform tasks, process data,
and communicate information.
Practice Problems
1. Convert the decimal number 45 to binary.
2. Convert the binary number 11011 to decimal.
3. Encode the word "Cat" using ASCII in binary form.
4. Decode the binary message 01000110 01010101 01001110.
COMPREHENSIVE NOTES ON ASCII
What is ASCII?
Importance of ASCII:
ASCII was developed in the early 1960s to standardize text encoding in computers and
communications equipment.
It is the basis for most modern character encoding systems, including UTF-8 and Unicode,
which extend ASCII to support more characters and languages.
Applications of ASCII
1. Text Files: Plain text files (like .txt) use ASCII encoding to represent letters, numbers, and
symbols.
2. Programming: Most programming languages, including Python, Java, and C++, use ASCII
codes for handling characters and strings.
3. Data Transmission: ASCII is widely used in internet communication protocols (like HTTP,
SMTP) for data encoding.
4. Keyboard Input: Each keystroke on a keyboard generates an ASCII code that the computer
processes.
Practice Problems
1. Convert the text "GOOD" into binary using ASCII codes.
G = 01000111
O = 01001111
O = 01001111
D = 01000100
Binary Representation: 01000111 01001111 01001111 01000100
Summary
ASCII is a foundational text encoding standard, using binary numbers to represent
characters in computers.
It simplifies text storage, transmission, and processing in digital systems.
Understanding ASCII helps us bridge the gap between human-readable text and machine-
readable binary code.