Professional Documents
Culture Documents
Unit 1
Unit 1
Unit 1
INTRODUCTORY CONCEPTS
1.1 INTRODUCTION TO COMPUTER
The word 'computer' comes from the word 'compute' which means ‘to calculate’. Computer can
perform calculations with accuracy, beyond human reach.
In basic terms, computer is an electronic device that processes data, convert it into information
which is useful to people. Any computer regardless of its type, is controlled by programmed
instructions, which give the machine a purpose and tell it what to do. A computer system is a
collection of hardware and software components designed to provide an effective tool for
computation.
A computer is an electronic machine, operating under the control of instructions stored in its own
memory that can accept data, manipulate the data according to specified rules, produce results, and
store the results for future use.
A computer is also called a data processor because it can store, process, and retrieve data
whenever desired.
The activity of processing data using a computer is called data processing.
Data is raw material used as input and information is processed data obtained as output of data
processing
Data
Capture Data
Manipulate Data
Output Data
Information
Figure 1.1 how computer converts data into information
To process data into information, a computer uses hardware and software. Hardware is the
electric, electronic, and mechanical equipment that makes up a computer. Software is the series
of instructions that tells the hardware how to perform tasks.
Hardware components include Input devices that allow a user to enter data and instructions into
a computer. Commonly used input devices are the keyboard, mouse, microphone, scanner, digital
camera, and PC camera.
Hardware components also include output device that can convey information to a user.
Commonly used output devices are a printer, a monitor and speakers.
The system unit is a box-like case made from metal or plastic that protects the internal electronic
components of the computer from damage. The system unit contains the central processing unit,
memory etc.
The central processing unit (CPU) is often called as the brain of the computer because it is
designed to process data and perform calculation. The number of instructions carried out by the
CPU in one second is used to calculate the speed of that computer. That speed of the computer is
calculated in Hertz. Nowadays the speed of the computer is in gigahertz (GHz), which is equal
to 1,000,000 times Hertz. Every type of computer whether it is small or large must have a
processor/CPU within it. A normal desktop computer can execute an instruction in time less
than 1/millionth of a second whereas a supercomputer (which is fastest of all the computers) can
execute an instruction in less than 1/billionth of a second.
Memory is a holding place for data and instructions. A storage device records and retrieves data
to and from a storage medium.
1.1.1 Block Diagram of Computer and Operations Performed by Computer (figure 1.1)
Storage Unit
Secondary
Storage
Input Output
Unit Unit
Primary
Storage
Program Information
and Data (Result)
Control
Unit
Indicates flow of
Instructions and Data
Arithmetic
Logic Unit
Indicates Control
by Control Unit
Central Processing Unit (CPU)
ALU
Note: Before we study Control Unit, we shall know that what is an Instruction and what is a
Program.
An Instruction is a statement written in some language to tell computer, “What to do”.
A Program is a set of Instructions. (Group of Instructions). Set of Programs is known as Software.
5. Control Unit:
This unit checks the correctness of “sequence of operations”. It fetches the instructions from
memory unit, interpret them, and ensures correct execution of the program. It also controls the
input/output devices and directs the overall functioning of the other units of the computer.
ALU does not know “what should be done with the data”, likewise output unit does not know
“when the result should be displayed”. This is CU which controls all these. CU maintains the
sequence and direct the operations of the entire system. CU doesn’t perform any actual processing
on data, yet it is known as a central nervous system of the computer. It manages and co-ordinates
the entire system. In Short, Various functions of CU are: -
1. Coordinating and controlling various parts of computer system such as main memory,
arithmetic logical unit and peripheral devices.
2. Controlling transfer of data to, from and within the working storage.
3. Retrieving and decoding program instructions from the internal storage, in their correct
sequences, interpret these instructions and tell the computer to execute these instructions.
4. Connecting the required circuits to enable the arithmetic unit to process the data in storage
or as specified by the program.
5. Control the activities of all units of computer by using appropriate control signals.
6. Store results in the CPU memory.
7. Determine the location of the next instruction to be retrieved.
Central Processing Unit (CPU) is composed of above two components i.e. ALU and CU
ALU CU CPU
1.2.1 Hardware
All physical contents of computer are hardware. This include all electrical and mechanical devices
attached to the computer to serve the purpose of input, process, store and output operations.
Primary Hardware is the CPU and its other units i.e. circuits and IC's. Secondary Hardware is
the memory or storage area of computer.
Various Hardware Components which resides inside the computer are:
Central Processing Unit (CPU): It is the heart of computer. (Figure 1.1)
Arithmetic Logical Unit: Discussed in Section 1.1
Control Unit: - Discussed in Section 1.1
Keyboard: This is an input device which is used to input the data into the computer. (Will be
discussed in Section 1.9)
Mouse: This is also an input device which is used to input the data into the computer. (Will
be discussed in Section 1.9)
Monitor: This is an output device which is used to show the results to user. There are varieties
of monitors available in the market such as CRT, LCD, TFT etc. (Will be discussed in Section
1.9)
Switched Mode Power Supply (SMPS): This is an electronic device which is used to manage
the power supply of computer.
Hard Disk (HDD): This is used to store massive amount of data. There are many types of
HDD available in the market, i.e. SATA, PATA, External HDD, and Internal HDD.
Printer: This is an output device which is used to show results on the paper. There are various
types of printers available in the market like inkjet, Laser printer, dot matrix printer etc. (Will
be discussed in Section 1.9)
Universal Serial Bus (USB): This is used to connect the external devices to the computer.
Ethernet Cable: This is used to connect computer with another computer or with internet.
CD/DVD ROM: A Secondary Storage Unit, used to store data for Backup.
Speaker: An output device used to listen voice, songs, etc.
Mike: An Input device used to record sound.
Random Access Memory (RAM): This is called primary memory or main memory. Data
written in this memory is lost when the system is switched off.
Read Only Memory (ROM): This is called primary memory. Data is written in this memory
by the vendor (Manufacturer) of the computer.
Pen Drive: A popular storage device these days used to carry data on move.
Blue Ray Disk: This is same as CD/DVD but with more space to store data on it.
Scanner: An input device used to scan the document to keep its soft copy. (Will be discussed
in Section 1.9)
LCD: It is known as Liquid Crystal Display. It is a type of monitor. (Will be discussed in
Section 1.9)
Motherboard: This is a combination of electronic circuits. This board contain various ports
(holes) where rest of the components like RAM, CPU and HDD etc. fits in.
Sound Card: A sound card is an expansion component that is also referred to as a soundboard,
audio output device, or audio card. It offers audio input and output capabilities in computers,
which can be heard with the help of speakers or headphones. Although it is not necessary for
the computer to have a sound card, every machine includes it as either built into the
motherboard (onboard) or in an expansion slot.
Graphics Card: Graphics card is a hardware which is used to increase the video memory of a
computer, and make its display quality more high-definition. It makes the computer more
powerful and gives it the capacity to do more high-level works. The quality of the image
depends on the quality of the graphics card. It is very much important for gaming and video
editing on a PC.
Types of Software
Various types of software are:
A. System Software
The programs directly related to the computer hardware and perform tasks associated with
controlling and utilizing computer hardware are known as system software. System software does
not solve a specific problem for the user rather it helps to solve a problem. This is special type of
software which is responsible for handling the whole computer system. System software consists
of the programs that control the operations of a computer and its devices.
System softwares are given below:
i) Operating System
Without operating system a computer cannot do anything useful. A user cannot communicate
directly with the computer hardware, so the operating system acts as an intermediary between user
of a computer and the computer hardware.
Operating systems are the most important system softwares. Operating system (e.g.: windows,
android) is a set of programs that control and supervises the hardware of a computer and provides
services to application softwares (e.g.: MS Word, Music Player App installed on Android),
programmers and users of computer.
The primary goal of an operating system is to make the computer convenient to use. The
secondary goal is to use the computer efficiently.
Some important tasks of an operating system are managing the resources of the computer such
as Central Processing Unit (CPU), memory, disk drives, printer and running user programs.
Every type of computer has its own operating system. Operating system for mainframe and other
large computers are very complex since they must keep track of several programs from several
users, all running in the same time frame.
Following are some of the popular operating systems used in personal computers: DOS, Windows,
UNIX, Lanus, Solaris, etc.
Types of Operating Systems
B. Application Softwares
An application is a job or task which a user wants to accomplish through computer. Application
Software is a special type of software used to solve a problem. Popular application softwares
include word processing software (used to write documents), spreadsheet software (used to
perform operations on tabular data), database software (used to store and organise database), and
presentation software (used to prepare presentations).
1. 5 CATEGORIES/TYPES OF COMPUTERS
Computers can be categorized on the basis of various factors.
A. Based on the operational principle, computers can be classified as analog, digital and hybrid.
B. Depending on their processing powers, size and area of use, they have been classified into
various types.
C. Depending on Performance and Capacity, these can be Super Computer, Mini-Computer,
Micro- Computer, Mainframe-Computer.
Figure 1.8
The main features of the first generation are −
Vacuum tube technology
Unreliable
Supported machine language only
Very costly
Generated a lot of heat
Slow input and output devices
Huge size
Need of AC
Non-portable
Consumed a lot of electricity
Some computers of this generation were −
ENIAC
EDVAC
UNIVAC
IBM-701
IBM-650
Figure 1.9
The main features of second generation are −
Use of transistors
Reliable in comparison to first generation computers
Smaller size as compared to first generation computers
Generated less heat as compared to first generation computers
Consumed less electricity as compared to first generation computers
Faster than first generation computers
Still very costly
AC required
Supported machine and assembly languages
Some computers of this generation were −
IBM 1620
IBM 7094
CDC 1604
CDC 3600
UNIVAC 1108
Figure 1.10
The main features of third generation are −
IC used
More reliable in comparison to previous two generations
Smaller size
Generated less heat
Faster
Lesser maintenance
Costly
AC required
Consumed lesser electricity
Supported high-level language
Some computers of this generation were −
IBM-360 series
Honeywell-6000 series
PDP (Personal Data Processor)
IBM-370/168
TDC-316
Figure 1.11
The main features of fourth generation are −
1. VLSI technology used
2. Very cheap
3. Portable and reliable
4. Use of PCs
5. Very small size
6. Pipeline processing
7. No AC required
8. Concept of internet was introduced
9. Great developments in the fields of networks
10. Computers became easily available
Some computers of this generation were −
1. DEC 10
2. STAR 1000
3. PDP 11
4. CRAY-1(Super Computer)
5. CRAY-X-MP(Super Computer)
CPU
Direct Registers Temporary
Storage
Access
Areas
to
CPU Cache
(Level 1)
(Level 2)
(Level 3)
3. Main memory:
The main memory is reasonably fast, with access speed around 100 nanoseconds. It also offers
larger capacity at a lower cost. Typical main memory is in the order of 10 GB. It can be
increased provided the operating system can handle it. This memory is made up of RAM as
well as ROM. Main memory is arguably the most used memory.
When discussing computer algorithms such as quick sort, balanced binary sorted trees, or fast
Fourier transform, one typically assumes that the algorithm operates on data stored in the main
memory.
Random Access Memory (RAM)
RAM (Random Access Memory) is a part of computer’s Main Memory which is directly
accessible by CPU. RAM is used to Read and Write data into it which is accessed by CPU
randomly. RAM is volatile in nature, it means if the power goes off, the stored information is
lost. RAM is used to store the data that is currently processed by the CPU. Most of the programs
and data that are modifiable are stored in RAM.
Integrated RAM chips are available in two form:
1. SRAM (Static RAM)
2. DRAM (Dynamic RAM)
The SRAM memories consist of circuits capable of retaining the stored information as long as
the power is applied. That means this type of memory requires constant power. SRAM
memories are used to build Cache Memory. DRAM stores the binary information in the form
of electric charges applied to capacitors. The stored information on the capacitors tends to lose
over a period of time and thus the capacitors must be periodically recharged to retain their
usage. The main memory is generally made up of DRAM chips.
Difference between SRAM and DRAM:
Below table lists some of the differences between SRAM and DRAM:
Sr. SRAM DRAM
No.
1 SRAM has lower access time, so it is DRAM has higher access time, so it is
faster compared to DRAM slower than SRAM
2 SRAM is costlier than DRAM. DRAM costs less compared to SRAM.
3 SRAM requires constant power supply, DRAM offers reduced power
which means this type of memory consumption, due to the face that the
consumes more power. information is stored in the capacitor.
4 Due to complex internal circuitry, less Due to small internal circuitry, large
storage capacity is available compared storage capacity is available compared to
to the same physical size of DRAM the same physical size of SRAM memory
memory chip. chip.
4. Secondary storage:
Secondary storage refers to nonvolatile data storage units that are external to the computer system.
Hard drives and solid state drives are examples of secondary storage. They offer very large storage
capacity in the order of terabytes at very low cost. Therefore, database servers typically have an
array (collection) of secondary storage devices with data stored as distributed and redundantly
(when same data is stored at multiple locations) across these devices.
Despite the continuous improvements in access speed of hard drives, secondary storage devices
are several times slower than main memory. Modern hard drives have access speed in the order of
few milliseconds. Hard disk is a secondary device where data is kept permanently. Hard disk is
not directly accessed by the CPU, hence it is slower. There are various types of secondary storage
devices available.
For secondary storage we use Hard Disk now a days.
Let us have brief about, “how data is stored or accessed in Hard Drive?” The hard drive has a
local data cache. The hard drive will be instructed to fetch or save data from a physical location of
a certain size. The hard drive controller will acknowledge the instruction right away, and will
take some time to populate the disk cache with the requested data block, and then, at a later time,
raise an interrupt to notify the interested party that the data access is complete. This model of
interrupt based data transfer is asynchronous. The data transfer speed (from memory to hard drive
or vice versa) depends on contiguousness of the accessed physical locations on the disk and the
size of the accessed data per request.
The mechanical designs of the hard drive leads to sequential access. A hard drive consists of an
array of rotating disks. Each disk has a head, driven by a mechanical arm which performs the
bitwise read and write. If a sequential data block is accessed, all bits can be read or written during
a single rotation. However, random access of the hard drive data may require multiple rotations
for the head to reach all the regions on the disk. Seek time is the average time it takes the head to
travel to the region of interest on disk. Typically, the seek time is a few milliseconds. Data transfer
rate is the steady speed at which the head can be read or written on the disk.
Typical access time: Millions of clock cycles.
Another secondary storage medium is Magnetic tape.
Magnetic tape memory is usually used for backing up large data. When the system needs to access
a tape, it is first mounted to access the data. When the data is accessed, it is then un-mounted. The
memory access time is slower in magnetic tape and it usually takes few minutes to access a tape.
Input Results of
Input CPU Output processing
data
Devices and Devices in human
from
Memory acceptable
external
world form
1. 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 −
Sr. No Keys & Description
Typing Keys:-These keys include the letter keys (A-Z) and digit keys (0-9) which
1
generally give the same layout as that of typewriters.
Function Keys:-The twelve function keys are present on the keyboard which are
3 arranged in a row at the top of the keyboard. Each function key has a unique
meaning and is used for some specific purpose.
Control Keys:-These keys provide cursor and screen control. They include four
4 directional arrow keys. Control keys also include Home, End, Insert, Delete, Page
Up, Page Down, Control(Ctrl), Alternate(Alt), Escape(Esc).
Special Purpose Keys:-Keyboard also contain some special purpose keys such as
5
Enter, Shift, Caps Lock, Num Lock, Space bar, Tab, and Print Screen.
2. 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/laser-light-beam 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.
3. 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.
4. 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.
5. 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.
6. 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.
Two Common Types of Image Scanners
7. Digitizer
Input device used for converting (digitizing) pictures, maps and drawings into digital form for
storage in computers. It is commonly used in the area of Computer Aided Design (CAD) by
architects and engineers to design cars, buildings medical devices, robots, mechanical parts, etc. It
is also used in the area of Geographical Information System (GIS) for digitizing maps available in
paper form.
8. Microphone
Microphone is an input device to input sound that is then stored in a digital form.
The microphone is used for various applications such as adding sound to a multimedia presentation
or for mixing music.
It consists of numerals 0 to 9 and four special characters. MICR is not adopted by other industries
because it supports only 14 symbols.
Bar Code Reader scans a bar code image, converts it into an alphanumeric value, which is then fed
to the computer to which the bar code reader is connected to.
It is specially used for checking the answer sheets of examinations having multiple choice
questions.
C.Output Devices
Following are some of the important output devices used in a computer.
1. Monitors
2. Printer
3. Speakers and Head Sets
4. Plotter
5. Multimedia Projectors
6. Voice response systems
1. Monitors
Monitors, commonly called as Visual Display Unit (VDU), are the main output devices of a
computer. They form images from tiny dots, called pixels that are arranged in rectangular form.
The sharpness of the image depends upon the number of pixels available on the screen called as
resolution. There are two kinds of viewing screen used as monitors.
i) Cathode-Ray Tube (CRT)
ii) Flat-Panel Display
2. Printers
Printer is an output device, which is used to print information on paper.
There are two types of printers −
i) Impact Printers
ii) Non-Impact Printers
i) 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 −
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
a) Character Printers
Character printers are the printers which print one character at a time.
These are further divided into two types:
I. Dot Matrix Printer(DMP)
II. Daisy Wheel
Advantages
Inexpensive
Widely Used
Other language characters can be printed
Disadvantages
Slow Speed
Poor Quality
b) Line Printers
Line printers are the printers which print one line at a time.
I. 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
a) 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
Very high speed
Very high quality output
Good graphics quality
Supports many fonts and different character size
Disadvantages
Expensive
Cannot be used to produce multiple copies of a document in a single printing
b) 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. Color printing is also possible. Some models of Inkjet printers can produce multiple
copies of printing also.
Advantages
High quality printing
More reliable
Disadvantages
Expensive as the cost per page is high
Slow as compared to laser printer
Speakers and headsets produce sound output. We can listen recorded voices, sounds or music with
the help of speaker or headset. Speaker produces sound output with the help of sound card.
4. Plotter
A plotter is an output device used to produce quality-image graphics in a variety of colors. Plotters
are used to print large maps, architectural drawings, graphs and charts. Plotters are used to draw
different designs of buildings or internal structure of machines. Plotters offer the fastest way to
efficiently produce very large drawings or color high-resolution graphics. Engineers and
Architects use plotters.
5. Multimedia Projector.
Multimedia projector is used to produce computer output on a big screen. These are used in
meeting rooms or in classrooms of educational institutes. Since the output produced by multimedia
projector is displayed on a large screen, it can be viewed by a large number of people in a hall,
meeting/conference room or a class room. Mostly teachers use data projectors in class rooms for
delivering lectures (a use of audio visual aids technology).