Humanities/Arts Exam  >  Humanities/Arts Notes  >  Computer Science for Class 11  >  NCERT Textbook: Encoding Schemes and Number System

NCERT Textbook: Encoding Schemes and Number System | Computer Science for Class 11 - Humanities/Arts PDF Download

Download, print and study this document offline
Please wait while the PDF view is loading
 Page 1


2.1 i ntroduCt i on Have you ever thought how the keys on the computer 
keyboard that are in human recognisable form are 
interpreted by the computer system? This section brie??y 
discusses text interpretation by the computer. 
We have learnt in the previous chapter that 
computer understands only binary language of 0s and 
1s. Therefore, when a key on the keyboard is pressed, it 
is internally mapped to a unique code, which is further 
converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it 
is internally mapped to a decimal value 65 (code value), 
which is then converted to its equivalent binary value 
for the computer to understand.
Figure 2.1: Encoding of data entered using keyboard
Similarly, when we press alphabet ‘?’ on hindi keyboard, 
internally it is mapped to a hexadecimal value 0905, 
whose binary equivalent is 0000100100000101.
So what is encoding? The mechanism of converting 
data into an equivalent cipher using speci??c code is 
“We owe a lot to the 
Indians, who taught us how 
to count, without which 
no worthwhile scienti??c 
discovery could have been 
made.”
–Albert Einstein
Chapter 2 
Encoding Schemes and 
Number System 
In this chapter
 » Introduction to 
Encoding
 » UNICODE
 » Number System
 » Conversion 
Between Number 
Systems
Ch 2.indd   27 08-Apr-19   11:38:00 AM
Reprint 2025-26
Page 2


2.1 i ntroduCt i on Have you ever thought how the keys on the computer 
keyboard that are in human recognisable form are 
interpreted by the computer system? This section brie??y 
discusses text interpretation by the computer. 
We have learnt in the previous chapter that 
computer understands only binary language of 0s and 
1s. Therefore, when a key on the keyboard is pressed, it 
is internally mapped to a unique code, which is further 
converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it 
is internally mapped to a decimal value 65 (code value), 
which is then converted to its equivalent binary value 
for the computer to understand.
Figure 2.1: Encoding of data entered using keyboard
Similarly, when we press alphabet ‘?’ on hindi keyboard, 
internally it is mapped to a hexadecimal value 0905, 
whose binary equivalent is 0000100100000101.
So what is encoding? The mechanism of converting 
data into an equivalent cipher using speci??c code is 
“We owe a lot to the 
Indians, who taught us how 
to count, without which 
no worthwhile scienti??c 
discovery could have been 
made.”
–Albert Einstein
Chapter 2 
Encoding Schemes and 
Number System 
In this chapter
 » Introduction to 
Encoding
 » UNICODE
 » Number System
 » Conversion 
Between Number 
Systems
Ch 2.indd   27 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 28
called encoding. It is important to understand why 
code value 65 is used for the key “A” and not any other 
value? Is it same for all the keyboards irrespective of 
their make?
Yes, it is same for all the keyboards. This has been 
possible because of standard encoding schemes where 
each letter, numeral and symbol is encoded or assigned 
a unique code. Some of the well-known encoding 
schemes are described in the following sections.
2.1.1 American Standard Code for Information 
Interchange (ASCII)
In the early 1960s, computers had no way of 
communicating with each other due to different 
ways of representing keys of the keyboard. Hence, 
the need for a common standard was realised to 
overcome this shortcoming. Thus, encoding scheme 
ASCII was developed for standardising the character 
representation. ASCII is still the most commonly used 
coding scheme.
Initially ASCII used 7 bits to represent characters. 
Recall that there are only 2 binary digits (0 or 1). 
Therefore, total number of different characters on the 
English keyboard that can be encoded by 7-bit ASCII 
code is 2
7
 = 128. Table 2.1 shows some printable 
characters for ASCII code. But ASCII is able to encode 
character set of English language only.
Example 2.2 Encode the word DATA and convert 
the encoded value into binary values which can be 
understood by a computer. 
Table 2.1 ASCII code for some printable characters 
Character Decimal Value Character Decimal Value Character Decimal Value
Space 32 @ 64 ` 96
! 33 A 65 a 97
” 34 B 66 b 98
# 35 C 67 c 99
$ 36 D 68 d 100
% 37 E 69 e 101
& 38 F 70 f 102
‘ 39 G 71 g 103
( 40 H 72 h 104
) 41 I 73 i 105
Cipher means something 
converted to a coded form 
to hide/conceal it from 
others. It is also called 
encryption (converted to 
cipher) and sent to the 
receiver who in turn can 
decrypt it to get back the 
actual content. 
Ch 2.indd   28 08-Apr-19   11:38:00 AM
Reprint 2025-26
Page 3


2.1 i ntroduCt i on Have you ever thought how the keys on the computer 
keyboard that are in human recognisable form are 
interpreted by the computer system? This section brie??y 
discusses text interpretation by the computer. 
We have learnt in the previous chapter that 
computer understands only binary language of 0s and 
1s. Therefore, when a key on the keyboard is pressed, it 
is internally mapped to a unique code, which is further 
converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it 
is internally mapped to a decimal value 65 (code value), 
which is then converted to its equivalent binary value 
for the computer to understand.
Figure 2.1: Encoding of data entered using keyboard
Similarly, when we press alphabet ‘?’ on hindi keyboard, 
internally it is mapped to a hexadecimal value 0905, 
whose binary equivalent is 0000100100000101.
So what is encoding? The mechanism of converting 
data into an equivalent cipher using speci??c code is 
“We owe a lot to the 
Indians, who taught us how 
to count, without which 
no worthwhile scienti??c 
discovery could have been 
made.”
–Albert Einstein
Chapter 2 
Encoding Schemes and 
Number System 
In this chapter
 » Introduction to 
Encoding
 » UNICODE
 » Number System
 » Conversion 
Between Number 
Systems
Ch 2.indd   27 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 28
called encoding. It is important to understand why 
code value 65 is used for the key “A” and not any other 
value? Is it same for all the keyboards irrespective of 
their make?
Yes, it is same for all the keyboards. This has been 
possible because of standard encoding schemes where 
each letter, numeral and symbol is encoded or assigned 
a unique code. Some of the well-known encoding 
schemes are described in the following sections.
2.1.1 American Standard Code for Information 
Interchange (ASCII)
In the early 1960s, computers had no way of 
communicating with each other due to different 
ways of representing keys of the keyboard. Hence, 
the need for a common standard was realised to 
overcome this shortcoming. Thus, encoding scheme 
ASCII was developed for standardising the character 
representation. ASCII is still the most commonly used 
coding scheme.
Initially ASCII used 7 bits to represent characters. 
Recall that there are only 2 binary digits (0 or 1). 
Therefore, total number of different characters on the 
English keyboard that can be encoded by 7-bit ASCII 
code is 2
7
 = 128. Table 2.1 shows some printable 
characters for ASCII code. But ASCII is able to encode 
character set of English language only.
Example 2.2 Encode the word DATA and convert 
the encoded value into binary values which can be 
understood by a computer. 
Table 2.1 ASCII code for some printable characters 
Character Decimal Value Character Decimal Value Character Decimal Value
Space 32 @ 64 ` 96
! 33 A 65 a 97
” 34 B 66 b 98
# 35 C 67 c 99
$ 36 D 68 d 100
% 37 E 69 e 101
& 38 F 70 f 102
‘ 39 G 71 g 103
( 40 H 72 h 104
) 41 I 73 i 105
Cipher means something 
converted to a coded form 
to hide/conceal it from 
others. It is also called 
encryption (converted to 
cipher) and sent to the 
receiver who in turn can 
decrypt it to get back the 
actual content. 
Ch 2.indd   28 08-Apr-19   11:38:00 AM
Reprint 2025-26
e nCoding SCh e m eS and n umb e r Sy St e m 29
• ASCII value of D is 68 and its equivalent 7-bit 
binary code = 1000100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
• ASCII value of T is 84 and its equivalent 7-bit binary 
code = 1010100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
Replace each alphabet in DATA with its ASCII code value 
to get its equivalent ASCII code and with 7-bit binary 
code to get its equivalent binary number as shown in 
Table 2.2.
Activity 2.1
Explore and list down 
two font names for 
typing in any three 
Indian languages in 
UNICODE. 
Do we need to install 
some additional tool 
or font to type in an 
Indian language using 
UNICODE?
Think and Re??ect
Why a character in 
UTF 32 takes more 
space than in UTF 16 
or UTF 8? 
Think and Re??ect
Table 2.2 ASCII and Binary values for word DATA 
D A T A
ASCII Code 68 65 84 65
Binary Code 1000100 1000001 1010100 1000001
2.1.2 Indian Script Code for Information Interchange 
(ISCII)
In order to facilitate the use of Indian languages on 
computers, a common standard for coding Indian scripts 
called ISCII was developed in India during mid 1980s. 
It is an 8-bit code representation for Indian languages 
which means it can represent 2
8
=256 characters. It 
retains all 128 ASCII codes and uses rest of the codes 
(128) for additional Indian language character set. 
Additional codes have been assigned in the upper region 
(160– 255) for the ‘aksharas’ of the language. 
2.1.3 UNICODE
There were many encoding schemes, for character 
sets of different languages. But they were not able 
to communicate with each other, as each of them 
represented characters in their own ways. Hence, text 
created using one encoding scheme was not recognised 
by another machine using different encoding scheme.
Therefore, a standard called UNICODE has been 
developed to incorporate all the characters of every 
written language of the world. UNICODE provides a 
unique number for every character, irrespective of 
device (server, desktop, mobile), operating system 
(Linux, Windows, iOS) or software application (different 
Ch 2.indd   29 08-Apr-19   11:38:00 AM
Reprint 2025-26
Page 4


2.1 i ntroduCt i on Have you ever thought how the keys on the computer 
keyboard that are in human recognisable form are 
interpreted by the computer system? This section brie??y 
discusses text interpretation by the computer. 
We have learnt in the previous chapter that 
computer understands only binary language of 0s and 
1s. Therefore, when a key on the keyboard is pressed, it 
is internally mapped to a unique code, which is further 
converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it 
is internally mapped to a decimal value 65 (code value), 
which is then converted to its equivalent binary value 
for the computer to understand.
Figure 2.1: Encoding of data entered using keyboard
Similarly, when we press alphabet ‘?’ on hindi keyboard, 
internally it is mapped to a hexadecimal value 0905, 
whose binary equivalent is 0000100100000101.
So what is encoding? The mechanism of converting 
data into an equivalent cipher using speci??c code is 
“We owe a lot to the 
Indians, who taught us how 
to count, without which 
no worthwhile scienti??c 
discovery could have been 
made.”
–Albert Einstein
Chapter 2 
Encoding Schemes and 
Number System 
In this chapter
 » Introduction to 
Encoding
 » UNICODE
 » Number System
 » Conversion 
Between Number 
Systems
Ch 2.indd   27 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 28
called encoding. It is important to understand why 
code value 65 is used for the key “A” and not any other 
value? Is it same for all the keyboards irrespective of 
their make?
Yes, it is same for all the keyboards. This has been 
possible because of standard encoding schemes where 
each letter, numeral and symbol is encoded or assigned 
a unique code. Some of the well-known encoding 
schemes are described in the following sections.
2.1.1 American Standard Code for Information 
Interchange (ASCII)
In the early 1960s, computers had no way of 
communicating with each other due to different 
ways of representing keys of the keyboard. Hence, 
the need for a common standard was realised to 
overcome this shortcoming. Thus, encoding scheme 
ASCII was developed for standardising the character 
representation. ASCII is still the most commonly used 
coding scheme.
Initially ASCII used 7 bits to represent characters. 
Recall that there are only 2 binary digits (0 or 1). 
Therefore, total number of different characters on the 
English keyboard that can be encoded by 7-bit ASCII 
code is 2
7
 = 128. Table 2.1 shows some printable 
characters for ASCII code. But ASCII is able to encode 
character set of English language only.
Example 2.2 Encode the word DATA and convert 
the encoded value into binary values which can be 
understood by a computer. 
Table 2.1 ASCII code for some printable characters 
Character Decimal Value Character Decimal Value Character Decimal Value
Space 32 @ 64 ` 96
! 33 A 65 a 97
” 34 B 66 b 98
# 35 C 67 c 99
$ 36 D 68 d 100
% 37 E 69 e 101
& 38 F 70 f 102
‘ 39 G 71 g 103
( 40 H 72 h 104
) 41 I 73 i 105
Cipher means something 
converted to a coded form 
to hide/conceal it from 
others. It is also called 
encryption (converted to 
cipher) and sent to the 
receiver who in turn can 
decrypt it to get back the 
actual content. 
Ch 2.indd   28 08-Apr-19   11:38:00 AM
Reprint 2025-26
e nCoding SCh e m eS and n umb e r Sy St e m 29
• ASCII value of D is 68 and its equivalent 7-bit 
binary code = 1000100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
• ASCII value of T is 84 and its equivalent 7-bit binary 
code = 1010100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
Replace each alphabet in DATA with its ASCII code value 
to get its equivalent ASCII code and with 7-bit binary 
code to get its equivalent binary number as shown in 
Table 2.2.
Activity 2.1
Explore and list down 
two font names for 
typing in any three 
Indian languages in 
UNICODE. 
Do we need to install 
some additional tool 
or font to type in an 
Indian language using 
UNICODE?
Think and Re??ect
Why a character in 
UTF 32 takes more 
space than in UTF 16 
or UTF 8? 
Think and Re??ect
Table 2.2 ASCII and Binary values for word DATA 
D A T A
ASCII Code 68 65 84 65
Binary Code 1000100 1000001 1010100 1000001
2.1.2 Indian Script Code for Information Interchange 
(ISCII)
In order to facilitate the use of Indian languages on 
computers, a common standard for coding Indian scripts 
called ISCII was developed in India during mid 1980s. 
It is an 8-bit code representation for Indian languages 
which means it can represent 2
8
=256 characters. It 
retains all 128 ASCII codes and uses rest of the codes 
(128) for additional Indian language character set. 
Additional codes have been assigned in the upper region 
(160– 255) for the ‘aksharas’ of the language. 
2.1.3 UNICODE
There were many encoding schemes, for character 
sets of different languages. But they were not able 
to communicate with each other, as each of them 
represented characters in their own ways. Hence, text 
created using one encoding scheme was not recognised 
by another machine using different encoding scheme.
Therefore, a standard called UNICODE has been 
developed to incorporate all the characters of every 
written language of the world. UNICODE provides a 
unique number for every character, irrespective of 
device (server, desktop, mobile), operating system 
(Linux, Windows, iOS) or software application (different 
Ch 2.indd   29 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 30
browsers, text editors, etc.). Commonly used UNICODE 
encodings are UTF-8, UTF-16 and UTF-32. It is a superset 
of ASCII, and the values 0–128 have the same character 
as in ASCII. Unicode characters for Devanagari script 
is shown in Table 2.3. Each cell of the table contains a 
character along with its equivalent hexadecimal value.
Table 2.3 Unicode table for the Devanagari script
? 0900
? 0901
? 0902
?
0903
?
0904
?
0905
?
0906
?
0907
?
0908
?
0909
?
090A
?
090B
?
090C
?
090D
?
090E
?
090F
?
0910
?
0911
?
0912
?
0913
?
0914
?
0915
?
0916
?
0917
?
0918
?
0919
?
091A
?
091B
?
091C
?
091D
?
091E
?
091F
?
0920
?
0921
?
0922
?
0923
?
0924
?
0925
?
0926
?
0927
?
0928
?
0929
?
092A
?
092B
?
092C
?
092D
?
092E
?
092F
?
0930
?
0931
?
0932
?
0933
?
0934
?
0935
?
0936
?
0937
?
0938
?
0939
? 093A
?
093B
? 093C
?
093D
?
093E
?
093F
?
0940
? 0941
? 0942
? 0943
? 0944
? 0945
? 0946
? 0947
? 0948
?
0949
?
094A
?
094B
?
094C
? 094D
?
094E
?
094F
?
0950
? 0951
? 0952
? 0953
? 0954
? 0955
? 0956
? 0957
?
0958
?
0959
?
095A
?
095B
?
095C
?
095D
?
095E
?
095F
?
0960
?
0961
? 0962
? 0963
?
0964
?
0965
?
0966
?
0967
?
0968
?
0969
?
096A
?
096B
?
096C
?
096D
?
096E
?
096F
?
0970
?
0971
?
0972
?
0973
?
0974
?
0975
?
0976
?
0977
?
0978
?
0979
?
097A
?
097B
?
097C
?
097D
?
097E
?
097F
2.2 n umber s y s tem Till now, we have learnt that each key (representing 
character, special symbol, function keys, etc.) of the 
keyboard is internally mapped to an ASCII code following 
an encoding scheme. This encoded value is further 
converted to its equivalent binary representation so 
that the computer can understand it. In Figure 2.1, the 
code for character “A” belongs to the decimal number 
system and its equivalent binary value belongs to the 
binary number system. A number system is a method 
to represent (write) numbers.
Every number system has a set of unique characters 
or literals. The count of these literals is called the radix 
or base of the number system. The four different number 
systems used in the context of computer are shown in 
Figure 2.2. These number systems are explained in 
subsequent sections.
Ch 2.indd   30 08-Apr-19   11:38:00 AM
Reprint 2025-26
Page 5


2.1 i ntroduCt i on Have you ever thought how the keys on the computer 
keyboard that are in human recognisable form are 
interpreted by the computer system? This section brie??y 
discusses text interpretation by the computer. 
We have learnt in the previous chapter that 
computer understands only binary language of 0s and 
1s. Therefore, when a key on the keyboard is pressed, it 
is internally mapped to a unique code, which is further 
converted to binary.
Example 2.1 When the key ‘A’ is pressed (Figure 2.1), it 
is internally mapped to a decimal value 65 (code value), 
which is then converted to its equivalent binary value 
for the computer to understand.
Figure 2.1: Encoding of data entered using keyboard
Similarly, when we press alphabet ‘?’ on hindi keyboard, 
internally it is mapped to a hexadecimal value 0905, 
whose binary equivalent is 0000100100000101.
So what is encoding? The mechanism of converting 
data into an equivalent cipher using speci??c code is 
“We owe a lot to the 
Indians, who taught us how 
to count, without which 
no worthwhile scienti??c 
discovery could have been 
made.”
–Albert Einstein
Chapter 2 
Encoding Schemes and 
Number System 
In this chapter
 » Introduction to 
Encoding
 » UNICODE
 » Number System
 » Conversion 
Between Number 
Systems
Ch 2.indd   27 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 28
called encoding. It is important to understand why 
code value 65 is used for the key “A” and not any other 
value? Is it same for all the keyboards irrespective of 
their make?
Yes, it is same for all the keyboards. This has been 
possible because of standard encoding schemes where 
each letter, numeral and symbol is encoded or assigned 
a unique code. Some of the well-known encoding 
schemes are described in the following sections.
2.1.1 American Standard Code for Information 
Interchange (ASCII)
In the early 1960s, computers had no way of 
communicating with each other due to different 
ways of representing keys of the keyboard. Hence, 
the need for a common standard was realised to 
overcome this shortcoming. Thus, encoding scheme 
ASCII was developed for standardising the character 
representation. ASCII is still the most commonly used 
coding scheme.
Initially ASCII used 7 bits to represent characters. 
Recall that there are only 2 binary digits (0 or 1). 
Therefore, total number of different characters on the 
English keyboard that can be encoded by 7-bit ASCII 
code is 2
7
 = 128. Table 2.1 shows some printable 
characters for ASCII code. But ASCII is able to encode 
character set of English language only.
Example 2.2 Encode the word DATA and convert 
the encoded value into binary values which can be 
understood by a computer. 
Table 2.1 ASCII code for some printable characters 
Character Decimal Value Character Decimal Value Character Decimal Value
Space 32 @ 64 ` 96
! 33 A 65 a 97
” 34 B 66 b 98
# 35 C 67 c 99
$ 36 D 68 d 100
% 37 E 69 e 101
& 38 F 70 f 102
‘ 39 G 71 g 103
( 40 H 72 h 104
) 41 I 73 i 105
Cipher means something 
converted to a coded form 
to hide/conceal it from 
others. It is also called 
encryption (converted to 
cipher) and sent to the 
receiver who in turn can 
decrypt it to get back the 
actual content. 
Ch 2.indd   28 08-Apr-19   11:38:00 AM
Reprint 2025-26
e nCoding SCh e m eS and n umb e r Sy St e m 29
• ASCII value of D is 68 and its equivalent 7-bit 
binary code = 1000100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
• ASCII value of T is 84 and its equivalent 7-bit binary 
code = 1010100
• ASCII value of A is 65 and its equivalent 7-bit binary 
code = 1000001
Replace each alphabet in DATA with its ASCII code value 
to get its equivalent ASCII code and with 7-bit binary 
code to get its equivalent binary number as shown in 
Table 2.2.
Activity 2.1
Explore and list down 
two font names for 
typing in any three 
Indian languages in 
UNICODE. 
Do we need to install 
some additional tool 
or font to type in an 
Indian language using 
UNICODE?
Think and Re??ect
Why a character in 
UTF 32 takes more 
space than in UTF 16 
or UTF 8? 
Think and Re??ect
Table 2.2 ASCII and Binary values for word DATA 
D A T A
ASCII Code 68 65 84 65
Binary Code 1000100 1000001 1010100 1000001
2.1.2 Indian Script Code for Information Interchange 
(ISCII)
In order to facilitate the use of Indian languages on 
computers, a common standard for coding Indian scripts 
called ISCII was developed in India during mid 1980s. 
It is an 8-bit code representation for Indian languages 
which means it can represent 2
8
=256 characters. It 
retains all 128 ASCII codes and uses rest of the codes 
(128) for additional Indian language character set. 
Additional codes have been assigned in the upper region 
(160– 255) for the ‘aksharas’ of the language. 
2.1.3 UNICODE
There were many encoding schemes, for character 
sets of different languages. But they were not able 
to communicate with each other, as each of them 
represented characters in their own ways. Hence, text 
created using one encoding scheme was not recognised 
by another machine using different encoding scheme.
Therefore, a standard called UNICODE has been 
developed to incorporate all the characters of every 
written language of the world. UNICODE provides a 
unique number for every character, irrespective of 
device (server, desktop, mobile), operating system 
(Linux, Windows, iOS) or software application (different 
Ch 2.indd   29 08-Apr-19   11:38:00 AM
Reprint 2025-26
Computer SCien Ce – Cla SS xi 30
browsers, text editors, etc.). Commonly used UNICODE 
encodings are UTF-8, UTF-16 and UTF-32. It is a superset 
of ASCII, and the values 0–128 have the same character 
as in ASCII. Unicode characters for Devanagari script 
is shown in Table 2.3. Each cell of the table contains a 
character along with its equivalent hexadecimal value.
Table 2.3 Unicode table for the Devanagari script
? 0900
? 0901
? 0902
?
0903
?
0904
?
0905
?
0906
?
0907
?
0908
?
0909
?
090A
?
090B
?
090C
?
090D
?
090E
?
090F
?
0910
?
0911
?
0912
?
0913
?
0914
?
0915
?
0916
?
0917
?
0918
?
0919
?
091A
?
091B
?
091C
?
091D
?
091E
?
091F
?
0920
?
0921
?
0922
?
0923
?
0924
?
0925
?
0926
?
0927
?
0928
?
0929
?
092A
?
092B
?
092C
?
092D
?
092E
?
092F
?
0930
?
0931
?
0932
?
0933
?
0934
?
0935
?
0936
?
0937
?
0938
?
0939
? 093A
?
093B
? 093C
?
093D
?
093E
?
093F
?
0940
? 0941
? 0942
? 0943
? 0944
? 0945
? 0946
? 0947
? 0948
?
0949
?
094A
?
094B
?
094C
? 094D
?
094E
?
094F
?
0950
? 0951
? 0952
? 0953
? 0954
? 0955
? 0956
? 0957
?
0958
?
0959
?
095A
?
095B
?
095C
?
095D
?
095E
?
095F
?
0960
?
0961
? 0962
? 0963
?
0964
?
0965
?
0966
?
0967
?
0968
?
0969
?
096A
?
096B
?
096C
?
096D
?
096E
?
096F
?
0970
?
0971
?
0972
?
0973
?
0974
?
0975
?
0976
?
0977
?
0978
?
0979
?
097A
?
097B
?
097C
?
097D
?
097E
?
097F
2.2 n umber s y s tem Till now, we have learnt that each key (representing 
character, special symbol, function keys, etc.) of the 
keyboard is internally mapped to an ASCII code following 
an encoding scheme. This encoded value is further 
converted to its equivalent binary representation so 
that the computer can understand it. In Figure 2.1, the 
code for character “A” belongs to the decimal number 
system and its equivalent binary value belongs to the 
binary number system. A number system is a method 
to represent (write) numbers.
Every number system has a set of unique characters 
or literals. The count of these literals is called the radix 
or base of the number system. The four different number 
systems used in the context of computer are shown in 
Figure 2.2. These number systems are explained in 
subsequent sections.
Ch 2.indd   30 08-Apr-19   11:38:00 AM
Reprint 2025-26
e nCoding SCh e m eS and n umb e r Sy St e m 31
Number systems are also called positional number 
system because the value of each symbol (i.e., digit and 
alphabet) in a number depends upon its position within 
the number. Number may also have a fractional part 
similar to decimal numbers used by us. The symbol at 
the right most position in the integer part in a given 
number has position 0. The value of position (also called 
position value) in the integer part increases from right 
to left by 1. On the other hand, the ??rst symbol in the 
fraction part of the number has position number –1, 
which decreases by 1 while reading fraction part from 
left to right. Each symbol in a number has a positional 
value, which is computed using its position value and 
the base value of the number system. The symbol at 
position number 3 in a decimal system with base 10 has 
positional value 10
3
. Adding the product of positional 
value and the symbol 
value results in 
the given number. 
Figure 2.3 shows 
the computation 
of decimal number 
123.45 using its 
positional value.
2.2.1 Decimal Number System
The decimal number system is used in our day-to-day 
life. It is known as base-10 system since 10 digits (0 to 
9) are used. A number is presented by its two values 
— symbol value (any digit from 0 to 9) and positional 
value (in terms of base value). Figure 2.4 shows the 
integer and fractional part of decimal number 237.25 
alongwith computation of the decimal number using 
positional values.
Digit 1 2 3 . 4 5
Position Number 2 1 0 –1 –2
Positional Value (10)
2
(10)
1
(10)
0
(10)
-1
(10)
-2
Add the product of positional value and corresponding digit to get 
decimal number.
                1 × 10
2
 + 2 × 10
1
 + 3 × 10
0
 + 4 × 10
-1
 + 5 × 10
-2
 = (123.45)
10
Figure 2.3: Computation of decimal number using its positional value
Figure 2.2: Four different number systems 
0–9 and A–F
Ch 2.indd   31 08-Apr-19   11:38:01 AM
Reprint 2025-26
Read More
33 docs|11 tests

FAQs on NCERT Textbook: Encoding Schemes and Number System - Computer Science for Class 11 - Humanities/Arts

1. What are the different types of number systems used in computing?
Ans. The primary number systems used in computing are binary, decimal, octal, and hexadecimal. The binary system uses base 2, consisting of only two digits: 0 and 1. The decimal system, which is the most familiar, uses base 10, with digits from 0 to 9. The octal system uses base 8, with digits from 0 to 7, while the hexadecimal system uses base 16, employing digits from 0 to 9 and letters A to F to represent values ten to fifteen. Each system has its importance and application in different computing contexts, with binary being the foundational system for computer operations.
2. Why is the binary number system important in computer science?
Ans. The binary number system is crucial in computer science because it aligns with the fundamental way computers operate. Computers use transistors, which can be in an on (1) or off (0) state. This binary representation allows for efficient data processing and storage, as all types of data, whether numbers, text, or images, can be converted into binary code. Additionally, binary arithmetic is simpler and faster for computers to execute, making it the backbone of digital computing.
3. How do encoding schemes relate to the number system in computing?
Ans. Encoding schemes are methods used to convert data into a format suitable for transmission or storage. These schemes often rely on the underlying number system to represent characters and data. For instance, ASCII (American Standard Code for Information Interchange) uses a binary encoding scheme to represent text characters in a way that computers can process. Similarly, Unicode extends this concept to support a wider range of characters and symbols from multiple languages, also using binary representation. Thus, encoding schemes depend on number systems to facilitate data interchange and representation in computing.
4. What are the key differences between ASCII and Unicode?
Ans. The key differences between ASCII and Unicode lie in their capacity and application. ASCII is a character encoding standard that uses 7 bits to represent 128 characters, covering basic English letters, digits, and some control characters. In contrast, Unicode is a comprehensive encoding standard that can represent over 143,000 characters from various languages and scripts, utilizing up to 21 bits. This makes Unicode more versatile for global communication, allowing for the representation of diverse languages and symbols that ASCII cannot accommodate.
5. How can number systems be converted from one base to another?
Ans. Number systems can be converted from one base to another through a systematic process. To convert from binary to decimal, each digit is multiplied by 2 raised to the power of its position (starting from 0 on the right). For example, the binary number 1011 converts to decimal as (1×2³) + (0×2²) + (1×2¹) + (1×2⁰) = 8 + 0 + 2 + 1 = 11. To convert from decimal to binary, the decimal number is divided by 2 repeatedly, noting the remainder for each division until it reaches zero. The binary representation is then read from the bottom up. Similar methods apply for converting between octal and hexadecimal systems.
Related Searches

NCERT Textbook: Encoding Schemes and Number System | Computer Science for Class 11 - Humanities/Arts

,

Objective type Questions

,

mock tests for examination

,

Semester Notes

,

NCERT Textbook: Encoding Schemes and Number System | Computer Science for Class 11 - Humanities/Arts

,

Extra Questions

,

shortcuts and tricks

,

Sample Paper

,

Free

,

Viva Questions

,

NCERT Textbook: Encoding Schemes and Number System | Computer Science for Class 11 - Humanities/Arts

,

Previous Year Questions with Solutions

,

Important questions

,

ppt

,

MCQs

,

practice quizzes

,

Exam

,

study material

,

video lectures

,

Summary

,

pdf

,

past year papers

;