0% found this document useful (0 votes)
42 views13 pages

Class 11 Data Representation Notes

The document provides an overview of data representation, focusing on various number systems including binary, octal, and hexadecimal, as well as their conversions. It also covers character and string representation through ASCII, ISCII, and Unicode, detailing their significance and encoding methods. The document serves as a comprehensive guide for understanding how data is represented and manipulated in computing.

Uploaded by

bhura.aarna
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views13 pages

Class 11 Data Representation Notes

The document provides an overview of data representation, focusing on various number systems including binary, octal, and hexadecimal, as well as their conversions. It also covers character and string representation through ASCII, ISCII, and Unicode, detailing their significance and encoding methods. The document serves as a comprehensive guide for understanding how data is represented and manipulated in computing.

Uploaded by

bhura.aarna
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Data Representation Swati Jain

Contents
1. Number systems.....................................................................................................................................2
1. Binary Number System –....................................................................................................................2
2. Octal Number System.........................................................................................................................2
3. Hexadecimal Number System.............................................................................................................3
4. Tabular Format of the number system...............................................................................................3
2. Conversion..............................................................................................................................................4
5. Binary to Decimal Conversion Example:.............................................................................................4
6. Octal to decimal conversion................................................................................................................5
7. Hexadecimal to decimal conversion...................................................................................................6
8. Decimal to Binary Conversion.............................................................................................................7
9. Decimal to Octal conversion...............................................................................................................8
10. Decimal to hexadecimal conversion................................................................................................9
11. Hexadecimal and Octal To Binary.................................................................................................10
3. Character/String representation...........................................................................................................11
12. ASCII Code.....................................................................................................................................11
13. ISCII Code......................................................................................................................................12
14. Unicode – Universal Character Set................................................................................................12
Data Representation Swati Jain

1. Number systems
- Binary
- Octal
- Decimal
- Hexadecimal

1. Binary Number System –


Binary Number system is required in Computers as 0 (off) and 1(on) as it is a digital
system.
- It is of the Base 2.
- 0 and 1 are the only two digits in this system.

2. Octal Number System


Octal Number system is created by joining 3 digits of the Binary Number system.
- It is of the Base 8.
- 0 - 7 are the digits in this system.
Data Representation Swati Jain

3. Hexadecimal Number System


Hexadecimal Number system is created by joining 4 digits of the Binary
Number system.
- It is of the Base 16.
- 0 – 9 and A-F are the digits in this system.

4. Tabular Format of the number system.

Binary numbers
0 – 15
Data Representation Swati Jain

2. Conversion
5. Binary to Decimal Conversion Example:
Data Representation Swati Jain

6. Octal to decimal conversion


Data Representation Swati Jain

7. Hexadecimal to decimal conversion


Data Representation Swati Jain

8. Decimal to Binary Conversion


Data Representation Swati Jain

9. Decimal to Octal conversion.


Data Representation Swati Jain

10. Decimal to hexadecimal conversion.


Data Representation Swati Jain

11. Hexadecimal and Octal To Binary


Data Representation Swati Jain

3. Character/String representation.
12. ASCII Code
stands for American Standard Code for Information Interchange. It is a
predetermined set of codes for each recognized letter, number and
symbol.

Below is the ASCII character table, including descriptions of the first


32 characters.

Only remember A and a value


Data Representation Swati Jain

13. ISCII Code


Indian Script Code for Information Interchange (ISCII) is a coding
scheme for representing various writing systems of India. This is useful
for including Indian languages in Coding standards. This makes data-
interchange possible.

14. Unicode – Universal Character Set

An international encoding standard for use with different languages and


scripts, by which each letter, digit, or symbol is assigned a
unique numeric value that applies across different platforms and
programs.
This is useful for :-
1. To define all the characters needed for writing the majority of known
languages in use on computers in one place.
2. To be a superset of all other character sets that have been encoded.

- UTF -8 : UTF-8 is a variable -width encoding that can represent


every character in Unicode character set. It can use 1 to 6
bytes , till now it has used upto 4 bytes or octets for
representing data. It is a type of multi byte encoding.
Sometimes it uses 8 bits to store the character, other times, 16
or 24 or more bits. It is the most popular encoding scheme.

- UTF-32 : UTF-32 is a fixed length encoding scheme that uses


exactly 4 bytes to represent all Unicode code points. That is , it
directly stores the binary code of any Unicode code point in 4
bytes.
Data Representation Swati Jain

Common questions

Powered by AI

ASCII provides a fixed set of codes for letters, numbers, and symbols, predominantly used for English characters, which makes it limited in terms of international script support . Unicode, on the other hand, is an international encoding standard that assigns unique numeric values to characters from various languages and scripts, allowing for comprehensive international representation . While ASCII uses 128 or 256 values and does not support multiple scripts, Unicode, particularly UTF-8 and UTF-32, can encode a vast array of characters using variable or fixed widths, respectively . This makes Unicode far more versatile and extensive in supporting global languages.

ISCII Code, or Indian Script Code for Information Interchange, provides a standardized coding scheme for Indian languages, enabling consistent representation and data interchange across different systems and platforms . Its importance lies in facilitating digital communication and documentation within India's multilingual context, as it includes scripts like Devanagari, Tamil, and others, thus promoting linguistic inclusivity in technology . Unlike ASCII, ISCII supports complex and script-specific characters, accommodating the diverse alphabets and scripts used in Indian languages.

Conversion from hexadecimal to binary involves breaking down each hexadecimal digit into its four-bit binary equivalent. For instance, the hexadecimal digit 'A' converts to '1010' in binary. This conversion underscores the structure of both systems, where each hexadecimal digit compresses what would otherwise require four binary digits, showcasing hexadecimal's efficiency in compact data representation . This process also highlights how hexadecimal provides an intuitive way to represent long strings of binary data in a more concise format.

UTF-8's variable-width encoding offers flexibility and efficiency in multilingual environments by using between one to four bytes for different characters, optimizing storage for texts primarily composed of ASCII characters. This adaptability is beneficial for web pages, emails, and data interchange protocols which encounter varied language sets . In contrast, UTF-32’s fixed-width nature, though consistent in storage allocation, can unnecessarily inflate data size where smaller code points dominate, making it less ideal for space-constrained applications but beneficial for processing algorithms that benefit from uniform data lengths across texts . Consequently, UTF-8 is preferred in internet and document publishing, while UTF-32 might serve better in computational linguistics or where performance with less variability is prioritized.

The Binary, Octal, and Hexadecimal number systems are based on bases 2, 8, and 16 respectively. The Binary system uses two digits, 0 and 1, because it is a base 2 system, suitable for digital systems like computers which operate using on/off states . The Octal system uses digits from 0 to 7 because it groups three binary digits which provide eight possible combinations, making it a base 8 system . Similarly, the Hexadecimal system uses 16 symbols (0-9 and A-F) by grouping four binary digits, providing sixteen combinations hence it's a base 16 system .

The tabular format is crucial in illustrating the direct correlation and conversion between binary numbers 0-15 and their octal and hexadecimal equivalents, simplifying understanding of these relationships. For instance, binary '0001' is '1' in both octal and hexadecimal. This format allows for easy visualization of how numbers convert between these bases, showing, for example, that '1111' in binary equates to '17' in octal and 'F' in hexadecimal. Such tables facilitate quick reference and are particularly useful in computer science for education and troubleshooting .

Converting an Octal number to its Binary equivalent involves expanding each digit of the Octal number into its three-digit binary representation. This conversion reflects the relationship where each octal digit directly translates into a group of three binary digits due to octal's base 8 nature aligning with three binary bits (2^3=8). For example, the octal digit '7' is converted to '111' in binary .

Converting a decimal number to a hexadecimal involves dividing the decimal number by 16 and tracking the remainders. These remainders, read in reverse order, represent the hexadecimal equivalent. The importance of this process in computer systems lies in its efficiency and compactness for representing large binary numbers. Since hexadecimal efficiently represents binary data in a shorter form (each hexadecimal digit corresponds to four binary digits), it is widely used in computing for memory addressing and data encoding .

UTF-8 and UTF-32 differ primarily in the way they encode Unicode characters. UTF-8 is a variable-length encoding that uses 1 to 4 bytes, which makes it efficient for texts with a lot of ASCII characters as it uses only one byte for them . UTF-32, however, uses a fixed length of 4 bytes for each character regardless of the text, ensuring time-efficient fixed processing but at a higher memory cost . UTF-8 is preferred for web and cloud environments where text is primarily English or languages with similar character sets because of its compact nature. UTF-32 is apt for scenarios where fixed-width encoding simplifies processing, like in environments dealing with multiple languages simultaneously within fixed memory .

Hexadecimal systems are favored in computing because they offer a more compact representation of binary data. Since one hexadecimal digit maps directly to four binary digits, it significantly reduces the length of binary code, easing readability and debugging in software and hardware design . Hexadecimal numbers are prominently used in memory addressing, error codes, and color coding in web development. For example, web colors like #FF5733 are hexadecimal codes, where each pair of characters represents red, green, and blue color values in a span from 00 to FF .

You might also like