Table of contents |
|
Number System |
|
Types of Number Systems |
|
Conversion between the Number Systems |
|
Computer Codes |
|
Logic Gate |
|
Data representation refers to the methods used internally to represent information stored in a computer. Computers store various types of information such as numbers, text, graphics, and sounds.
For example, (F9D)16
Here, 16 represents the base of hexadecimal number.
To convert a decimal number to binary, follow these steps:
To convert binary to octal, following steps are involved
Convert every digit of the number from octal to binary in the group of 3 bits.
To convert a binary number to its hexadecimal equivalent, follow these steps:
For this type of conversion, convert each hexadecimal digit to 4 bits binary equivalent.
To convert a decimal number to its octal equivalent, follow these steps:
To convert octal to decimal, following steps are involved Step 1 Multiply each digit of octal number with powers of 8.
To convert a decimal number to its hexadecimal equivalent, follow these steps:
![]() |
Download the notes
Data Representation
|
Download as PDF |
To converthexadecimal to decimal, following steps are involved:
To convert octal to hexadecimal, following steps are involved
To convert hexadecimal to octal, following steps are involved
Binary Coded Decimal (BCD)
American Standard Code for Information Interchange (ASCII)
ASCII is a standard character code used to store data so it can be utilized by other software programs. There are two types of ASCII codes:
Extended Binary Coded Decimal Interchange (EBCDIC)
In EBCDIC, characters are represented by eight bits. This code allows for 2^8 = 256 unique combinations of bits and stores information that is readable by other computers.
A logic gate is a basic building block of a digital circuit that has two inputs and one output. The relationship between the input and the output is based on a specific logic. These gates are implemented using electronic switches such as transistors and diodes.
There are various types of logic gate as follows
1. AND Gate: This gate is also represented by (⋅), i.e. (A ⋅ B). It returns True only if both the conditions or inputs are True otherwise it returns False.
2. OR Gate: This is represented by (+), i.e. (A + B). It returns True if any one of the conditions or inputs is True and if both conditions are False, then it returns False.
∴ X = A + B
3. Inverter or NOT Gate: This gate is also represented by (′), i.e. A ′. It returns True if the input is false and vice-versa.
4. NAND Gate: It is basically the inverse of the AND gate. This gate is designed by combining the AND and NOT gates.
It returns False only if the both conditions or inputs are True otherwise it returns True.
5. NOR Gate: It is inverse of the OR gate. This gate is designed by combining the OR and NOT gates. It returns True only if both the conditions or inputs are False otherwise it returns False.
Note NAND and NOR gates are also called universal gates.
6. Exclusive-OR or XOR Gate: It performs based on the operation of OR gate.
It returns True only if one condition is true from both the conditions otherwise it returns False.
48 videos|24 docs|33 tests
|
1. What are the different types of number systems used in computer science? | ![]() |
2. How can one convert a number from one number system to another? | ![]() |
3. What are computer codes and how are they used in data representation? | ![]() |
4. What role do logic gates play in the functioning of computer systems? | ![]() |
5. How is data represented in computer systems for processing and storage purposes? | ![]() |