Computer Science (Python) Chapter 2 4 Study Options Available

Encoding Schemes and Number System

CHAPTER PDF

Complete curriculum textbook chapter document for reading and offline study.

NOTES

Complete conceptual breakdown, formulas, diagrams, and memory aids.

Class XI Computer Science | Chapter 2: Encoding Schemes and Number System
CBSE • Class XI • Computer Science

Chapter 2: Encoding Schemes and Number System

Complete chapter notes with clear explanations, conversion procedures, worked examples, reference tables, Unicode examples and solutions to all 17 textbook exercise questions.

18-page textbook chapterAll major topicsWorked conversionsResponsive HTML

Learning objectives

Computers store and process information using binary digits (0 and 1). Text, numbers, symbols and other data must be represented in a form that a computer can process. This chapter explains character encoding standards and the number systems used in computing.

Character / number→Encoding / conversion→Binary representation→Computer processing
  • Understand encoding and the purpose of standard character codes.
  • Differentiate ASCII, ISCII and Unicode.
  • Understand decimal, binary, octal and hexadecimal systems.
  • Convert whole and fractional numbers between number systems.
  • Use grouping of 3 bits and 4 bits for octal and hexadecimal conversion.
Section 2.1

Introduction to Encoding

A computer understands only binary language, consisting of 0 and 1. When a user presses a keyboard key, the character is mapped to a unique numeric code. That code is represented in binary so that the computer can process it.

Example 2.1 — Encoding the character A

When the key A is pressed, a commonly used encoding scheme (ASCII) assigns decimal code 65. The decimal value 65 is converted into its 7-bit binary representation.

Character A → ASCII decimal 65 → Binary 1000001

For the Devanagari character अ, Unicode code point U+0905 is used. Its hexadecimal value is 0905 and its 16-bit binary representation is 0000100100000101.

What is Encoding?

Encoding is the mechanism of converting data into an equivalent code using a specified coding scheme. An encoding standard assigns a unique code to each character, numeral or symbol so that different computers and software can represent and exchange text consistently.

Cipher: a coded form of information. In cryptography, encryption converts readable information into ciphertext and decryption converts it back. Character encoding is not the same as encryption: encoding represents data in a standard form; encryption is intended to protect confidentiality.
Section 2.1.1

American Standard Code for Information Interchange (ASCII)

In the early 1960s, computers used different ways to represent keyboard characters, making communication difficult. ASCII was developed as a common standard for character representation.

7-bit ASCII

  • Original ASCII uses 7 bits per character.
  • Each bit can be 0 or 1.
  • Total possible combinations = 27 = 128 characters.
  • It represents English letters, digits, punctuation and control characters.
  • Standard ASCII alone does not represent the character sets of all world languages.

Selected ASCII values

CharacterDecimal code7-bit binaryCharacterDecimal code7-bit binary
Space320100000@641000000
!330100001A651000001
"340100010B661000010
#350100011C671000011
$360100100D681000100
%370100101E691000101
&380100110F701000110
'390100111G711000111
(400101000H721001000
)410101001I731001001
0480110000a971100001
1490110001b981100010
2500110010c991100011

Example 2.2 — Encode DATA using ASCII and binary

Find the ASCII decimal code of each letter, then convert each decimal code to 7-bit binary.

LetterDATA
ASCII decimal68658465
7-bit binary1000100100000110101001000001

Therefore, DATA is represented by the sequence of four 7-bit codes shown above. Each character is encoded separately.

ASCII conversion tip: use a standard ASCII table to obtain the decimal value. Convert that decimal value to binary and pad with leading zeroes until it contains exactly 7 bits.
Section 2.1.2

Indian Script Code for Information Interchange (ISCII)

ISCII was developed in India during the mid-1980s to facilitate the use of Indian languages on computers.

  • It is an 8-bit code representation.
  • 8 bits provide 28 = 256 possible codes.
  • It retains the 128 ASCII codes.
  • The remaining code space is used for additional Indian-language characters (the textbook describes the upper region, including codes 160–255, for aksharas).

ISCII was an important standard for Indian scripts, but Unicode later provided a much broader universal character repertoire.

Section 2.1.3

Unicode

Different encoding schemes for different languages created compatibility problems. A document created using one scheme might not be recognised correctly by a system using another. Unicode was developed to provide a unique code point for characters used by almost all written languages, independent of device, operating system or application.

Important features

  • Provides a unique code point for each character in its standard repertoire.
  • Supports scripts and symbols from languages around the world.
  • Unicode code points are commonly written in hexadecimal form, for example U+0905 for अ.
  • Values 0–127 correspond to the same characters as ASCII.
  • Common Unicode Transformation Formats (UTFs) include UTF-8, UTF-16 and UTF-32.

UTF-8, UTF-16 and UTF-32

EncodingStorage lengthKey idea
UTF-81 to 4 bytes per code pointVariable length; ASCII characters use one byte; widely used on the web.
UTF-162 or 4 bytesUses one 16-bit code unit for many characters and a surrogate pair for supplementary characters.
UTF-324 bytesFixed 32-bit code unit for every code point; simple indexing but uses more storage for many texts.
Why can UTF-32 use more space than UTF-16 or UTF-8? UTF-32 always uses 4 bytes per code point. UTF-8 often uses 1–3 bytes for common text and UTF-16 often uses 2 bytes for common characters. Therefore UTF-32 usually requires more storage for ordinary text.

Devanagari Unicode examples

CharacterUnicode hexadecimal code point16-bit binary form
अU+09050000100100000101
आU+09060000100100000110
कU+09150000100100010101
हU+09390000100100111001

The textbook's Devanagari Unicode chart on printed page 30 (PDF page 4) maps characters to hexadecimal code points from the 0900 block onward. These code points identify characters; an actual file's byte representation depends on the selected UTF encoding.

Typing Indian-language text using Unicode

  1. Install or enable the required Indian-language keyboard/input method in the operating system.
  2. Select the desired language or script in the input-language settings.
  3. Choose a Unicode-compatible font and application.
  4. Switch the keyboard input language and type the required text.
  5. Save and reopen the document to confirm that characters display correctly on another compatible device.

Possible fonts include Noto Sans Devanagari, Mangal and Nirmala UI for Devanagari; other scripts have their own Unicode fonts. The font controls visual appearance; the keyboard/input method controls how keystrokes produce characters.

Section 2.2

Number System

A number system is a method of representing or writing numbers using a defined set of symbols. In computing, the four important systems are decimal, binary, octal and hexadecimal.

The number of unique symbols used by a number system is called its radix or base. The base is written as a subscript after the number.

Number systemBaseAllowed digits / symbolsExample
Decimal100–9(237)₁₀
Binary20, 1(1011)₂
Octal80–7(237)₈
Hexadecimal160–9, A–F(23A)₁₆
The subscript matters. For example, (70)₈ is an octal number and (70)₁₀ is a decimal number. The same written digits can represent different values in different bases.
Concept

Positional Number System

These number systems are positional: the value of a digit depends on both the digit itself and its position. The rightmost digit of the integer part has position 0. Positions increase from right to left. In the fractional part, the first digit after the decimal point has position −1, the next has −2, and so on.

Value = Σ (digit × baseposition)

Example: Decimal number 123.45

Digit123.45
Position210−1−2
Power of 1010²10¹10⁰10⁻¹10⁻²
1×10² + 2×10¹ + 3×10⁰ + 4×10⁻¹ + 5×10⁻²
= 100 + 20 + 3 + 0.4 + 0.05 = 123.45
Section 2.2.1

Decimal Number System

The decimal system is used in everyday life. It is a base-10 system because it uses ten digits (0 to 9). A digit's contribution depends on its symbol value and positional value.

Example: (237.25)₁₀

2×10² + 3×10¹ + 7×10⁰ + 2×10⁻¹ + 5×10⁻²
= 200 + 30 + 7 + 0.2 + 0.05 = 237.25

Positive powers of 10 represent the integer part; negative powers represent the fractional part.

Section 2.2.2

Binary Number System

The binary system is a base-2 system that uses only 0 and 1. Integrated circuits contain transistors that can be in two broad states: ON/high and OFF/low. These states are represented by 1 and 0 respectively.

Examples of binary numbers: (1001011)₂, (1011.101)₂ and (111111.01)₂.

DecimalBinaryDecimalBinary
005101
116110
2107111
31181000
410091001

Binary numbers can be converted to decimal using powers of 2. This lets humans interpret the values represented internally by computers.

Section 2.2.3

Octal Number System

The octal system is a base-8 system. It uses eight digits: 0 through 7. Its positional values are powers of 8. Octal provides a compact way to write long binary numbers because 3 binary bits represent one octal digit (2³ = 8).

Examples: (237.05)₈, (13)₈ and (617.24)₈.

Octal digitDecimal value3-bit binary
00000
11001
22010
33011
44100
55101
66110
77111
Section 2.2.4

Hexadecimal Number System

The hexadecimal system is a base-16 system. It uses 16 symbols: 0–9 and A–F. Letters represent decimal values 10–15: A=10, B=11, C=12, D=13, E=14 and F=15. Four binary bits represent one hexadecimal symbol because 2⁴ = 16.

HexDecimal4-bit binaryHexDecimal4-bit binary
000000881000
110001991001
220010A101010
330011B111011
440100C121100
550101D131101
660110E141110
770111F151111

Examples: (23A.05)₁₆, (1C3)₁₆ and (619B.A)₁₆.

Section 2.2.5

Applications of Hexadecimal Number System

A. Memory addresses

Each main-memory location has a unique address. Writing a long address in binary is difficult, so hexadecimal provides a shorter and more readable representation.

(1100000011110001)₂ = (C0F1)₁₆ = (140361)₈

B. Web colour codes (RGB)

A screen colour is commonly represented by three components: Red, Green and Blue (RGB). Each component uses 8 bits, so one colour requires 24 bits. Hexadecimal makes these long binary values compact.

ColourDecimal RGBHex RGBCSS example
Black(0, 0, 0)#000000color: #000000;
White(255, 255, 255)#FFFFFFcolor: #FFFFFF;
Yellow(255, 255, 0)#FFFF00color: #FFFF00;
Grey(128, 128, 128)#808080color: #808080;
Red(255, 0, 0)#FF0000color: #FF0000;

For red, the binary components are 11111111, 00000000 and 00000000. In hexadecimal they are FF, 00 and 00. A web colour is normally written as #RRGGBB.

Section 2.3

Conversion Between Number Systems

Decimal is commonly used by people; computers use binary. Octal and hexadecimal shorten binary representations. The conversion method depends on the source and destination bases.

ConversionMethod
Decimal → base bRepeated division by b; read remainders bottom to top.
Base b → decimalMultiply each digit by its positional power and add.
Binary ↔ octalReplace each group of 3 bits with one octal digit, or vice versa.
Binary ↔ hexadecimalReplace each group of 4 bits with one hexadecimal digit, or vice versa.
Decimal fraction → base bRepeatedly multiply the fractional part by b; read integer parts top to bottom.
Section 2.3.1

Decimal to Other Number Systems

To convert a decimal integer to binary, octal or hexadecimal, repeatedly divide it by the destination base.

  1. Divide the decimal number by the required base (2, 8 or 16).
  2. Write down the remainder.
  3. Divide the quotient again by the same base until the quotient becomes zero.
  4. Read the remainders from bottom to top (reverse order).

A. Decimal to Binary — Example: (65)₁₀

DivisionQuotientRemainder
65 ÷ 2321
32 ÷ 2160
16 ÷ 280
8 ÷ 240
4 ÷ 220
2 ÷ 210
1 ÷ 201
Read remainders bottom → top: (65)₁₀ = (1000001)₂

Example 2.3 — Convert (122)₁₀ to binary

122÷2=61 r0; 61÷2=30 r1; 30÷2=15 r0; 15÷2=7 r1;
7÷2=3 r1; 3÷2=1 r1; 1÷2=0 r1.
Bottom to top: (122)₁₀ = (1111010)₂

B. Decimal to Octal — Example: (65)₁₀

65÷8=8 remainder 1
8÷8=1 remainder 0
1÷8=0 remainder 1
Read bottom to top: (65)₁₀ = (101)₈

Example 2.4 — Convert (122)₁₀ to octal

122÷8=15 remainder 2
15÷8=1 remainder 7
1÷8=0 remainder 1
Therefore, (122)₁₀ = (172)₈

C. Decimal to Hexadecimal — Example: (65)₁₀

65÷16=4 remainder 1
4÷16=0 remainder 4
Read bottom to top: (65)₁₀ = (41)₁₆

Example 2.5 — Convert (122)₁₀ to hexadecimal

122÷16=7 remainder 10 (= A)
7÷16=0 remainder 7
Therefore, (122)₁₀ = (7A)₁₆
Important correction to the printed worked figure: decimal 65 equals hexadecimal 41, not 14. The division remainders are 1 then 4, so reading bottom to top gives 41. This is also confirmed by 4×16 + 1 = 65.
Section 2.3.2

Other Number Systems to Decimal

To convert a binary, octal or hexadecimal number to decimal, calculate each digit's positional value using its base, multiply by the digit value and add all results.

  1. Write the position number of each digit, starting from 0 at the rightmost integer digit.
  2. Calculate each positional value by raising the base to that position.
  3. Multiply each digit by its positional value.
  4. Add all products to obtain the decimal number.

A. Binary to Decimal — Example 2.6: (1101)₂

1×2³ + 1×2² + 0×2¹ + 1×2⁰
= 8 + 4 + 0 + 1 = (13)₁₀

B. Octal to Decimal — Example 2.7: (257)₈

2×8² + 5×8¹ + 7×8⁰
= 128 + 40 + 7 = (175)₁₀

C. Hexadecimal to Decimal — Example 2.8: (3A5)₁₆

Remember A = 10 in hexadecimal.

3×16² + 10×16¹ + 5×16⁰
= 768 + 160 + 5 = (933)₁₀
For fractional digits, use negative positions: the first digit after the point is multiplied by base⁻¹, the second by base⁻², and so on.
Section 2.3.3

Binary, Octal and Hexadecimal Conversions

A. Binary to Octal

Make groups of 3 bits from right to left in the integer part. Add leading zeroes on the left if necessary. Replace each group with its octal digit.

Example 2.9: Convert (10101100)₂ to octal.

010 | 101 | 100 → 2 | 5 | 4
Therefore, (10101100)₂ = (254)₈

B. Octal to Binary

Replace every octal digit with its corresponding 3-bit binary equivalent and join the groups.

Example 2.10: Convert (705)₈ to binary.

7 → 111; 0 → 000; 5 → 101
Therefore, (705)₈ = (111000101)₂

C. Binary to Hexadecimal

Group bits in sets of 4 from right to left. Add leading zeroes if required. Replace each group with its hexadecimal symbol.

Example 2.11: Convert (0110101100)₂ to hexadecimal.

0001 | 1010 | 1100 → 1 | A | C
Therefore, (0110101100)₂ = (1AC)₁₆

D. Hexadecimal to Binary

Replace every hexadecimal symbol with its 4-bit binary equivalent.

Example 2.12: Convert (23D)₁₆ to binary.

2 → 0010; 3 → 0011; D → 1101
Therefore, (23D)₁₆ = (001000111101)₂
Why 3 bits for octal? 2³ = 8, giving eight possible 3-bit combinations (000–111). Why 4 bits for hexadecimal? 2⁴ = 16, giving sixteen possible combinations (0000–1111).
Section 2.3.4

Conversion of Numbers with Fractional Parts

A. Decimal fraction to another base

To convert the fractional part of a decimal number to base b, repeatedly multiply the fractional part by b. Record the integer part of each product in order from top to bottom. Continue until the fractional part becomes zero. If it repeats or does not terminate, stop after a suitable number of digits and state that the result is approximate.

  1. Take only the fractional part (digits after the decimal point).
  2. Multiply it by the destination base (2, 8 or 16).
  3. Record the integer part of the product as the next digit.
  4. Use the new fractional part for the next multiplication.
  5. Read recorded integer parts from top to bottom.

Example 2.13 — Convert (0.25)₁₀ to binary

0.25 × 2 = 0.50 → integer digit 0
0.50 × 2 = 1.00 → integer digit 1
Fraction becomes zero. Therefore (0.25)₁₀ = (0.01)₂

Example 2.14 — Convert (0.675)₁₀ to binary

MultiplicationDigit recordedNew fraction
0.675 × 2 = 1.35010.350
0.350 × 2 = 0.70000.700
0.700 × 2 = 1.40010.400
0.400 × 2 = 0.80000.800
0.800 × 2 = 1.60010.600
0.600 × 2 = 1.20010.200
0.200 × 2 = 0.40000.400 (repeats)
Digits top to bottom: 1010110
(0.675)₁₀ ≈ (0.1010110)₂

Example 2.15 — Convert (0.675)₁₀ to octal

0.675×8 = 5.400 → 5
0.400×8 = 3.200 → 3
0.200×8 = 1.600 → 1
0.600×8 = 4.800 → 4
0.800×8 = 6.400 → 6 (fraction repeats)
(0.675)₁₀ ≈ (0.53146)₈

Example 2.16 — Convert (0.675)₁₀ to hexadecimal

0.675×16 = 10.800 → A
0.800×16 = 12.800 → C (fraction repeats)
(0.675)₁₀ = (0.AC)₁₆

B. Non-decimal fraction to decimal

Use positional values for both integer and fractional digits. Add the products of every digit and its corresponding base power.

Example 2.17 — Convert (100101.101)₂ to decimal

1×2⁵ + 0×2⁴ + 0×2³ + 1×2² + 0×2¹ + 1×2⁰
+ 1×2⁻¹ + 0×2⁻² + 1×2⁻³
= 32 + 4 + 1 + 0.5 + 0.125
= (37.625)₁₀

Example 2.18 — Convert (605.12)₈ to decimal

6×8² + 0×8¹ + 5×8⁰ + 1×8⁻¹ + 2×8⁻²
= 384 + 0 + 5 + 0.125 + 0.03125
= (389.15625)₁₀
The printed textbook example gives an incorrect integer contribution for 6×8². The correct value is 384, not 1024; therefore (605.12)₈ = (389.15625)₁₀.

C. Fractional binary to octal or hexadecimal

For the integer part, group bits from right to left. For the fractional part, group bits from left to right. Add zeroes to the right end of the fractional part to complete the final group.

Example 2.19 — Convert (10101100.01011)₂ to octal

Integer groups: 010 | 101 | 100
Fraction groups: 010 | 110 (add one trailing 0)
→ 2 5 4 . 2 6
(10101100.01011)₂ = (254.26)₈

Example 2.20 — Convert (10101100.010111)₂ to hexadecimal

Groups: 1010 | 1100 . 0101 | 1100
→ A | C . 5 | C
(10101100.010111)₂ = (AC.5C)₁₆
Revision

Chapter Summary and Formula Sheet

  • Encoding maps characters to standard numeric codes; the computer processes their binary representation.
  • ASCII uses 7 bits and represents 128 codes; ISCII is an 8-bit Indian-script encoding; Unicode supports characters from many scripts.
  • UTF-8, UTF-16 and UTF-32 are Unicode encoding formats.
  • Base (radix) is the number of unique symbols in a number system.
  • Decimal = base 10; binary = base 2; octal = base 8; hexadecimal = base 16.
  • Binary-to-octal uses groups of 3 bits; binary-to-hexadecimal uses groups of 4 bits.
  • Hexadecimal is useful for memory addresses and RGB colour codes.

Conversion rules at a glance

TaskRuleDirection / reading order
Decimal integer → base bRepeated division by bRemainders bottom to top
Base b integer → decimalDigit × bposition, then addRightmost integer position = 0
Decimal fraction → base bRepeated multiplication by bInteger parts top to bottom
Binary → octalGroups of 3 bitsInteger right-to-left; fraction left-to-right
Binary → hexadecimalGroups of 4 bitsInteger right-to-left; fraction left-to-right

Frequent mistakes to avoid

  • Do not use digit 2 in binary, digit 8 or 9 in octal, or letters G–Z in hexadecimal.
  • Do not forget the base subscript when writing a number.
  • For repeated division, reverse the remainder order.
  • For fractional multiplication, do not reverse the recorded integer digits.
  • When grouping binary fractions, add zeroes to the right of the fractional part, not the left.
  • Remember A=10, B=11, C=12, D=13, E=14 and F=15 in hexadecimal.
Textbook exercise

All 17 Exercise Questions — Solved

Solutions below show the conversion method as well as the final answer. All number bases are written as subscripts.

Q1. Write base values of binary, octal and hexadecimal number system.

Binary = 2; Octal = 8; Hexadecimal = 16.

Q2. Give full form of ASCII and ISCII.

ASCII: American Standard Code for Information Interchange.
ISCII: Indian Script Code for Information Interchange.

Q3. Convert the following numbers.

(i) (514)₈ to decimal

5×8² + 1×8¹ + 4×8⁰ = 320 + 8 + 4 = (332)₁₀

(ii) (220)₈ to binary

2→010; 2→010; 0→000 = (010010000)₂ (or 10010000₂ after removing the leading zero)

(iii) (76F)₁₆ to decimal

7×16² + 6×16 + 15 = 1792 + 96 + 15 = (1903)₁₀

(iv) (4D9)₁₆ to decimal

4×16² + 13×16 + 9 = 1024 + 208 + 9 = (1241)₁₀

(v) (11001010)₂ to decimal

128 + 64 + 8 + 2 = (202)₁₀

(vi) (1010111)₂ to decimal

64 + 16 + 4 + 2 + 1 = (87)₁₀

Q4. Convert decimal numbers to other number systems.

(i) (54)₁₀ to binary

54 = 32 + 16 + 4 + 2 = (110110)₂

(ii) (120)₁₀ to binary

120 = 64 + 32 + 16 + 8 = (1111000)₂

(iii) (76)₁₀ to octal

76÷8=9 r4; 9÷8=1 r1; 1÷8=0 r1 → (114)₈

(iv) (889)₁₀ to octal

889÷8=111 r1; 111÷8=13 r7; 13÷8=1 r5; 1÷8=0 r1 → (1571)₈

(v) (789)₁₀ to hexadecimal

789÷16=49 r5; 49÷16=3 r1; 3÷16=0 r3 → (315)₁₆

(vi) (108)₁₀ to hexadecimal

108÷16=6 r12(C); 6÷16=0 r6 → (6C)₁₆

Q5. Express octal numbers into decimal numbers.

(i) (145)₈

1×64 + 4×8 + 5 = (101)₁₀

(ii) (6760)₈

6×512 + 7×64 + 6×8 + 0 = 3072 + 448 + 48 = (3568)₁₀

(iii) (455)₈

4×64 + 5×8 + 5 = 256 + 40 + 5 = (301)₁₀

(iv) (10.75)₈

1×8¹ + 0×8⁰ + 7×8⁻¹ + 5×8⁻² = 8 + 0 + 0.875 + 0.078125 = (8.953125)₁₀

Q6. Express decimal numbers into hexadecimal numbers.

(i) (548)₁₀

548÷16=34 r4; 34÷16=2 r2; 2÷16=0 r2 → (224)₁₆

(ii) (4052)₁₀

4052÷16=253 r4; 253÷16=15 r13(D); 15÷16=0 r15(F) → (FD4)₁₆

(iii) (58)₁₀

58÷16=3 r10(A); 3÷16=0 r3 → (3A)₁₆

(iv) (100.25)₁₀

100÷16 gives integer part 64₁₆. Fraction: 0.25×16=4.0 → .4. Answer: (64.4)₁₆

Q7. Express hexadecimal numbers into decimal numbers.

(i) (4A2)₁₆

4×256 + 10×16 + 2 = (1186)₁₀

(ii) (9E1A)₁₆

9×4096 + 14×256 + 1×16 + 10 = (40474)₁₀

(iii) (6BD)₁₆

6×256 + 11×16 + 13 = (1725)₁₀

(iv) (6C.34)₁₆

6×16 + 12 + 3×16⁻¹ + 4×16⁻² = 96 + 12 + 0.1875 + 0.015625 = (108.203125)₁₀

Q8. Convert binary numbers into octal and hexadecimal numbers.

(i) (1110001000)₂

Octal: 001 | 110 | 001 | 000 → (1610)₈
Hex: 0011 | 1000 | 1000 → (388)₁₆

(ii) (110110101)₂

Octal: 110 | 110 | 101 → (665)₈
Hex: 0001 | 1011 | 0101 → (1B5)₁₆

(iii) (1010100)₂

Octal: 001 | 010 | 100 → (124)₈
Hex: 0101 | 0100 → (54)₁₆

(iv) (1010.1001)₂

Octal: 001 | 010 . 100 | 100 → (12.44)₈
Hex: 1010 . 1001 → (A.9)₁₆

Q9. Write binary equivalent of octal numbers.

(i) (2306)₈

2→010, 3→011, 0→000, 6→110 → (010011000110)₂

(ii) (5610)₈

5→101, 6→110, 1→001, 0→000 → (101110001000)₂

(iii) (742)₈

7→111, 4→100, 2→010 → (111100010)₂

(iv) (65.203)₈

6→110, 5→101 . 2→010, 0→000, 3→011 → (110101.010000011)₂

Q10. Write binary representation of hexadecimal numbers.

(i) (4026)₁₆

4→0100, 0→0000, 2→0010, 6→0110 → (0100000000100110)₂

(ii) (BCA1)₁₆

B→1011, C→1100, A→1010, 1→0001 → (1011110010100001)₂

(iii) (98E)₁₆

9→1001, 8→1000, E→1110 → (100110001110)₂

(iv) (132.45)₁₆

1→0001, 3→0011, 2→0010 . 4→0100, 5→0101 → (000100110010.01000101)₂

Q11. How does computer understand HOTS, Main and CaSe? (7-bit ASCII)

Encode every character independently using ASCII decimal and 7-bit binary.

TextCharacterASCII decimal7-bit binary
HOTSH721001000
O791001111
T841010100
S831010011
MainM771001101
a971100001
i1051101001
n1101101110
CaSeC671000011
a971100001
S831010011
e1011100101

Q12. The hexadecimal number system uses 16 literals (0–9, A–F). Write down its base value.

Its base value is 16, because it has sixteen unique symbols.

Q13. Let X be a number system having B symbols only. Write down the base value.

The base or radix of the number system is the number of unique symbols it uses. Therefore, the base value is B.

Q14. Write equivalent hexadecimal and binary values for each character of “हम सब एक”.

Using Unicode code points for the Devanagari characters (and U+0020 for each space):

CharacterUnicode hex16-bit binary
ह09390000100100111001
म092E0000100100101110
Space00200000000000100000
स09380000100100111000
ब092C0000100100101100
Space00200000000000100000
ए090F0000100100001111
क09150000100100010101

Note: This is a code-point representation shown in 16-bit form for learning. Actual UTF-8 byte sequences are different in length and must be calculated using UTF-8 encoding rules.

Q15. What is the advantage of preparing digital content in an Indian language using Unicode font?

Unicode assigns standard code points to characters, allowing Indian-language text to be stored, searched, copied and exchanged consistently across compatible devices, operating systems and applications. It reduces the character-display problems caused by incompatible legacy font encodings. The font controls appearance, while Unicode defines the character encoding.

Q16. Explore and list steps required to type in an Indian language using Unicode.

  1. Open the operating system's language or keyboard settings.
  2. Add the required Indian language (for example Hindi, Gujarati, Bengali or Tamil).
  3. Enable the appropriate keyboard layout or transliteration input method.
  4. Open a Unicode-compatible application.
  5. Select the language input method and type the text.
  6. Use a compatible Unicode font if required.
  7. Save the file and reopen it on another device to verify correct display.

Q17. Encode COMPUTER using ASCII and convert the encoded values into binary.

CharacterASCII decimal7-bit binary
C671000011
O791001111
M771001101
P801010000
U851010101
T841010100
E691000101
R821010010

The computer processes the eight 7-bit character codes as a sequence of binary values.

Activities and practice

Textbook Activities — Guidance

Activity 2.1 — Find Unicode fonts

Examples of Unicode fonts for Devanagari include Noto Sans Devanagari and Mangal. For Gujarati, examples include Noto Sans Gujarati and Shruti. Font availability varies by operating system; verify that the selected font supports the script.

Activity 2.2 — Convert decimal numbers to binary

Use repeated division by 2 and read remainders bottom to top. Practice with 593, 326 and 79.

Activity 2.3 — Convert decimal numbers to octal

Use repeated division by 8. Practice with 913, 845 and 66.

Activity 2.4 — Convert to decimal

Use positional expansion. Practice (110101)₂, (1703)₈ and (C0F5)₁₆. The textbook scan appears to print “COF5” with letter O; hexadecimal does not contain O, so the intended value is likely C0F5 with zero.

Activity 2.5 — Convert to binary

For hexadecimal, replace each digit by four bits. For octal, replace each digit by three bits. Practice F018₁₆, 172₁₆ and 613₈.

Further practice

  • Convert (593)₁₀ to binary, (326)₁₀ to binary and (79)₁₀ to binary.
  • Convert (913)₁₀, (845)₁₀ and (66)₁₀ to octal.
  • Convert (F018)₁₆ and (172)₁₆ to binary.
  • Convert (613)₈ to binary.
  • Use a calculator only after completing the manual steps; verify that the answer converts back to the original number.

Final self-assessment checklist

  • Can I explain the difference between encoding and encryption?
  • Can I compare ASCII, ISCII and Unicode?
  • Can I identify valid digits for each number base?
  • Can I expand a number using positional values?
  • Can I convert decimal integers using repeated division?
  • Can I convert decimal fractions using repeated multiplication?
  • Can I group binary digits correctly for octal and hexadecimal?
  • Can I convert a number containing both integer and fractional parts?
Class XI Computer Science • Chapter 2: Encoding Schemes and Number System
Prepared from the supplied 18-page textbook PDF. Includes explanations, worked methods, reference tables and solved exercise answers.

TEXTBOOK SOLUTION

Step-by-step solved textbook exercises, derivations, and solutions.

Exercise Solutions Being Updated

Step-by-step verified exercise solutions are currently being uploaded.

IMPORTANT QUESTION

High-yield board questions, previous year questions (PYQs), and model answer keys.

Important Questions Being Compiled

Board blueprint and previous years' exam questions for this chapter will be live soon.