Intro To Cs
Intro To Cs
DEFINATION OF COMPUTER
A computer is an electronic device which takes input from the user, processes it and gives the output
as per user’s requirement.
o So the main tasks of performed by the computer are:
Input
Process
Output
CHARACTERISTICS OF COMPUTER
Some important characteristics of the computer are as follow:
Automatic:
o Computers are automatic machines because it works by itself without human
intervention.
o Once it started on a job they carry on until the job is finished.
o Computer cannot start them.
Accuracy:
o The accuracy of a computer is very high.
o The degree of accuracy of a particular computer depends upon its design.
o Errors can occur by the computer. But these are due to human weakness, due to
incorrect data, but not due to the technological weakness.
Speed:
o Computer is a very fact device. It can perform the amount of work in few seconds for
which a human can take an entire year.
1
Prepared By: Fayera.O (MSc)
o While talking about computer speed we do not talk in terms of seconds and
milliseconds but in microseconds.
o A powerful computer is capable of performing several billion (109) simple arithmetic
operations per second.
Diligence:
o Unlike human beings, a computer is free from monotony, tiredness & lack of
concentration.
o It can continuously work for hours without creating any error & without grumbling.
o If you give ten million calculations to performed, it will perform with exactly the
same accuracy & speed as the first one.
Versatility:
o It is one of the most wonderful features about the computer.
o One moment it is preparing the results of a particular examination, the next moment it is
busy with preparing electricity bills and in between it may be helping an office secretary
to trace an important letter in seconds.
DATA PROCESSING CYCLE OF COMPUTER.
The computer Data Processing is any process that a computer program does to enter data &
summarize analyses or convert data into useable information.
The process may be automated & run on a computer.
It involves recording, analyzing, storing, summarizing & storing data.
Because data are most useful when it is well presented & informative.
The Data Processing Cycle:
Data Processing cycle described all activities which are common to all data processing
systems from manual to electronic systems.
These activities can be grouped in four functional categories, viz., data input, data processing,
data output and storage, constituting what is known as a data processing cycle.
The main aim of data processing cycle is to convert the data into meaningful information.
Data processing system are often referred to as Information System.
The Information System typically take raw Data as Input to produce Information as Output.
2
Prepared By: Fayera.O (MSc)
Input Output
Data Process Information
STORAGE
The data processing cycle contains main four functions:
o Data input
o Data process
o Data storage
o Data output
DATA INPUT
o The term input refers to the activities required to record data.
o It’s a process to entered data in to computer system.
o So before we input any data, it is necessary to check or verify the data context.
DATA PROCESSING
o The term processing includes the activities like classifying, storing, calculating,
comparing or summarizing the data.
o The processing means to use techniques to convert the data into meaningful
information.
DATA OUTPUT
o It’s a communication function which transmits the information to the outside
world. After completed the process the data are converted into the meaningful in
Sometimes the output also includes the decoding activity which converts the
electronically generated information into human readable form.
DATA STORAGE
o It involves the filling of data & information for future use.
CLASSIFICATION OF THE COMPUTER BY DATA PROCESSING:
The computers are classified in four types on the based on data processing.
Micro computer
Mini computer
Mainframe computer
Super computer
Microcomputer:
Micro computers are the computers with having a microprocessor chip as it central
processing unit.
Originated in late 1970s.
First microcomputer was built with 8 bit processor.
Microcomputer is known as personal computer.
Designed to use by individual whether in the form of pc’s, workstation or notebook
computers.
3
Prepared By: Fayera.O (MSc)
Small in size and affordable for general people.
Mini Computer:
Mini computers are originated in 1960s.
Small mainframes that perform limited tasks.
Less expensive than mainframe computer.
Mini computers are Lower mainframe in the terms of processing capabilities.
Capable of supporting 10 to 100 users simultaneously.
In 1970s it contains 8 bit or 12 bit processor.
Gradually the architecture requirement is grown and 16 and 32 bit.
Minicomputers are invented which are known as supermini computers.
Mainframe Computer:
A very powerful computer which capable of supporting thousands of user
simultaneously.
It contains powerful data processing system.
It is capable to run multiple operating systems.
It is capable to process 100 million instructions per second.
Mainframes are very large & expensive computers with having larger internal storage
capacity & high processing speed.
Mainframes are used in the organization that need to process large number of transaction
online & required a computer system having massive storage & processing capabilities.
Mainly used to handle bulk of data & information for processing.
Mainframe system is housed in a central location with several user terminal connected to it.
Much bigger in size & needs a large rooms with closely humidity &
temperature.
IBM & DEC are major vendors of mainframes.
Ex : MEDHA, SPERRY, IBM, DEC, HP, HCL
Super Computer:
Most powerful & most expensive computer.
Used for complex scientific application that requires huge processing power.
Used multiprocessor technology to perform the calculation very speedy.
They are special purpose computers that are designed to perform some specific task.
The cost of the super computer is depended on its processing capabilities & configuration.
GENERATION OF THE COMPUTERS.
COMPUTER GENERATIONS
First Generation: 1946 – 1956
The first generation of computers relied on vacuum tubes to store and process information.
o Technology: vacuum tube
o Used as a calculating device.
o Performed calculations in milliseconds.
o To bulky in size & complex design.
o Required large room to place it.
o Generates too much heat & burnt.
o Required continuously hardware maintenance.
4
Prepared By: Fayera.O (MSc)
o Generates much heat so must air-conditioner rooms are required.
o Commercial production is difficult & costly.
o Difficult to configure.
o Limited commercial use.
Second Generation: 1957 – 1963
Second generation computers relied on transistor technology invented in 1947 at Bell
o Laboratories, and magnetic core memories.
o Technology: transistor
o 10 times Smaller in size than 1st generation system.
o Less heat than 1st generation computers.
o Consumed less power than 1st generation system.
o Computers were done calculations in microseconds.
o Air-conditioner is also required.
o Easy to configure than 1st generation computers.
Third Generation: 1964 - 1975
Third generation computers used integrated circuits which were made by combining several transistors usually
3 to 15 together.
o Technology: IC chip
o Smaller in size than 1st & 2nd generation computers.
o Perform more fast calculations than 2nd generation systems.
o Large & fast primary/secondary storage than 2nd generation computers.
o Air –conditioner is required.
o Widely used for commercial applications.
o General purpose computers.
o High level languages like COBOL & FORTAN are allowed to write programs.
o Generate less heat & consumed less power than 2nd generation computer
Fourth Generation (1972-1984)
o Technology: Microprocessor chip
o Based on LSI & VLSI microprocessor chip.
o Smaller in size.
o Much faster than previous generations.
o Minimum hardware maintenance is required.
o Very reliable as computer to previous generation computers.
o Totally general purpose computer.
o Easy to configure.
o Possible to use network concept to connect the computer together.
o NO requirement of air-conditioners.
o Cheapest in price.
Fifth Generation (1989 to Present)
o Technology: ULSI microprocessor chip
o Much smaller & handy.
5
Prepared By: Fayera.O (MSc)
o Based on the ULSI chip which contains 100 million electronic components.
o The speed of the operations is increased.
o Consumed less power.
o Air-conditioner is not required.
o More user friendly interface with multi-media features.
o High level languages are allowed to write programs.
o Larger & faster primary/secondary storage than previous generations.
A simple computer system comprises the basic components like Input Devices, CPU
(Central Processing Unit) and Output Devices as under:
Input Devices:
o The devices which are used to entered data in the computer systems are known as input
devices.
o Keyboard, mouse, scanner, mike, light pen etc are example of input devices.
FUNCTION OF INPUT DEVICES
Memory Unit:
o The data & instruction have to store inside the computer before the actual processing
start.
o Same way the result of the computer must be stored before passed to the output devices.
This tasks performed by memory unit.
Control Unit:
o It controls the movement of data and program instructions into and out of the CPU, and
to control the operations of the ALU.
o In sort, its main function is to manage all the activities within the computer system.
o Controls the internal parts as well as the external parts related with the computer.
CPU:
o The Unit where all the processing is done is called as Central Processing Unit.
o It contains many other units under it.
o Main of them are:- Control Unit And ALU (Arithmetic & Logic Unit)
7
Prepared By: Fayera.O (MSc)
Chapter Two
INPUT DEVICES
WHAT IS INPUT DEVICES?
Input devices are hardware components used to provide data and control signals to a
computer or other information processing systems. They enable users to interact with the
computer, send commands, and input data for processing. Common examples of input
devices include:
These devices play a crucial role in the functionality and usability of computers and other
electronic devices, allowing users to enter data, give commands, and interact with software
applications.
INPUT DEVICES
8
Prepared By: Fayera.O (MSc)
KEYBOARD MOUSE MICROPHONE
TRACK BALL
JOYSTICK
LIGHT PEN
TOUCH SCREEN
9
Prepared By: Fayera.O (MSc)
SPECIAL KEYS
There are lots of keys that are used for some specific task describes follows:
TAB: used for gives multiple spaces or move the cursor to next defined position.
ENTER: used for generate the output of any command.
SPACE: used to make one blank space between two words.
BACKSPACE: used to remove the left-most character at cursor position.
DELETE: used to remove the right-most character at cursor position.
HOME: moves the cursor at the beginning of the line.
END: moves cursor at the end of the line.
PAGE UP: moves or scroll the screen up or previous page of the current page.
PAGE DOWN: moves the screen to the next page from the currently displayed page.
PRINT SCREEN: used to print what is currently displayed on the screen.
INSERT: used to enter text between two characters.
ESC: used to negate current command or terminate the execution of the program.
ALT: used to expand the functionality of keyboard. Basically used to generate shortcuts in
different application.
CTRL: used to expand the functionality of keyboard. Basically used to generate shortcuts in
different application.
NUMLOCK: used to on or off the numeric keypad.
CAPSLOCK: used to type the all inputted text capitally.
SPECIAL PURPOSE KEYBOARD
Special purpose keyboard is used for special purpose applications which required faster data entry
and rapid interaction with the computer system.
For example ATM used in banks used special purpose keyboard which contains a few keys.
POINTING DEVICES.
1. MOUSE
Mouse is Small hand-hold device Input device which is generally used for drawing
purpose.
It’s a Pointing device.
It contains two or three buttons
Left button is used to point out or select any item by clicking.
Right to generate context menu.
When user moves mouse across flat surface, the graphic cursor moves on screen.
Graphic cursor contains verity of symbols such as arrow, wrist, pointing finger etc.
Depending on application text & graphic cursors are changed.
The following 5 techniques are used to carry out various operations:
POINT:
10
Prepared By: Fayera.O (MSc)
o To move the mouse on top of icon
C LICK:
o To press & release the left button of mouse at once.
o Used to open any currently selected icon, menu.
DOUBLE CLICK:
o To press & release the left button of mouse twice.
o Used to open any application or program.
MICROPHONE
It’s an input device.
Used to stores the voice data into the computer system.
Microphones are a type of transducer - a device which converts energy from one form to another.
Microphones convert sound waves into electrical energy.
Different types of microphone have different ways of converting energy.
All the microphones share one common thing: The diaphragm.
Thin piece of material (such as paper, plastic or aluminum) which vibrates when it is struck by
sound waves.
When the diaphragm vibrates, it causes other components in the microphone to vibrate.
These vibrations are converted into an electrical current which becomes the audio signal.
The microphones are divided in mainly two types The type of
conversion technology they use
This refers to the technical method the mike uses to convert sound into electricity.
The most common technologies are dynamic, condenser, ribbon and crystal.
The type of application they are designed for
Some mikes are designed for general use and others are much specialised purpose.
WEB CAMERA
11
Prepared By: Fayera.O (MSc)
Web camera is a digital camera which taking picture over & over & again one after another.
These images are stored image into the physical memory of camera in built in.
After capture image & stored in memory it reduced the amount of data need to transmit.
Web camera software takes image & converts data in jpeg (compressing format).
12
Prepared By: Fayera.O (MSc)
UNIT: 3 OUTPUT DEVICES
14
Prepared By: Fayera.O (MSc)
UNIT: 4 INTERNAL/EXTERNAL PARTS WITH
COMPUTER CABINATE
15
Prepared By: Fayera.O (MSc)
2. EXPLAIN PRIMORY STORAGE DEVICE.
It’s a temporary storage.
It consists of some chips.
The data & instruction are resided in this memory when the CPU executing programs.
This memory can capable to store & retrieved data very quickly.
Primary memory is only the memory that is directly access to the CPU.
RAM
The complete name of RAM is random access memory which is also known as Primary
memory.
It is called read/write memory because data can be read as well as write in RAM.
It is called random access because you can directly access any data from RAM if you know
row & column cell.
The RAM chip is fixed on the mother board & the mother board is designed in such a way that its
memory capacity can be enhanced by adding more RAM chip.
RAM is a VOLETILE memory.
RAM chips are of two types:
DRAM:
Dynamic Random Access Memory is a volatile memory that allows fast access to data and is
ideal for use as the primary store of computer systems.
However, the information is stored as electrical charges and the charges need to be constantly
refreshed in order for the data to be maintained.
SRAM:
Static Random Access Memory is also a volatile memory.
Once data is written into the chip, it is maintained as long as power is supplied to it; it does not
need refreshing.
However, SRAM is slower than DRAM and it is also more expensive.
ROM
The complete name of ROM is read only memory.
The data stored permanently & can’t be altered by the programmer.
Data stored in RAM chip can be read & used but cannot be changed.
This memory also known a field storage permanent storage or dead storage.
It is basically used to store manufacturer programmed & user program.
Most of the basic operations are carried out by electronic circuits which are known as
micro programs.
These programs are stored in ROM. For ex. System Boot Loader.
ROM
The complete name of ROM is read only memory.
The data stored permanently & can’t be altered by the programmer.
Data stored in RAM chip can be read & used but cannot be changed.
PROM
Programmable Read Only Memory is a non-volatile memory which allows the user to
program the chip with a PROM writer.
The chip can be programmed once, thereafter, it cannot be altered.
16
Prepared By: Fayera.O (MSc)
EPROM & EEPROM
Erasable Programmable Read Only Memory and Electrically Erasable Programmable
Read Only Memory chips can be electrically programmed.
Unlike ROM and PROM chips, EPROM chips can be erased and reprogrammed.
USB PORT
It’s a new interface technology which is used to connect computer peripherals such as keyboard,
mouse, scanner, joysticks, printer, web camera etc.
USB operate at two speeds 1.5 mbps & 12 mbps.
The speed is depending upon the devices which are attached with the port.
For example the devices such as mouse, keyboard Use the law band while digital camera use
high speed channel/
Main advantage is that when devices are attached the appropriate drivers are loaded
automatically.
PS/2 PORT
Developed by IBM for connecting mouse or keyboard to PC.
It supports the plug that contains 6 pins.
Also called mouse port.
17
Prepared By: Fayera.O (MSc)
UNIT: 5 DATA STORAGE
A floppy disk is a round, flat piece of flexible plastic which is coated with magnetic
18
Prepared By: Fayera.O (MSc)
oxide.
It is encased in square plastic cover that gives protection to the disk.
They are also referred as diskettes.
The data is read and write in floppy disk is using a device called FLOPPY DISC DRIVE.
The long lit is provided for the read / writes head to access the disk.
A hub in the centre is used for mounting the disk drive.
A hole is used to sense index marking.
The floppy disks are available in two sizes.
o 5 ¼ inch (1.2 MB)
o 3 ½ inch (1.44 MB)
Advantages:
Cheap in cost.
Convenient offline storage for small computer users.
Disadvantages;
Low storage capacity.
A floppy disk drive device is required to use read/write data.
3. HARD DISK
Hard disks are most popular secondary storage device.
It supports the direct access of the data.
It’s a thin magnetic plate which is made of metal n both side coated with magnetic
material.
The disk is divided in many tracks & the data is store in both side of the disk.
The disk pack consists of multiple disk plates.
The disk drive pack has a separate read/write head for each disk surface.
The disk drive consists of motor to rotate the disk pack about its axis at a speed of about 5400
revolution per minute.
19
Prepared By: Fayera.O (MSc)
The drive also has a set of magnetic heads mounted on arms.
The arm assembly is capable of moving in & out in radial direction.
The hard disk drive has become the most indispensable secondary storage device in micro-
computers.
It is fast and speeds of less than 10 (ms) milliseconds are achievable.
Storage capacity is large and it is not uncommon for micro-computers.
20
Prepared By: Fayera.O (MSc)
UNIT: 6 NUMBER SYSTEM
Introduction
All digital computers store numbers, letters, and other characters in coded form.
The code used to represent characters is the Binary Code – i.e. a code made up of bits
called Binary Digits.
Every character is represented by a string of “0s” and “1s” – the only digits found in the
binary numbering system.
“0” or “1” = bit (Binary Digit) 8
bits = 1 Byte (1 Character) 1024
Bytes = 1 KB (Kilo Bytes) 1024
KB = 1 MB (Mega Byte) 1024 MB
= 1 GB (Giga Byte) 1024 GB= 1
TB (Terra Byte)
When data is typed into a computer, the key board converts each key stroke into a binary
character code. This code is then transmitted to the computer.
When the computer transmits the data to the any device, each individual character is
communicated in binary code. It is then converted back to the specific character while
displaying or printing the data.
Number Systems
Numbers earlier consisted of symbols like I for 1, II for 2, III for 3 etc. Each
Symbol represented the same value irrespective of its position in the number.
This approach is called an additive approach. As time passed positional numbering systems
were developed. In such a system the number of symbols is few and they represent different
values depending on the position they occupy.
Now we know that numbers can be represented by arranging symbols in various
positions.
Decimal Number System (Base 10)
In the decimal system the successive positions to the left of the decimal point represent units,
tens, hundreds, thousands etc. For example if we consider
The number 7762, the digit 2 represents the number of units, 6 represents the number of tens,
7 the number of hundreds and 7 the number of thousands.
(7 x 1000) + (7 x 100) + (6 x 10) + (2 x 1) = 7762
Thus as we move one position to the left, the value of the digit increases by ten times. We
can see that the position of the number affects its value.
These kinds of number systems are therefore called positional number systems.
In other words the number of symbols used to represent numbers in the system is called the
base of that system. In short we can say that the value of each digit in the number system is
determined by:
The digit itself
The position of the digit in the number itself
The base of the system.
The Roman numbering system uses symbols like I, II, III, IV, V etc. To represent
the decimal numbers 1, 2, 3, 4, and 5.
As we can see this follows an additive approach and hence is not conductive to arithmetic.
Binary Number System (Base 2)
We now come to a different number system – the Binary number system.
21
Prepared By: Fayera.O (MSc)
This binary number system has a base of two, and the symbols used are “0” And “1”.
In this number system, as we move to the left the value of the digit will be two times
greater than its predecessor. Thus the values of the places are: 64 32 16 8 4 2 1
Converting Decimal To Binary
In conversion from decimal to any other number system, the steps to be followed are:
o Divide the decimal number by the base of 2.
o Note the remainder in one column and divide the quotient again with the base.
Repeat this process until the quotient is reduced to a zero.
Example:
The decimal number is 65
2 65 1
2 32 0
2 16 0
2 8 0
2 4 0
2 2 0
1
The binary number of 65 is 1000001
Converting Binary To Decimal
The decimal number of 100001 is
= (1*26)+(0*25)+(0*24)+(0*23)+(0*22)+(0*21)+(1*20)
= (1*64) + (0*32) + (0*16) + (0*8) + (0*4) + (0*2) + (1 * 1)
22
Prepared By: Fayera.O (MSc)
= 64 + 0 + 0 + 0 + 0 + 0 + 1
= 65
The decimal number of 1000001 is 65 Octal
Number System (Base 8)
A commonly used positional system is the Octal System. The octal system has a base of 8.
The values increase from left to right as 1, 8, 64, 512, 4096,….
000 0
001 1
010 2
011 3
100 4
101 5
110 6
111 7
Converting from Binary to Octal
23
Prepared By: Fayera.O (MSc)
The binary number must be divided into groups of three from the octal point – to the right in
case of the fractional portion and to the left in case of the integer portion. Each group can
then be replaced with their octal equivalent.
Example
Binary 101010101010100
101 010 101 010 100
5 2 5 2 4
So, 52524 is the Octal equivalent of binary 101010101010100
Converting Octal to Binary
Each octal digit is replaced with the appropriate ‘triple’ of binary digits.
e.g. 65
6 5
110 101
The binary equivalent of the Octal number 65 is 110101
Hexadecimal Number System (Base 16)
There is another commonly used positional system, hexadecimal system.
The hexadecimal system has a base of 16, so the value increases from left to right as 1, 16,
256, 65536,. . . .
We need to keep a simple table in mind before we attempt any conversion from
hexadecimal or vice-versa.
Converting Decimal To HexaDecimal
In conversion from decimal to any other number system, the steps to be followed are:
o Divide the decimal number by the base of 16.
Example:
The decimal number is 370
16 370 2
16 23 7
16 1 1
0
The hexadecimal number of 370 is 172
Converting Hexadecimal To Decimal
The hexadecimal number 172
= (1*162) + (7*161) + (2*160)
= (1*256) + (7*16) + (2*1)
= 256+112+2
24
Prepared By: Fayera.O (MSc)
= 370
The decimal number of 172 is 370
Converting Binary to Hexadecimal
Each hexadecimal digit is represented by 4 binary digits. Binary
Hexadecimal
0000 0
0001 1
0010 2
0011 3
0100 4
0101 5
0110 6
0111 7
1000 8
1001 9
1010 A
1011 B
1100 C
1101 D
1110 E
1111 F
To convert a binary number to its hexadecimal equivalent we split the quantity into
groups of four onwards, as before.
Each of this group of four is directly converted into their hexadecimal equivalent.
We may add zeros to the left of the number if necessary.
example
Binary 10101011000010
0010 1010 1100 0010
2 A C 2
So, the hexadecimal equivalent of binary 10101011000010 will be 2AC2
Converting Hexadecimal to Binary
The conversion from hexadecimal to binary consists of writing off the binary
25
Prepared By: Fayera.O (MSc)
Equivalent of each hexadecimal digit in groups of four.
e.g.
Hexadecimal 1901A0412C
0001 1001 0000 0001 1010 0000 0100 0001 0010 1100
1 9 0 1 A 0 4 1 2 C
Thus the required binary number can be written as:
1100100000001101000000100000100101100
26
Prepared By: Fayera.O (MSc)
All the arithmetic operations are possible in binary numbering system like addition,
subtraction, multiplication and division All the Arithmetic operations are done in binary
number system are explained as under:
Addition
For binary addition the following rules of binary addition are to be considered:
o 0+0=0
o 0+1=1
o 1+0=1
o 1 + 1 = 0 (carry 1 to the next column to the left)
o 1 + 1 + 1 = 1 (carry 1 to the next column)
e.g. 1 Add two binary numbers 11011 and 111
Carry 1 1 1 1
10111
+111
1 0 0 0 1 0 (Answer)
Subtraction
Though there are other methods of performing subtraction, we will consider the method of
subtraction know as complementary subtraction.
This is a more efficient method of subtraction while using electronic circuits. We will be
following three steps to perform subtraction:
o Find the complement of the number you are subtracting.
o To the complement of the number we obtained in step 1, we add the number we are
subtracting from.
o If there is a carry of 1 add the carry to the result of the addition else re complement
the sum and attach a negative sign.
How do we find the complement of a binary number ? We have to invert all the bits. e.g.
Number Complement
10001101 01110010
00101010 11010101
Consider the following example of subtraction:
e.g. 1
1010101 – 1001100
Step-1. Find the complement of 1001100
0110011
27
Prepared By: Fayera.O (MSc)
Step-2. Add the number you are subtracting from Carry 1 1
10111
1010101
+0110011
0001000
+ 1 (Continue since there is a carry of 1)
0 0 0 1 0 0 1 (Answer)
e.g. 2
101100 – 11100101
Step-1. Find the complement of 11100101
00011010
Step-2. Add the number you are subtracting from Carry 0
111
00101100
+00011010
0 1000110
Step-3. Since there is no carry we are complement the result 10111001
attach a negative sign
- 10111001 (Answer)
Multiplication
Multiplication
Multiplication in binary follows the same rules that are followed in the decimal
system. The table to be remembered is:
0x0=0
0x1=0
1x0=0
1x1=1
e.g.
1010 * 1001
1010
x 1001
28
Prepared By: Fayera.O (MSc)
1010
0000
0000
1010
101101 0
The answer is (1011010)
Division
Table for binary division is given as under:
0/1=1
1/1=1
The steps for binary division are:
o Start from the left of the dividend.
o Perform subtraction in which the divisor is subtracted from the dividend
o If subtraction is possible put a 1 in the quotient and subtract the divisor from the
corresponding digits of the dividend else put a 0 in the quotient
o Bring down the next digit to the right of the remainder.
o Execute step 2 till there are no more digits left to strating down from the dividend.
e.g.
100001 / 110
0101 (quotient)
110 100001
110
1000
110
100
110
1001
110
11 (reminder)
29
Prepared By: Fayera.O (MSc)
Unit Of Information (Codes)
Most computers do not represent characters as pure binary numbers.
They use a coded version of true binary to represent letters and special symbols as well as
decimal numbers.
Coding of characters has been standardized to enable transfer of data between computers.
Codes used are:
- BCD
- ASCII
- EBCDIC
BCD
BCD stands for Binary Coded Decimal.
BCD code is one of the early computer codes.
It is based on the idea of converting each digit of a decimal number into its binary equivalent
rather than converting the entire decimal into binary form.
All decimal digits are represented in BCD by 4 bit.
Each decimal digit is independently converted into a 4 bit binary number & so the conversion
process is very easy.
4 bit BCD can be used to represents only decimal numbers because 4 bits are insufficient to
represent various characters.
By using 4 bit BCD only 16 possible characters are represented.
So the BCD code was extended from 6-bit code and it is possible to represent 64 characters.
ASCII
30
Prepared By: Fayera.O (MSc)