Computer x
Computer x
PARTS OF A COMPUTER
1.Input unit
The input unit brings information from outside into the computer system. The information can be
either instructions or data. These informations are brought into the memory unit. Keyboard, floppy disc
drive, hard disc drive, magnetic tape drive are commonly used in input unit.
2.Central Processing Unit
The CPU consists of Arithmetic and Logic Unit, Control Unit and Memory Unit
Arithmetic and Logic Unit
This part performs the actual arithmetic calculations and logical operations. The arithmetic logic
unit uses the binary system.
Control unit
It is the most important part of a computer. It systematically exercises control over the functioning
of the different part of the system. It also determines the sequence of the instruction carried out.
Memory
It is that part where the computer collects data for processing. There are two types of memory,
primary and secondary. Primary memory is the semiconductor memory which can not be used to store data
and programmes permanently. It is cleared when the process is switched off. Primary memory is a random
access memory (RAM). Secondary memory is used to store data and programmes permanently. This type of
memory is also known as external memory or non-volatile. Floppy disc, hard disc etc are used commonly as
storage device.
3.Output unit
It is the device to which the computer transfers the processed data. Visual display unit, printer ,
floppy disc etc are the commonly used output unit.
HARDWARE
The electronic and mechanical components of a computer constitute its physical structure and are called
the hardware. Hardware components include the processor, main memory unit consisting of Random
Access Memory (RAM) and Read Only Memory (ROM) and secondary memory devices such as hard disc,
floppy disc, CD, DVD etc., mother board and its circuitry, Input/Output (I/O) devices like key board, monitor,
mouse etc
INPUT DEVICES
Input devices are used for inputting data and program to the computer. While considering the
processor, memory devices can be considered as Input - Output (I/O) devices since the processor can read
and write from and to the memory. However in general while referring to I/O devices, only the external
(peripheral devices) devices are considered.
1) KEYBOARD
This is the common input device for all type of computers. This is used to input alphanumeric
characters. Keys can be broadly grouped into the following types:
1. Alpha numeric keys: Alphabets A-Z, Tab, Caps Lock, Backspace and Enter keys.
2. Modifying keys: This includes keys such as Shift, Ctrl and Alt.
3. Numeric keys: Keys for numerals 0-9 fall under this class.
4. Functional keys : The functional keys F1,F2 etc. are programmable keys for specific uses.
5. Curser movement keys: These keys are used for moving curser on different directions on the
monitor screen. They are arrow keys, Home, End, PgUp and PgDn
6. Special purpose keys: The keys coming under this group are Insert, Delete, Esc, Pause, Print screen,
Scroll Lock etc.
The new generation keyboard has special keys for multimedia and Internet applications.
2) POINTING DEVICE
2
Data input also involves entering commands and selecting options. The light pen, the mouse, the
touch screen, joy stick and the digitizer tablet were all developed to make this easy.
Mouse
The mouse is a hand-held device connected to the computer by a small cable. Modern mouse has
got two click buttons and a middle scroll button. Clicking, double clicking and dragging has special functions.
As the mouse is roll around on a flat surface, pointer moves on the screen. When the cursor reaches the
desired location, the user usually pushes a button on the mouse once or twice to signal a menu selection or
a command to the computer.
However, many a time the malfunctioning of the mouse occurs due to the dust on the mouse pad
which prevents the free movement of the roller ball. In order to overcome this drawback, a new variant
called optical mouse is now used. It is basically has an optical device fitted inside the mouse which detects
the mouse movement.
Advantages
Easy to use
Not very expensive
Moves the cursor faster than the arrow keys of the keyboard.
Touch Screen
Limited amounts of data can be entered via a terminal or a microcomputer that has a touch screen
.The user simply touches the screen at the desired locations, marked by labeled boxes, to “point cut” choice
to the computer .
Light pen
This is a pen like device used for drawing directly on the screen. The tip of the pen is sensitive to the
light emitted from the phosphor dots of CRT monitor and hence the computer can locate the position of the
pen on its screen.
Track Ball
Track ball is an input device that is mostly used in notebook or laptop computer, instead of a mouse. This is
a ball which is half inserted and by moving fingers on the ball, the pointer can be moved.
Since the whole device is not moved, a track ball requires less space than a mouse. A track ball comes in
various shapes like a ball, a button, or a square.
Joystick
Joystick is also a pointing device, which is used to move the cursor position on a monitor screen. It is a stick
having a spherical ball at its both lower and upper ends. The lower spherical ball moves in a socket. The
joystick can be moved in all four directions.
The function of the joystick is similar to that of a mouse. It is mainly used in Computer Aided Designing
(CAD) and playing computer games.
Internet.
4) PATTERN RECOGNIZING DEVICES
Pattern recognizing devices are used for recognizing special type symbols or characters written on paper.
The most important ones are:
1. Barcode reader: Bar Code Reader is a device used for reading bar coded data (data in the form of
light and dark lines).
Bar Code Reader scans a bar code image, converts it into an alphanumeric value, which is then fed
to the computer that the bar code reader is connected to.
Very commonly used in super markets, stores and shops for reading the information written on
packets using a combination of bars of different thickness and gap.
2. Magnetic Ink Character Reader (MICR):
MICR input device is generally used in banks as there are large number of cheques to be processed
every day. The bank's code number and cheque number are printed on the cheques with a special
type of ink that contains particles of magnetic material that are machine readable.This reading
process is called Magnetic Ink Character Recognition (MICR). The main advantages of MICR is that
it is fast and less error prone.
3. Optical Mark Reader (OMR) / Optical Character Reader (OCR): OCR is an input device used to read a
printed text. OCR scans the text optically, character by character, converts them into a machine
readable code, and stores the text on the system memory.
OMR is a special type of optical scanner used to recognize the type of mark made by pen or pencil.
It is used where one out of a few alternatives is to be selected and marked.It is specially used for
checking the answer sheets of examinations having multiple choice questions
4. Electronic pen : A digital pen is an input device which captures the handwriting or brush strokes of a
user and converts handwritten analog information created using "pen and paper" into digital data.
This type of pen is usually used in conjunction with a digital notebook
OUTPUT DEVICES
1) MONITORS
The MONITOR is a device to interact with the computer . it gives the visual display. The messages
from the computer are displayed on the screen of the MONITOR. Similarly, what we a type on the keyboard
is displayed on the screen. This helps us to check what we have typed. This is called key echo.
The monitors have the following varities.
Cathode Ray Tube monitors (CRT monitors)
Liquid Cristal Display Unit (LCD display unit)
Electron Luminescent Display (ELD)
2) PRINTERS
Printer is an output device used to make hard copies on paper. Printers can be broadly classified as:
1. Impact printers and 2. Non-impact printers.
1. Impact printers:
Impact printers do the printing by the impact of the head of the printer. Due to this mode of printing,
multiple carbon interleaved copies can be made. It is generally fast, but the letter quality is poor. Example
for impact type printers are Line printer, Dot matrix printer, Daisy wheel printer etc.
2. Non-impact printers:
Non-impact printers do the printing by coating an ink or toner (carbon powder) on paper. Since they
4
do not make any impact on the paper, multiple carbon copies cannot be taken. This type of printers
produces better quality prints. Examples for non-impact type printers are Ink jet printer, laser printer etc.
Characteristics of Impact Printers are the following −
Very low consumable costs
Very noisy
Useful for bulk printing due to low cost
There is physical contact with the paper to produce an image
These printers are of two types −
Character printers
Line printers
Character Printers
Character printers are the printers which print one character at a time.
These are further divided into two types:
Dot Matrix Printer(DMP)
Daisy Wheel
DOT MATRIX PRINTER
This is a type of impact printer. Printing is done by the printer head which have pins in it. These pins
when activated by a solenoid ejects out and strikes on the carbon in front of it. This causes an impression of
a set of dots on the paper. A combination of dots in the matrix form is used to print characters and
pictures. Hence it is called dot matrix printer.
Advantages
1. It is cheaper,
2. Ribbons can be frequently changed when printing clarity fades,
3. Both alphanumeric characters and pictures can be printed,
4. Multiple carbon copies can be made in one stretch,
5. Possible to print different fonts,
6. Suitable for continuous printing jobs
7. Bi-directional printing is possible.
Disadvantages
1. Poor letter quality,
2. Noisy,
3. Slower speed
4. Very poor quality while printing graphs and pictures.
Advantages
More reliable than DMP
Better quality
Fonts of character can be easily changed
Disadvantages
Slower than DMP
Noisy
More expensive than DMP
Line Printers
Line printers are the printers which print one line at a time.
Very expensive
Characters fonts cannot be changed
Chain Printer
In this printer, a chain of character sets is used, hence it is called Chain Printer. A standard character set
may have 48, 64, or 96 characters.
Advantages
Character fonts can easily be changed.
Different languages can be used with the same printer.
Disadvantages
Noisy
Types of Non-impact Printers
Laser Printers
Inkjet Printers
Characteristics of Non-impact Printers
Faster than impact printers
They are not noisy
High quality
Supports many fonts and different character size
3) PLOTTERS
This is an output device used for printing pictures and graphs. Like the head of a dot matrix printer, the
plotter has a plotting pen/pens in the place of printing head. The pen can move in x and y directions. This
is facilitated by a stepper motor. The different types are Drum type, flat bed type and inkjet type plotters.
Advantages
1. Most suitable for engineering drawings,
2. Suitable for preparing 1C layouts,
3. Suitable for drawing graphs, maps etc.,
4. Multicolor printing is possible and
5. Silent in operation.
Disadvantages
1. Initial cost is very high,
2. Recurring cost is also high and
3. Not very much suitable for printing pure text matter.
4) PROJECTORS
Projectors are used for displaying on large screens. These devices can be directly connected to computer
ports using signal cord. The projector serves the purpose of a monitor. A very popular type of projector is
LCD projector.
Advantages
1) Big screen projection is possible,
2) Suitable for displaying where there is a large gathering,
3) Unlike OHPs transparencies need not be made,
4) Ideal for training and demonstration and
5) More portable than CRT monitor.
Disadvantages
1) Clarity depends on the luminescence of the equipment,
2) Highly costlier,
3) A screen preferably white is required,
4) Focusing of the equipment is required,
5) The heat generated is very high and the bulb has shorter life and
6) Higher time is required for switching on and switching off.
frequently used by the CPU. The parts of data and programs are transferred from the disk to cache memory
by the operating system, from where the CPU can access them.
Advantages
Cache memory is faster than main (primary) memory.
It consumes less access time as compared to main memory.
It stores the program that can be executed within a short period of time.
It stores data for temporary use.
Disadvantages
Cache memory has limited capacity.
It is very expensive.
Expensive
High power consumption
Dynamic RAM (DRAM)
Dynamic RAM (DRAM) is a type of semiconductor memory that uses capacitors to store the bits. The
charging and discharging of the capacitor represents 0 and 1 i.e. the two possible values that can be stored
in a bit.
The DRAM is a volatile memory i.e. the data in memory is lost when power is switched off. DRAM
must be continually refreshed in order to maintain the data. This is done by placing the memory on a
refresh circuit that rewrites the data several hundred times per second. DRAM is used for most system
memory as it is cheap and small.
Characteristics of Dynamic RAM
Short data lifetime
Needs to be refreshed continuously
Slower as compared to SRAM
Used as RAM
Smaller in size
Less expensive
Less power consumption
Versions of DRAM
Asynchronous DRAM
This was the first type of DRAM in use but was gradually replaced by synchronous DRAM. This was
called asynchronous because the memory access was not synchronized with the system clock.
Synchronous DRAM
This DRAM replaced the asynchronous RAM and is used in most computer systems today. In
synchronous DRAM, the clock is synchronised with the memory interface. All the signals are processed on
the rising edge of the clock.
Graphics DRAM
There are many graphics related tasks that can be accomplished with both synchronous and
asynchronous DRAM. Some of the DRAM used for these tasks are Video DRAM, Window DRAM, Multibank
DRAM etc.
Difference between DRAM and SRAM
SRAM is formed using flip flops and DRAM using capacitors.
The data in DRAM is refreshed periodically to store it correctly. This is not necessary for SRAM.
SRAM is normally only used in Cache memory while DRAM is used in main memory.
Static RAM is much more faster and expensive as compared to Dynamic RAM.
Since SRAM is used as Cache memory, its size is 1MB to 16MB. On the other hand, dynamic memory
is larger as it is used as main memory.
SRAM is usually present on processors or between processors and main memory. DRAM is present
on the motherboard.
ROM (Read Only Memory)
ROM is read only memory. The computer can only read the data and information stored in it. We
cannot edit or rewrite or erase the contents of this type of memory. The content in a ROM chip is
permanent or hard cored. These contents are retained even after the computer is switched off.
The instructions to the machine for its basic operation during switching ON is coded in this memory.
ROM is used when dedicated tasks have to be performed separately.
PROM and EPROM are the different types of ROM.
PROM (Programmable Read Only Memory)
PROM is read-only memory that can be modified only once by a user. The user buys a blank PROM
and enters the desired contents using a PROM program. Inside the PROM chip, there are small fuses which
are burnt open during programming. It can be programmed only once and is not erasable. Contents of
PROM remains unaltered even though the power supply is switched off. PROM is used in testing
equipments, games, hardware, electronic toys, watches etc.
gate region. The charge is retained for more than 10 years because the charge has no leakage path. For
erasing this charge, ultra-violet light is passed through a quartz crystal window (lid). This exposure to ultra-
violet light dissipates the charge. During normal use, the quartz lid is sealed with a sticker Such memory is
used in special purpose computers.
RAM ROM
1. Reading and writing are possible 1. Read only memory
2. Volatile in nature. 2. Non volatile
3. Data transfer takes place to and from the RAM. 3. Data on the ROM can only be read
4. Stores operating system, application programs, 4. Stores BIOS for POST and booting
input data, output data etc. operations.
5. Capacity of the RAM affects system
performance. 5. Memory of ROM is not related to system
6. Extendable and upgradeable by adding chips for performance.
enhancing Memory 6. Up gradation is not generally required.
7. DRAM and SRAM are the common types
7. The different types of ROM aft PROM,
EPROM, EEPROM etc.
It is the common secondary memory device fixed inside the computer and connected to the mother
board. All data and information required for future use, are stored in the hard disk.
Hard disk is made up of a set of thin and hard aluminium platters, placed close to one another on a
spindle. The head reads platters by moving in an arc. The whole arrangement is consealed in a dust and
vermin proof metal casing. Data is stored by magnetizing or demagnetizing the magnetic coating. A
magnetic reader arm is used to read data from and write data to the disks.
2) OPTICAL DEVICES
The commonly used optical devices are Compact Disc (CD) and Digital Versatile Disc (DVD).
These devices make use of laser technology for reading and writing on an optical medium coated on a
plastic disc.
COMPACT DISCS (CD)
CDs have a continuous spiral track. For reading a laser beam has to move from outer track to inner
track or vice versa. But data fetching is to be done at uniform rate. For this, the CD has to rotate at different
speed as the track length increases with increase in radius. While writing, lands and pits (crusts and troughs)
are made on the surface of the optical medium using a laser beam. The land (flat area) represents "1" and
the pit indicates "0". The reflectance from the land is much more than the pit. This difference in the
reflectance is sensed by the photo diode and corresponding signals are send to the computer.
Advantages of compact disc
1. Lower cost,
2. Higher memory capacity than floppy disc,
3. Resistance to atmospheric agencies like heat, water, dust etc.,
4. Easiness in porting,
5. Bulk data transfer capability
6. Light in weight
Disadvantages
1. Chances for breaking when roughly handled,
2. Costly special devices are required for reading and writing and
3. They cannot be used for writing as frequently as floppy disks.
There are three types of CDs −
CD-ROM (Compact Disk – Read Only Memory) − The data on these CDs are recorded by the
manufacturer. Proprietary Software, audio or video are released on CD-ROMs.
CD-R (Compact Disk – Recordable) − Data can be wri en by the user once on the CD-R. It cannot be
deleted or modified later.
CD-RW (Compact Disk – Rewritable) − Data can be wri en and deleted on these op cal disks again
and again.
DIGITAL VERSATILE DISC (DVD)
DVD also has spiral tracks like that of CD but at a closer interval and have more pits per track. This
necessitates a narrow laser beam for reading and writing. Hence their data storage density is very high. Due
to their large memory capacity they are used for multimedia applications.
DVD are optical devices that can store 15 times the data held by CDs. They are usually used to store
rich multimedia files that need high storage capacity. DVDs also come in three varieties – read only,
recordable and rewritable
floating-gate transistors to store data. Floating-gate transistor is a transistor used for amplifying or switching
electronic signals.
Portable devices such as digital cameras, smartphones, and MP3 players normally use flash
memory.
Virtual Memory
Virtual Memory is a technique to increase the main memory capacity. It uses data swap technology and hard
disk area is used as virtual memory.
Difference between Cache Memory and Virtual Memory.
Cache Memory Virtual Memory
Cache memory increase CPU access speed. Virtual memory increase main memory capacity.
Cache memory is a memory unit and is very fast to Virtual memory is a technique and involes hard
access. disk and is slower to access.
CPU and related hardwares manages cache Operating System manages virtual memory.
memory.
Cache memory is small in size. Size is much larger than cache memory.
Cache memory keeps recently used data. Virtual memory keeps the programs which are not
getting accomodated in main memory.
Data is present till power supply is present. Data remains even after power supply is not present.
Data Transfer is easy in Volatile Memory. Data Transfer is difficult in Non-Volatile Memory.
CPU can access data stored on Volatile memory. Data to be copied from Non-Volatile memory to
Volatile memory so that CPU can access its data.
Volatile memory less storage capacity. Non-Volatile memory like HDD has very high storage
capacity.
Volatile memory such as RAM is high impact on Non-volatile memory has no impact on system's
system's performance. performance.
Volatile memory is costly per unit size. Non-volatile memory is cheap per unit size.
Program
Instructions are required for working of the computer. An executable statement is called an instruction. For
doing a task a set of instructions will be required. A set of all such instructions required for doing a complete
job or task is called a program.
SOFTWARE
A program is a sequence of instructions written to solve a particular problem. Software is a set of
programs, which is designed to perform a well-defined function
Softwares can be broadly classified into two:
i. System software and ii. Application software.
13
System software
The system software is a collection of programs designed to operate, control, and extend the processing
capabilities of the computer. System software is generally prepared by the computer manufacturers.
These are written in low-level languages. System software serves as the interface between the hardware
and the end users.
Some examples of system software are Operating System, Compilers, Interpreter, Assemblers, etc.
COMPUTER LANGUAGES
Instructions are required for working of the computer. Computers can receive instructions only in
the form of certain special languages. These are called computer languages. All computer programs are
written in computer languages.
In the hierarchy computer languages are classified as follows:
1. Machine language,
2. Assembly language and
3. High level language.
Low-Level Languages
Low-level computer languages are either machine codes or are very close them. A computer cannot
understand instructions given to it in high-level languages or in English. It can only understand and execute
instructions given in the form of machine language i.e. binary. There are two types of low-level languages:
1. Machine Language
2. Assembly Language
Machine language
This is a basic language which any computer can understand. Machine language is coded using the
binary digits 0 and 1. Instructions of various meanings are coded using different combinations of 0 and 1.
Computer directly understands a program written in the machine language. So machine language program
does not require any translator to convert from one form to another
The machine language code varies from machine to machine depending upon its hardware
architecture.
Assembly language
In order to reduce the complexity of machine language certain mnemonics or symbolic codes are
used in assembly language to give single instructions such as HOLD, STORE, MOVE etc. This is another low-
level in which operation codes and operands are given in the form of alphanumeric symbols instead of 0’s
and l’s.
Assembly languages are nowadays used for processor programming only. The assembly languages
need to be translated into the machine language before execution. For this a translating program called
assembler, is used.
Advantages
1. Assembly language is easier to understand and use as compared to machine language
2. It is easy to locate and correct errors
3. It is less cumbersome to learn and write
4. It requires lesser memory space
Disadvantages
1. Since assembly language needs a translation into machine language it is slower than machine
language,
2. It is machine dependent and
3. Not suitable for writing general application programs.
Advantages
1. High-level languages are user-friendly
2. They are similar to English and use English vocabulary and well-known symbols
3. They are very easy to learn, write and debug
4. Due to their machine independence, they can be easily ported from one machine to the other.
Disadvantages
1. They need a translation before execution,
2. They are slower than machine language during execution
3. They need more memory.
COMPARISON OF MACHINE LANGUAGE, ASSEMBLY LANGUAGE AND HIGH LEVEL LANGUAGE
7. Separate code for each type of Separate code for each type of Universal code irrespective of
hardware hardware hardware and operating system
8. Unique in nature of the code Unique in nature of the code Different high level languages are
available with varying suitability.
10. faster in execution Slower than machine language Slower than machine language
and assembly language
Assembler
This is used for translating assembly language programs into machine language. The assembly
language to machine language translation is one-to-one. That is, for each mnemonic there is a
corresponding machine code.
Compiler and Interpreter
Compilers and interpreters are used for translating a high level language into machine language. But
their difference is in the mode of translation. Compilers translate the entire program to be executed into
machine language before running the program. During the process of compilation the syntax errors will be
detected and listed after compilation. These errors need to be corrected. Only after successful compilation
the program could be run.
The interpreter will translate the program written in a high level language to machine language line
by line. If any syntax error is detected the translation of the program will stop and could be further compiled
only after the correction. After reading a line which is free from syntax error, it is immediately translated
into machine language and gets executed.
Operating System
The Operating System is a program with the following features −
It is a program that acts as an interface between the software and the computer hardware.
It is an integrated set of specialised programs used to manage overall resources and operations of
the computer.
It is a specialized software that controls and monitors the execution of all other programs that
reside in the computer, including application programs and other system software.