ISC_Class11_ComputerScience_Data_Representation_Notes
ISC_Class11_ComputerScience_Data_Representation_Notes
1. Introduction
Data representation refers to the methods used internally to represent information stored in a computer.
Since computers operate in binary (only two states: ON and OFF or 1 and 0), all types of data such as text,
numbers, images, and sounds must be converted into binary format before a computer can process them.
2. Numeral Systems
Numeral systems are different ways to represent numbers. There are two main types:
- Positional number systems: These depend on the position of the digit. Examples include decimal, binary,
- Non-positional number systems: Here, digits have fixed values regardless of their position. An example is
Roman numerals.
- Decimal (Base 10): Uses digits from 0 to 9. Its the number system we use daily.
- Binary (Base 2): Uses only 0 and 1. Computers use binary because it aligns with electronic circuit states
(OFF = 0, ON = 1).
- Octal (Base 8): Uses digits from 0 to 7. Its a shorter form to represent binary.
- Hexadecimal (Base 16): Uses digits from 0 to 9 and A to F (where A = 10, ..., F = 15). Used for memory
addressing.
4. Number Conversions
- Decimal to Binary: Divide the number by 2 and record remainders. Read from bottom to top.
- Binary to Decimal: Multiply each binary digit by 2 raised to the position's power.
- Octal to Binary: Convert each octal digit to its 3-bit binary equivalent.
- Binary to Octal: Group bits in 3s from right and convert each group to an octal digit.
- Hex to Binary: Replace each hex digit with a 4-bit binary number.
Signed Binary Numbers: Can represent positive and negative values using methods like:
- Twos Complement: Ones complement + 1. Most commonly used for negative representation.
6. Floating-Point Representation
7. Binary Arithmetic
8. Octal Arithmetic
9. Hexadecimal Arithmetic
- Unicode: Universal standard supporting over 1 lakh characters from multiple languages.