Current Affairs updated daily
KalviGavaniKalviGavani

Encoding Schemes and Number Systems — NCERT Class 11 Computer Science

Complete NCERT Solutions for CBSE Class 11 Computer Science Chapter 2 — all exercise questions on number system conversions, ASCII, Unicode, ISCII encoding answered clearly.

Updated 11 June 202614 min read

Exercise Solutions Available

Step-by-step answers for all textbook questions in this chapter

View Solutions →

Encoding Schemes and Number Systems — NCERT Exercise Solutions for Class 11 Computer Science

Welcome to the complete NCERT exercise solutions for CBSE Class 11 Computer Science Chapter 2: Encoding Schemes and Number Systems. Every question from the NCERT textbook is answered below with detailed, step-by-step working. Conversions are shown with full steps so you can follow the method and apply it to any similar problem in your exams.


How to Use These Solutions

1. Try each question yourself first — work through the conversion using the method taught in class before checking the solution. 2. Follow every step — conversion questions carry step marks. Understanding the method matters more than the final answer. 3. Verify by reverse conversion — after finding the answer, convert it back to the original base to confirm correctness. 4. Practice variations — once you understand the method, try converting different numbers using the same approach.


Key Concepts — Quick Review

Before reading the solutions, quickly review the core concepts:

  • Decimal (base 10): Digits 0-9. Our everyday number system.
  • Binary (base 2): Digits 0-1. The language of computers.
  • Octal (base 8): Digits 0-7. 3 binary digits = 1 octal digit.
  • Hexadecimal (base 16): Digits 0-9, A-F. 4 binary digits = 1 hex digit.
  • Decimal to other bases: Divide repeatedly by the base, read remainders bottom-to-top.
  • Other bases to decimal: Multiply each digit by base^position, sum all.
  • Binary to Octal: Group into 3-bit groups from right.
  • Octal to Binary: Replace each octal digit with 3-bit binary.
  • Binary to Hex: Group into 4-bit groups from right.
  • Hex to Binary: Replace each hex digit with 4-bit binary.
  • ASCII: 7-bit, 128 characters, English only. Key: Space=32, '0'=48, 'A'=65, 'a'=97.
  • ISCII: 8-bit, 256 characters, Indian scripts.
  • Unicode: Universal, supports all world scripts. Encoded as UTF-8 (1-4 bytes), UTF-16 (2-4 bytes), UTF-32 (4 bytes).

Exercise Questions and Answers

Q1. Convert the following decimal numbers to binary:

(a) 25 (b) 57 (c) 100 (d) 128

Answer

(a) Convert 25 (decimal) to binary:

DivisionQuotientRemainder
25 / 2121
12 / 260
6 / 230
3 / 211
1 / 201

Read remainders from bottom to top: 11001

25 (decimal) = 11001 (binary)
Answer

Verification: 1x16 + 1x8 + 0x4 + 0x2 + 1x1 = 16 + 8 + 0 + 0 + 1 = 25. Correct.


(b) Convert 57 (decimal) to binary:

DivisionQuotientRemainder
57 / 2281
28 / 2140
14 / 270
7 / 231
3 / 211
1 / 201

Read remainders from bottom to top: 111001

57 (decimal) = 111001 (binary)
Answer

Verification: 1x32 + 1x16 + 1x8 + 0x4 + 0x2 + 1x1 = 32 + 16 + 8 + 0 + 0 + 1 = 57. Correct.


(c) Convert 100 (decimal) to binary:

DivisionQuotientRemainder
100 / 2500
50 / 2250
25 / 2121
12 / 260
6 / 230
3 / 211
1 / 201

Read remainders from bottom to top: 1100100

100 (decimal) = 1100100 (binary)
Answer

Verification: 1x64 + 1x32 + 0x16 + 0x8 + 1x4 + 0x2 + 0x1 = 64 + 32 + 0 + 0 + 4 + 0 + 0 = 100. Correct.


(d) Convert 128 (decimal) to binary:

DivisionQuotientRemainder
128 / 2640
64 / 2320
32 / 2160
16 / 280
8 / 240
4 / 220
2 / 210
1 / 201

Read remainders from bottom to top: 10000000

128 (decimal) = 10000000 (binary)
Answer

Verification: 1x128 = 128. Correct.


Q2. Convert the following binary numbers to decimal:

(a) 1101 (b) 10110 (c) 110011 (d) 11111111

Answer

(a) Convert 1101 (binary) to decimal:

1 x 2^3 = 1 x 8 = 8 1 x 2^2 = 1 x 4 = 4 0 x 2^1 = 0 x 2 = 0 1 x 2^0 = 1 x 1 = 1

Total = 8 + 4 + 0 + 1 = 13

1101 (binary) = 13 (decimal)

(b) Convert 10110 (binary) to decimal:

1 x 2^4 = 1 x 16 = 16 0 x 2^3 = 0 x 8 = 0 1 x 2^2 = 1 x 4 = 4 1 x 2^1 = 1 x 2 = 2 0 x 2^0 = 0 x 1 = 0

Total = 16 + 0 + 4 + 2 + 0 = 22

10110 (binary) = 22 (decimal)

(c) Convert 110011 (binary) to decimal:

1 x 2^5 = 1 x 32 = 32 1 x 2^4 = 1 x 16 = 16 0 x 2^3 = 0 x 8 = 0 0 x 2^2 = 0 x 4 = 0 1 x 2^1 = 1 x 2 = 2 1 x 2^0 = 1 x 1 = 1

Total = 32 + 16 + 0 + 0 + 2 + 1 = 51

110011 (binary) = 51 (decimal)

(d) Convert 11111111 (binary) to decimal:

1 x 2^7 = 128 1 x 2^6 = 64 1 x 2^5 = 32 1 x 2^4 = 16 1 x 2^3 = 8 1 x 2^2 = 4 1 x 2^1 = 2 1 x 2^0 = 1

Total = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255

11111111 (binary) = 255 (decimal)

Q3. Convert the following decimal numbers to hexadecimal:

(a) 255 (b) 756 (c) 1000

Answer

(a) Convert 255 (decimal) to hexadecimal:

DivisionQuotientRemainder
255 / 161515 (F)
15 / 16015 (F)

Read remainders from bottom to top: FF

255 (decimal) = FF (hexadecimal)
Answer

Verification: F(15) x 16 + F(15) x 1 = 240 + 15 = 255. Correct.


(b) Convert 756 (decimal) to hexadecimal:

DivisionQuotientRemainder
756 / 16474
47 / 16215 (F)
2 / 1602

Read remainders from bottom to top: 2F4

756 (decimal) = 2F4 (hexadecimal)
Answer

Verification: 2x256 + 15x16 + 4x1 = 512 + 240 + 4 = 756. Correct.


(c) Convert 1000 (decimal) to hexadecimal:

DivisionQuotientRemainder
1000 / 16628
62 / 16314 (E)
3 / 1603

Read remainders from bottom to top: 3E8

1000 (decimal) = 3E8 (hexadecimal)
Answer

Verification: 3x256 + 14x16 + 8x1 = 768 + 224 + 8 = 1000. Correct.


Q4. Convert the following hexadecimal numbers to decimal:

(a) 1A3 (b) FF (c) 2B

Answer

(a) Convert 1A3 (hexadecimal) to decimal:

1 x 16^2 = 1 x 256 = 256 A(10) x 16^1 = 10 x 16 = 160 3 x 16^0 = 3 x 1 = 3

Total = 256 + 160 + 3 = 419

1A3 (hexadecimal) = 419 (decimal)


(b) Convert FF (hexadecimal) to decimal:

F(15) x 16^1 = 15 x 16 = 240 F(15) x 16^0 = 15 x 1 = 15

Total = 240 + 15 = 255

FF (hexadecimal) = 255 (decimal)


(c) Convert 2B (hexadecimal) to decimal:

2 x 16^1 = 2 x 16 = 32 B(11) x 16^0 = 11 x 1 = 11

Total = 32 + 11 = 43

2B (hexadecimal) = 43 (decimal)


Q5. Convert the following decimal numbers to octal:

(a) 156 (b) 100 (c) 255

Answer

(a) Convert 156 (decimal) to octal:

DivisionQuotientRemainder
156 / 8194
19 / 823
2 / 802

Read remainders from bottom to top: 234

156 (decimal) = 234 (octal)
Answer

Verification: 2x64 + 3x8 + 4x1 = 128 + 24 + 4 = 156. Correct.


(b) Convert 100 (decimal) to octal:

DivisionQuotientRemainder
100 / 8124
12 / 814
1 / 801

Read remainders from bottom to top: 144

100 (decimal) = 144 (octal)
Answer

Verification: 1x64 + 4x8 + 4x1 = 64 + 32 + 4 = 100. Correct.


(c) Convert 255 (decimal) to octal:

DivisionQuotientRemainder
255 / 8317
31 / 837
3 / 803

Read remainders from bottom to top: 377

255 (decimal) = 377 (octal)
Answer

Verification: 3x64 + 7x8 + 7x1 = 192 + 56 + 7 = 255. Correct.


Q6. Convert the following binary numbers to octal and hexadecimal:

(a) 110101 (b) 10111001

Answer

(a) Convert 110101 (binary) to octal:

Step 2: Convert each group: 110 = 6, 101 = 5 Step 3: Combine: 65

Step 1: Group into sets of 3 bits from the right: 110101
110101 (binary) = 65 (octal)
Answer

Convert 110101 (binary) to hexadecimal:

Step 2: Convert each group: 0011 = 3, 0101 = 5 Step 3: Combine: 35

Step 1: Group into sets of 4 bits from the right: 00110101 (added leading zeros)
110101 (binary) = 35 (hexadecimal)

(b) Convert 10111001 (binary) to octal:

Step 2: Convert each group: 010 = 2, 111 = 7, 001 = 1 Step 3: Combine: 271

Step 1: Group into sets of 3 bits from the right: 010111001 (added leading zero)
10111001 (binary) = 271 (octal)
Answer

Convert 10111001 (binary) to hexadecimal:

Step 2: Convert each group: 1011 = B, 1001 = 9 Step 3: Combine: B9

Step 1: Group into sets of 4 bits from the right: 10111001
10111001 (binary) = B9 (hexadecimal)

Q7. What is ASCII? Explain with examples.

Answer

ASCII stands for American Standard Code for Information Interchange. It is a character encoding standard developed in 1963 that uses 7 bits to represent each character, allowing a total of 128 characters (2^7 = 128). ASCII was designed for the English language and includes uppercase letters (A-Z), lowercase letters (a-z), digits (0-9), punctuation marks, control characters (like newline, tab), and special symbols.

Important ASCII values:

  • Space = 32
  • Digits '0' to '9' = 48 to 57
  • Uppercase 'A' to 'Z' = 65 to 90
  • Lowercase 'a' to 'z' = 97 to 122

Example 1: The letter 'A' has the ASCII value 65. In binary, 65 = 1000001. So the computer stores 'A' as the 7-bit pattern 1000001.

Example 2: The word "Hi" is stored as:

  • H = ASCII 72 = binary 1001000
  • i = ASCII 105 = binary 1101001
  • "Hi" = 1001000 1101001 (14 bits)

Limitations of ASCII:

  • Supports only 128 characters, which is sufficient for English but not for other languages.
  • Cannot represent Indian scripts, Chinese characters, Arabic, or other non-Latin scripts.
  • Extended ASCII (8-bit, 256 characters) partially addresses this but is still limited.

Q8. Differentiate between ASCII and Unicode.

Answer
BasisASCIIUnicode
Full FormAmerican Standard Code for Information InterchangeUniversal Coded Character Set
Bits per character7 bits (fixed)8 to 32 bits (variable in UTF-8)
Number of characters128Over 149,000
Language supportEnglish onlyAll world languages and scripts
Year introduced19631991
Backward compatibilityN/AFirst 128 code points match ASCII exactly
Indian language supportNoYes — Devanagari, Tamil, Bengali, Telugu, and all others
Emoji supportNoYes
Encoding formatsSingle format (7-bit)UTF-8, UTF-16, UTF-32
Usage todayLegacy systems, limited useStandard for web, operating systems, and applications
Memory efficiencyVery efficient (7 bits per char)Variable — 1 byte for ASCII chars, up to 4 bytes for others

Why Unicode replaced ASCII: ASCII could only represent English (128 characters), making it impossible to exchange text in Hindi, Tamil, Chinese, Arabic, or any other language. Unicode was created as a single universal standard that assigns a unique code point to every character in every script, enabling global multilingual communication. The fact that UTF-8's first 128 code points match ASCII exactly ensures backward compatibility, so existing ASCII data works seamlessly with Unicode systems.


Q9. What is ISCII? How is it different from ASCII?

Answer

ISCII stands for Indian Script Code for Information Interchange. It is an 8-bit character encoding scheme developed in the 1980s by the Department of Electronics (now Ministry of Electronics and Information Technology), Government of India. ISCII was designed to enable computing in Indian languages.

Key features of ISCII:

  • Uses 8 bits per character, allowing 256 characters (2^8 = 256).
  • Supports major Indian scripts: Devanagari (Hindi, Marathi, Sanskrit), Bengali, Gujarati, Kannada, Malayalam, Oriya, Tamil, Telugu, and Punjabi (Gurmukhi).
  • The first 128 codes are identical to ASCII, providing backward compatibility with English.
  • ISCII uses a single code chart for all Indian scripts — the same code represents similar-sounding characters across different scripts.

Differences between ISCII and ASCII:

BasisASCIIISCII
Bits per character78
Max characters128256
Language supportEnglish onlyIndian scripts + English
Indian language supportNoYes
Backward compatible with ASCIIYes (it is ASCII)Yes (first 128 codes match ASCII)
Current usageLegacy onlyRare — replaced by Unicode

ISCII was an important milestone for Indian language computing, but it has been largely replaced by Unicode, which offers a single universal standard for all languages including Indian scripts.


Q10. Convert octal number 72 to binary and hexadecimal.

Answer

Step 1: Convert 72 (octal) to binary

Replace each octal digit with its 3-bit binary equivalent:

  • 7 = 111
  • 2 = 010

Combine: 111010

72 (octal) = 111010 (binary)
Answer

Step 2: Convert 111010 (binary) to hexadecimal

Group into sets of 4 bits from the right: 00111010 (added leading zeros)
  • 0011 = 3
  • 1010 = A

Combine: 3A

72 (octal) = 3A (hexadecimal)
Answer

Verification: 72 (octal) = 7x8 + 2x1 = 58 (decimal). 3A (hex) = 3x16 + 10x1 = 58 (decimal). Correct.


Related Chapters

  • [CBSE Class 11 Computer Science Chapter 2 — Encoding Schemes and Number Systems (Chapter Guide)](/class/11/computer-science/cbse-encoding-number-systems)
  • [CBSE Class 11 Computer Science Chapter 1 — Computer System (Chapter Guide)](/class/11/computer-science/cbse-computer-system)
  • [Computer System — Exercise Solutions](/class/11/computer-science/solutions/cbse-computer-system-exercise-solutions)

Frequently Asked Questions

This page has complete NCERT exercise solutions for CBSE Class 11 Computer Science Chapter 2 Encoding Schemes and Number Systems.