Unit-1 (1) - 1
Unit-1 (1) - 1
The word computer comes from the word “compute” which means ‘to calculate’.
A computer may be defined as an electronic device, which can store, manipulate
data and provide result according to instructions given by the user.
A computer system includes the computer along with software and hardware that
are necessary to operate a computer. The actual machinery, the physical parts of
a computer system refer to as Computer hardware; the instruction (a program)
that tells the computer what to do or how to do, that is called Computer
software (often called just software).
High Speed
Computer is a very fast device.
The computer has units of speed in microsecond, nanosecond, and even the
picosecond.
Accuracy
In addition to being very fast, computers are very accurate.
Computers perform all jobs with 100% accuracy provided that the input is
correct.
Storage Capability
Memory is a very important characteristic of computers.
A computer has much more storage capacity than human beings.
It can store large amount of data.
It can store any type of data such as images, videos, text, audio, etc.
Diligence
Unlike human beings, a computer is free from monotony, tiredness, and lack of
concentration.
It can perform repeated tasks with the same speed and accuracy.
Versatility
A computer is a very versatile machine.
This machine can be used to solve the problems related to various fields.
At one instance, it may be solving a complex scientific problem and the very
next moment it may be playing a card game.
Reliability
A computer is a reliable machine.
Disadvantages of Computers
Following are certain disadvantages of computers.
No I.Q.
● A computer is a machine that has no intelligence to perform any task.
● Each instruction has to be given to the computer.
● A computer cannot take any decision on its own.
Dependency
● It functions as per the user’s instruction, thus it is fully dependent on
humans.
Environment
● The operating environment of the computer should be dust free and
suitable.
No Feeling
● Computers have no feelings or emotions.
● It cannot make judgment based on feeling, taste, experience, and
knowledge unlike humans.
Application
Business
Banking
Today, banking is almost totally dependent on computers. Banks provide the
following facilities −
● Online accounting facility, which includes checking current balance, making
deposits and overdrafts, checking interest charges, shares, and trustee
records.
● ATM machines which are completely automated are making it even easier
for customers to deal with banks.
Insurance
Insurance companies are keeping all records up-to-date with the help of
computers. Insurance companies, finance houses, and stock broking firms are
widely using computers for their concerns.
Insurance companies are maintaining a database of all clients with information
showing −
Marketing
In marketing, uses of the computer are following –
● Advertising − With computers, advertising professionals create art and
graphics, write and revise copy, and print and disseminate ads with the
goal of selling more products.
● Home Shopping − Home shopping has been made possible through the
use of computerized catalogues that provide access to product information
and permit direct entry of orders to be filled by the customers.
Healthcare
Computers have become an important part in hospitals, labs, and dispensaries.
They are being used in hospitals to keep the record of patients and medicines. It
is also used in scanning and diagnosing different diseases. ECG, EEG, ultrasounds
and CT scans, etc. are also done by computerized machines.
Following are some major fields of health care in which computers are used.
● Diagnostic System − Computers are used to collect data and identify the
cause of illness.
● Lab-diagnostic System − All tests can be done and the reports are
prepared by computer.
● Patient Monitoring System − These are used to check the patient's
signs for abnormality such as in Cardiac Arrest, ECG, etc.
● Pharma Information System − Computer is used to check drug labels,
expiry dates, harmful side effects, etc.
● Surgery − Nowadays, computers are also used in performing surgery.
Engineering Design
Computers are widely used for engineering purpose.
One of the major areas is CAD (Computer Aided Design) that provides creation
and modification of images. Some of the fields are −
Military
Computers are largely used in defence. Modern tanks, missiles, weapons, etc.
Military also employs computerized control systems. Some military areas where
a computer has been used are −
● Missile Control
● Military Communication
● Military Operation and Planning
● Smart Weapons
Communication
Communication is a way to convey a message, an idea, a picture, or speech that
is received and understood clearly and correctly by the person for whom it is
meant. Some main areas in this category are −
● E-mail
● Chatting
● Usenet
● FTP
● Telnet
● Video-conferencing
Government
Computers play an important role in government services. Some major fields in
this category are −
● Budgets
● Sales tax department
● Income tax department
● Computation of male/female ratio
● Computerization of voters lists
● Computerization of PAN card
● Weather forecasting
● ALU (Arithmetic Logic Unit):- ALU is a logical unit of CPU. This unit is
responsible for the processing of the data and instructions. When the CU
encounters instructions which are related to performing logical or arithmetic
operation on data, it passes that instruction to ALU. It carries out arithmetic
operations like additions, multiplication, divisions etc. The comparison
operations that arithmetic logical unit performs are comparison like less
than, greater than, less than or equal to, greater than or equal to, not equal
to etc. Logical operations includes OR, AND, NOT etc. The data on which
ALU performs operations are fetched from memory unit. After the
processing completes, the information or result is sent back to the storage
or an output device.
Control Unit:- Control unit is another part of CPU. It supervises the overall
operations of other units of the computer. The CU acts as the central
nervous system and controls the processing of data according to the
instruction given to the computer. It fetches instructions and data from the
memory unit and executes the instructions one at a time using time signal.
Control unit also determines the sequences of program and instruction’s
● Storage Unit:- The Memory unit of a computer system is what provides the
data that CPU needs for processing. There is a primary and secondary
memory in the computer system.
● Primary storage: - Primary memory holds the data so that CPU can process
it. The data that CPU process should be pulled to primary memory (RAM)
from secondary storage device.
● Secondary Storage:-
The Storage unit is also a part of a block diagram of computer. Storage unit
or secondary storage unit is a non-volatile device that holds programs, files,
documents. It provides facilities to store a large volume of data. CPU
executes the data stored on storage devices indirectly. The data are
transferred to RAM first and after an execution, the data can be again
written to Storage unit.
Output Unit
The output unit consists of devices with the help of which we get the information
from the computer. This unit is a link between the computer and the users.
Output devices translate the computer's output into a form understandable by
the users.
Types of computer:-
Analog Computers
Analog computers are used to process analog data. Analog data is of continuous
nature and which is not discrete or separate. Such type of data includes
temperature, pressure, speed weight, voltage, depth etc. These quantities are
continuous and having an infinite variety of values.
Analog computers are the first computers being developed and provided the
basis for the development of the modern digital computers. Analog computers
are widely used for certain specialized engineering and scientific applications, for
calculation and measurement of analog quantities. They are frequently used to
control process such as those found in oil refinery where flow and temperature
measurements are important. They are used for example in paper making and in
chemical industry. Analog computers do not require any storage capability
because they measure and compare quantities in a single operation. Output
from an analog computer is generally in the form of readings on a series of dial
(Speedometer of a car) or a graph on strip chart.
Digital Computers A Digital Computer, as its name implies, works with digits
to represent numerals, letters or other special symbols. Digital Computers
operate on inputs which are ON-OFF type and its output is also in the form of
ON-OFF signal. Normally, an ON is represented by a 1 and an OFF is represented
by a 0. So we can say that digital computers process information which is based
on the presence or the absence of an electrical charge or we prefer to say a
binary 1 or 0.
The results of digital computers are more accurate than the results of analog
computers. Analog computers are faster than digital. Analog computers lack
memory whereas digital computers store information. We can say that digital
computers count and analog computers measures.
Hybrid Computers
A hybrid is a combination of digital and analog computers. It combines the best
features of both types of computers. It has the speed of analog computer and
the memory and accuracy of digital computer. Hybrid computers are used mainly
in specialized applications where both kinds of data need to be processed.
Therefore, they help the user, to process both continuous and discrete data. For
example a petrol pump contains a processor that converts fuel flow
measurements into quantity and price values. In hospital Intensive Care Unit
(ICU), an analog device is used which measures patient’s blood pressure and
temperature etc, which are then converted and displayed in the form of digits.
Hybrid computers for example are used for scientific calculations, in defence and
radar systems.
Supercomputer
Supercomputers are one of the fastest computers currently available.
Supercomputers are very expensive and are employed for specialized
applications that require immense amount of mathematical calculations (number
crunching).
For example, weather forecasting, scientific simulations, (animated) graphics,
fluid dynamic calculations, nuclear energy research, electronic design, and
analysis of geological data (e.g. in petrochemical prospecting)
Purpose
General-Purpose Computers
Most computers in use today are General-Purpose computers — those built for
a great variety of processing jobs. Simply by using a general purpose computer
and different software, various tasks can be accomplished, including writing and
editing (word processing), manipulating facts in a data base, tracking
manufacturing inventory, making scientific calculations, or even controlling
organization’s security system, electricity consumption, and building temperature.
General purpose computers are designed to perform a wide variety of functions
and operations. You will probably use this type of computer reading this article
and I am using a general purpose computer typing this article in some software
(MS Word). A general purpose computer is able to perform a wide variety of
operations because it can store and execute different programs in its internal
storage.
Special-Purpose Computers
File System :- it is a method for storing and organizing computer files and the
data they contain to make it easy to find and access them. File systems may use
a data storage device such as a hard disk or CD-ROM .we have different types of
file for different purpose e.g.:-image file, audio file, video file with different file
formats.
Cache Memory
Cache memory is a very high speed semiconductor memory which can speed up
the CPU. It acts as a buffer between the CPU and the main memory. It is used to
hold those parts of data and program which are most 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
The advantages of cache memory are as follows −
Standard diameter of these disks is 14 inches and they rotate with speeds varying
from 4200 rpm (rotations per minute) for personal computers to 15000 rpm for
servers. 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. A
typical modern HDD has capacity in terabytes (TB).
DVD Drive
DVD stands for Digital Video Display. 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.
Pen Drive
Pen drive is a portable memory device that uses solid state memory rather than
magnetic fields or lasers to record data. It uses a technology similar to RAM,
except that it is non-volatile. It is also called USB drive, key drive or flash
memory.
Blu Ray Disk
Blu Ray Disk (BD) is an optical storage media used to store high definition (HD)
video and other multimedia filed. BD uses shorter wavelength laser as compared
to CD/DVD. This enables writing arm to focus more tightly on the disk and hence
pack in more data. BDs can store up to 128 GB data.
INPUT-OUTPUT DEVICES:-
Following are some of the important input devices which are used in a computer
● Keyboard
● Mouse
● Joy Stick
● Light pen
● Track Ball
● Scanner
● Graphic Tablet
● Microphone
● Magnetic Ink Card Reader(MICR)
● Optical Character Reader(OCR)
● Bar Code Reader
● Optical Mark Reader(OMR)
Keyboard
Keyboard is the most common and very popular input device which helps to input
data to the computer. The layout of the keyboard is like that of traditional
typewriter, although there are some additional keys provided for performing
additional functions.
Keyboards are of two sizes 84 keys or 101/102 keys, but now keyboards with
104 keys or 108 keys are also available for Windows and Internet.
The keys on the keyboard are as follows −
Typing Keys
1
These keys include the letter keys (A-Z) and digit keys (09) which
generally give the same layout as that of typewriters.
Numeric Keypad
Function Keys
3 The twelve function keys are present on the keyboard which are
arranged in a row at the top of the keyboard. Each function key has a
unique meaning and is used for some specific purpose.
4 Control keys
These keys provide cursor and screen control. It includes four directional
arrow keys. Control keys also include Home, End, Insert, Delete, Page
Up, Page Down, Control(Ctrl), Alternate(Alt), Escape(Esc).
Mouse
Mouse is the most popular pointing device. It is a very famous cursor-control
device having a small palm size box with a round ball at its base, which senses
the movement of the mouse and sends corresponding signals to the CPU when
the mouse buttons are pressed.
Generally, it has two buttons called the left and the right button and a wheel is
present between the buttons. A mouse can be used to control the position of the
cursor on the screen, but it cannot be used to enter text into the computer.
Advantages
● Easy to use
● Not very expensive
● Moves the cursor faster than the arrow keys of the keyboard.
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.
Light Pen
Light pen is a pointing device similar to a pen. It is used to select a displayed
menu item or draw pictures on the monitor screen. It consists of a photocell and
an optical system placed in a small tube.
When the tip of a light pen is moved over the monitor screen and the pen button
is pressed, its photocell sensing element detects the screen location and sends
the corresponding signal to the CPU.
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.
Scanner
Scanner is an input device, which works more like a photocopy machine. It is
used when some information is available on paper and it is to be transferred to
the hard disk of the computer for further manipulation.
Scanner captures images from the source which are then converted into a digital
form that can be stored on the disk. These images can be edited before they are
printed.
Digitizer
Digitizer is an input device which converts analog information into digital form.
Digitizer can convert a signal from the television or camera into a series of
numbers that could be stored in a computer. They can be used by the computer
to create a picture of whatever the camera had been pointed at.
Digitizer is also known as Tablet or Graphics Tablet as it converts graphics and
pictorial data into binary inputs. A graphic tablet as digitizer is used for fine works
of drawing and image manipulation applications.
Microphone
Microphone is an input device to input sound that is then stored in a digital form.
OCR scans the text optically, character by character, converts them into a
machine readable code, and stores the text on the system memory .
OUTPUT DEVICES
Following are some of the important output devices used in a computer.
● Monitors
● Graphic Plotter
● Printer
● Speaker
● Headset
Monitors
Monitors, commonly called as Visual Display Unit (VDU), are the main output
device of a computer. It forms images from tiny dots, called pixels that are
arranged in a rectangular form. The sharpness of the image depends upon the
number of pixels.
There are two kinds of viewing screen used for monitors.
● Large in Size
● High power consumption
Flat-Panel Display Monitor
The flat-panel display refers to a class of video devices that have reduced volume,
weight and power requirement in comparison to the CRT. You can hang them on
walls or wear them on your wrists. Current uses of flat-panel displays include
calculators, video games, monitors, laptop computer, and graphics display.
The flat-panel display is divided into two categories −
● Emissive Displays − Emissive displays are devices that convert electrical
energy into light. For example, plasma panel and LED (Light-Emitting Diodes).
● Non-Emissive Displays − Non-emissive displays use optical effects to
convert sunlight or light from some other source into graphics patterns. For
example, LCD (Liquid-Crystal Device).
Printers
Printer is an output device, which is used to print information on paper.
There are two types of printers −
● Impact Printers
● Non-Impact Printers
Impact Printers
Impact printers print the characters by striking them on the ribbon, which is then
pressed on the paper.
Characteristics of Impact Printers are the following −
● 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:
● Inexpensive
● Widely Used
● Other language characters can be printed
Disadvantages
● Slow Speed
● Poor Quality
Daisy Wheel
Head is lying on a wheel and pins corresponding to characters are like petals of
Daisy (flower) which is why it is called Daisy Wheel Printer. These printers are
generally used for word-processing in offices that require a few letters to be sent
here and there with very nice quality.
Advantages
Line Printers
Line printers are the printers which print one line at a time.
● Drum Printer
● Chain Printer
Drum Printer
This printer is like a drum in shape hence it is called drum printer. The surface of
the drum is divided into a number of tracks. Total tracks are equal to the size of
the paper, i.e. for a paper width of 132 characters, drum will have 132 tracks. A
Character set is embossed on the track. Different character sets available in the
market are 48 character set, 64 and 96 characters set. One rotation of drum
prints one line. Drum printers are fast in speed and can print 300 to 2000 lines
per minute.
Advantages
Very high speed
Disadvantages
● 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
● Noisy
Non-impact Printers
Non-impact printers print the characters without using the ribbon. These printers
print a complete page at a time, thus they are also called as Page Printers.
These printers are of two types −
● Laser Printers
● Inkjet Printers
Characteristics of Non-impact Printers
Laser Printers
These are non-impact page printers. They use laser lights to produce the dots
needed to form the characters to be printed on a page.
Advantages
● Expensive
● Cannot be used to produce multiple copies of a document in a single printing
Inkjet Printers
Inkjet printers are non-impact character printers based on a relatively new
technology. They print characters by spraying small drops of ink onto paper.
Inkjet printers produce high quality output with presentable features .
They make less noise because no hammering is done and these have many styles
of printing modes available. Colour printing is also possible. Some models of
Inkjet printers can produce multiple copies of printing also.
Advantages
PLOTTER
The plotter is a computer printer for printing vector graphics. Plotters draw
pictures on paper using a pen. In the past, plotters were used in applications such
as computer-aided design, as they were able to produce line drawings much faster
and of a higher quality than contemporary conventional printers, and small
desktop plotters were often used for business graphics. Although they retained a
niche for producing very large drawings for many years, plotters have now largely
been replaced by wide-format conventional printers.
PROGRAMMING LANGUAGE
A programming language is a formal language, which comprises a set of
instructions that produce various kinds of output. Programming languages are
used in computer programming to implement algorithms.
Types of Programming Languages
There are two types of programming languages, which can be categorized into the
following ways:
1. Low level language
a) Machine language (1GL)
b) Assembly language (2GL)
2. High level language
a) Procedural-Oriented language (3GL)
b) Problem-Oriented language (4GL)
c) Natural language (5GL)
MACHINE LANGUAGE:-
Machine language is the lowest and most elementary level of programming
language and was the first type of programming language to be developed.
Machine language is basically the only language that a computer can understand
and it is usually written in hex. In fact, a manufacturer designs a computer to
obey just one language, its machine code, which is represented inside the
computer by a string of binary digits (bits) 0 and 1. The symbol 0 stands for the
absence of an electric pulse 1 stands for the presence of an electric pulse.
Advantages Disadvantages Machine language makes fast and efficient use of the
computer. All operation codes have to be remembered It requires no translator to
translate the code. It is directly understood by the computer. All memory
addresses have to be remembered. It is hard to amend or find errors in a program
written in the machine language.
ASSEMBLY LANGUAGE:-
Assembly language was developed to overcome some of the many
inconveniences of machine language. This is another low-level but very important
language in which operation codes and operands are given in the form of
alphanumeric symbols instead of 0’s and l’s. These alphanumeric symbols are
known as mnemonic codes and can combine in a maximum of five-letter
combinations e.g. ADD for addition, SUB for subtraction, START, LABEL etc.
Because of this feature, assembly language is also known as ‘Symbolic
Programming Language. The instructions of the assembly language are converted
to machine codes by a language translator and then they are executed by the
computer.
Advantages Disadvantages Assembly language is easier to understand and use
as compared to machine language. Like machine language, it is also machine
dependent/specific. It is easy to locate and correct errors. Since it is machine
dependent, the programmer also needs to understand the hardware. It is easily
modified.