Lecture#4
Lecture#4
Introduction to ICT
HOW COMPUTER
REPRESENT DATA?
Lecture#4
Data Representation:
1. Number Systems (Data representation of numbers)
2. Bits & Bytes
3. Text Codes (Data representation of characters)
Types of coding scheme
1. BCD Code
2. ASCII Code
3. EBCDIC Code
4. Unicode
Bits :
The word bit is short for binary digit.
A bit consists of one of two values, 0 or 1 .
A bit is a smallest unit of data in a computer.
Bytes:
Eight bits grouped together as a unit are called a byte.
A byte represents a single character in the computer .
Text code is format used commonly to represent alphabets, punctuation marks and other
symbols. Four most popular text code systems are −
Different combination of 0 and 1 are used to represent different characters
Data is converted to binary form before it is stored inside the computer
The process of converting data into binary form is known as encoding
Representation of all numeric and non-numeric data in binary digits is known as computer code
Different coding schemes/text code system are used to represent different characters
BCD
EBCDIC
ASCII
Extended ASCII
Unicode
Example:
converts decimal 425 to BCD form
4=0100
2=0010
5=0101
So, BCD form of the decimal number 425 = 010000100101
ASCII-7: uses 7 bits to represent a symbol and can represent 128 different
characters
ASCII-8: uses 8 bits to represent a symbol and can represent 256 different
characters
Example: Write binary coding for the word BOY on ASCII-7
Ans: B = 1000010, O=1001111 , Y= 1011001
BOY = 100001010011111011001
16-bits code
Represent 65536 characters
Started to replace ASCII code
Represents the characters of all languages in the world