NAVODAYA VIDYALAYA SAMITI� NOIDA
E-CONTENT
COMPUTER SCIENCE CLASS XI
INFORMATION REPRESENTATION
In order to work with data, the data must be represented inside the computer.
Digital computers represent data by means of a digit
Numbering Systems�
Each number system has a base, also called a Radix.
A decimal number system is a system of base 10
Binary is a number system of base 2
Octal is a number system of base 8 and
Hexadecimal is a number system of base 16.
Symbols used in different number system
Number System | Base | Symbols used |
Binary | 2 | 0,1 |
Octal | 8 | 0,1,2,3,4,5,6,7 |
Decimal | 10 | 0,1,2,3,4,5,6,7,8,9 |
Hexadecimal | 16 | 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F Where A=10, B=11, C=12, D=13, E=14, F=15 |
Numbers in different number systems�
Decimal Number | Binary number | Octal number | Hexadecimal Number |
0 | 0 | 0 | 0 |
1 | 1 | 1 | 1 |
2 | 10 | 2 | 2 |
3 | 11 | 3 | 3 |
4 | 100 | 4 | 4 |
5 | 101 | 5 | 5 |
6 | 110 | 6 | 6 |
7 | 111 | 7 | 7 |
8 | 1000 | 10 | 8 |
9 | 1001 | 11 | 9 |
10 | 1010 | 12 | A |
11 | 1011 | 13 | B |
12 | 1100 | 14 | C |
Converting a number from� one number system to another
We can very easily convert a number in one number system
to another.
To convert a number from decimal number system to any
other number system , repeated division method is used .
Converting a Decimal number to Binary number
REPEATED DIVISION METHOD
Example
Convert (37)10 to binary
37/2 =18 1
18/2 =9 0
9/2 =4 1
4/2 =2 0
2/2 =1 0
1/ 2 =0 1
(37)10 = (100101)2
Converting a Decimal number to Octal number
REPEATED DIVISION METHOD
Example
Convert (150)10 to octal
150/8 = 18 6
18/8 = 2 2
2/8 = 0 2
(150)10 =(226)8
Converting a Decimal number to Hexadecimal number�
REPEATED DIVISION METHOD
Example
Convert (175)10 to Hexadecimal
175/16 = 10 15 (F)
10/ 16 = 0 10(A)
( 175 )10 = ( AF )16
Converting a Binary number to Decimal number�
Example
1 1 0 0 1 1
25 24 23 22 21 20
(positional values)
1 * 25 + 1 * 24 + 0 * 23 + 0 * 22 + 1 *
21 + 1 * 20
32 + 16 + 0 + 0 +2 + 1 = (51)10
(110011)10 = (51)10
Converting an Octal number to Decimal number�
Example
3 4 1
82 81 80
(341)8 = (225)10
Converting a Hexadecimal number to Decimal number�
Example
2 1 A
162 161 160
2 * 162 + 1 * 161 + A * 160
=2 * 162 + 1 * 161 + 10 * 160
=512+16+10= (538)10
( 21A )16 = ( 538 )10
BINARY ADDITION
Computers work with binary numbers 0 and 1. They understand only binary numbers. So addition of these binary digits is very important .
There are 5 basic cases for binary addition�
1. 0+0 = 0
2. 0+1 = 1
3. 1+0 = 1
4. 1+1 = 10
i.e , binary 1+ binary 1
equals 0 with a carry 1
5. 1+1+1 = 11
i.e, binary 1 + binary 1 +binary 1
equals 1 with a carry 1
Example
1 carry 1
1 0 1 1
1 1 1 0
1 1 0 0 1
CHARACTER/STRING REPRESENTATION
A computer can handle numeric and non numeric data like letters, punctuation marks and other special characters. Some predefined codes are used to represent numeric and non numeric characters. Some of the standards are discussed below :
ASCII�
ASCII stands for American Standard Code for Information Interchange. ASCII-7 is a 7-bit code and can represent 128 characters. Out of 7 bits, 3 are zone bits and 4 are numeric bits. ASCII-8 can represent 256 characters. It is an extended form of ASCII-7.
ISCII: (Indian Standard Code for Information Interchange)�
A lot of efforts have done to facilitate the use of Indian languages on computers. In 1991, the Bureau of Indian Standards adopted the ISCII. It is an 8 bit code which allows English and Indian Scripts alphabets to be used simultaneously. Characters coded in ISCII need 8 bits for each character.
.
������� UNICODE�
Unicode is a new universal coding standard adopted by all new platforms. It is promoted by Unicode Consortium which is a non profit organization. Unicode provides a unique number for every character irrespective of the platform, program and the language. It is a character coding system designed to support the worldwide interchange, processing, and display of the written texts of the diverse languages.
Unicode encoding schemes�
Unicode defines multiple encoding systems to represent characters. UTF-8
and UTF-32 are Unicode encoding systems.
UTF-8
UTF-32
………..THANK YOU……………..
BIBLIOGRAPHY:
1. Computer Science Textbook for class XI
by NCERT
2. Computer Science with Python
by Sumitha Arora
3. Computer Science with Python
by Preeti Arora