Class 11-12

Class 11 Computer Science

BSEB 100-Day Study Plan
Notes, MCQs, and Solutions

Explore Class 11

Class 12 Computer Science

Advanced Topics & Practical Guide
Board Exam Preparation

Explore Class 12

Day 13: Introduction to Data Representation – ASCII, Unicode, and Binary Codes | Class 11

Learn about Data Representation in Day 13 of Class 11. Understand ASCII, Unicode, and Binary Codes with examples and applications in computer systems.

Day 13 – Chapter 2: Data Representation

Class 11 Computer Science

2.23 Introduction to Data Representation (डेटा प्रस्तुति का परिचय)

Data representation refers to the methods used to represent information in computers. This includes representing characters, numbers, and other data types using binary codes.
डेटा प्रस्तुति वह विधियाँ हैं जो कंप्यूटर में जानकारी का प्रतिनिधित्व करने के लिए उपयोग की जाती हैं। इसमें वर्णों, संख्याओं और अन्य डेटा प्रकारों को बाइनरी कोड का उपयोग करके प्रस्तुत करना शामिल है।

2.24 Character Representation (वर्ण प्रस्तुति)

2.24.1 ASCII (अमेरिकन स्टैंडर्ड कोड फॉर इंफॉर्मेशन इंटरचेंज)

ASCII is a 7-bit code used to represent characters, numbers, and special symbols. It supports 128 characters.
ASCII एक 7-बिट कोड है जिसका उपयोग वर्ण, संख्याएँ और विशेष प्रतीकों को प्रस्तुत करने के लिए किया जाता है। यह 128 वर्णों का समर्थन करता है।

  • Example: A = 65, B = 66, C = 67

2.24.2 Unicode (यूनिकोड)

Unicode is a universal encoding standard designed to support all characters from different languages and scripts. It uses 16 bits or more for representation.
यूनिकोड एक सार्वभौमिक एन्कोडिंग मानक है जो विभिन्न भाषाओं और लिपियों के सभी वर्णों का समर्थन करने के लिए डिज़ाइन किया गया है। यह 16 बिट्स या उससे अधिक का उपयोग करता है।

  • Example: A = 0041, क = 0915, α = 03B1

2.25 Number Representation (संख्या प्रस्तुति)

2.25.1 Binary Coded Decimal (BCD)

BCD is a method to represent decimal numbers using binary. Each decimal digit is represented by its 4-bit binary equivalent.
BCD एक विधि है जो दशमलव संख्याओं को बाइनरी का उपयोग करके प्रस्तुत करती है। प्रत्येक दशमलव अंक को उसके 4-बिट बाइनरी समकक्ष द्वारा प्रस्तुत किया जाता है।

  • Example: 47 = 0100 0111

2.25.2 Excess-3 Code (एक्सेस-3 कोड)

Excess-3 is a self-complementing code used to represent decimal numbers. It adds 3 to each decimal digit before converting to binary.
Excess-3 एक आत्म-पूरक कोड है जो दशमलव संख्याओं को प्रस्तुत करने के लिए उपयोग किया जाता है। बाइनरी में परिवर्तित करने से पहले यह प्रत्येक दशमलव अंक में 3 जोड़ता है।

  • Example: 5 = 8 (5 + 3) → 1000

2.26 Applications of Data Representation (डेटा प्रस्तुति के अनुप्रयोग)

  • Used in text processing, where characters are stored using ASCII or Unicode
  • Used in digital systems to store and process numbers
  • Essential for data exchange between different systems

Practice Questions (अभ्यास प्रश्न)

Multiple Choice Questions (MCQs)

  1. How many characters does ASCII support?
    (a) 128 | (b) 256 | (c) 512 | (d) 1024
  2. What is the Unicode value for the character 'A'?
    (a) 41 | (b) 0041 | (c) 65 | (d) None of the above
  3. Which code is self-complementing?
    (a) ASCII | (b) Excess-3 | (c) BCD | (d) Unicode
  4. How is the number 27 represented in BCD?
    (a) 0010 0111 | (b) 0100 0111 | (c) 0011 0111 | (d) 0110 1001
  5. What is the purpose of Unicode?
    (a) To store numbers | (b) To represent all characters | (c) To process data | (d) To perform arithmetic
  6. How many bits are used in ASCII?
    (a) 7 | (b) 8 | (c) 16 | (d) 32
  7. Which encoding supports characters in all languages?
    (a) ASCII | (b) Unicode | (c) BCD | (d) Excess-3
  8. What is the BCD representation of 9?
    (a) 1001 | (b) 1000 | (c) 1010 | (d) 0111
  9. What is the Excess-3 code for 4?
    (a) 0110 | (b) 1000 | (c) 0010 | (d) 1010
  10. Which representation is widely used in text processing?
    (a) Binary | (b) ASCII | (c) Excess-3 | (d) BCD

Answers to MCQs:

1: (a), 2: (b), 3: (b), 4: (a), 5: (b), 6: (a), 7: (b), 8: (a), 9: (a), 10: (b)

Short Answer Questions (लघु उत्तरीय प्रश्न)

  1. What is ASCII, and how many characters does it support?
    Answer: ASCII is a 7-bit code supporting 128 characters.
  2. What is Unicode, and why is it important?
    Answer: Unicode is a universal encoding standard supporting all languages.
  3. What is the BCD representation of 47?
    Answer: 0100 0111.
  4. What is the Excess-3 code for the number 6?
    Answer: 1001.
  5. How does Excess-3 differ from BCD?
    Answer: Excess-3 adds 3 to each decimal digit before binary conversion.

Long Answer Questions (दीर्घ उत्तरीय प्रश्न)

  1. Explain ASCII and Unicode in detail with examples.
  2. Discuss BCD and Excess-3 codes with examples and applications.
  3. Why is data representation essential in computer systems? Explain with examples.

Post a Comment