Basics of Computer Science2
Basics of Computer Science2
CHAPTER 4
Computer Communication
INTRODUCTION
Communication is the basic requirement of mankind. If people are nearby they
communicate verbally. If they are far away, they adopt some means for communication.
For example, in ancient days people used to light fire and blow smoke or beat drums for
giving signals of their well being to their friends and relatives, who lived at some distance
from them. When man became bit civilized, he moved to more distantly located places,
places where smoke signals or drum sounds could not reach. So he started sending
messages through pigeons or human-runners.
Later when distances between people became large, services like Post and
Telecommunication came into existence for communicating with others. Both the services
exist even today. No doubt these services are quite useful but they have their own
disadvantages. Postal service is quite slow. For example, a letter sent from India to USA
may take 15 to 20 days. By the time it reaches its destination, complete scenario changes.
In addition to this, letters get lost in transit. On the other hand, telecommunication services
are fast but are limited to voice chat only. Articles like documents, letters etc. cannot be
transferred through this service. In addition to this, it is a costly service. In spite of so
many disadvantages, Post and Telecommunication services enjoyed their popularity for
many decades, as there was no substitute for these services.
With the advent of computer networking technology and popularity of Internet, computer
communication emerged as substitute for both the services. It works as base line for many
new services, which have come into existence recently. Electronic Data Interchange (EDI),
E-Commerce, Electronic Fund Transfer etc. are the latest services, which have completely
changed the working methodologies of many organizations and have brought revolution in
the society. All these services make use of computer communication. All important aspects
related to computer communication are described in this chapter.
INTRODUCTION TO NETWORK
When two or more identities of similar type, work in coordination with each other,
72 Basics Of Computer Science
performing similar types of tasks, they form a network. For example, when sales executives
of an organization work together to sell the product of the company, they form company's
sales network. Similarly when two or more computers are connected together to work in
coordination with each other they form a computer network.
To form a computer network and establish coordination among the computers of the
network, certain hardware and software elements need to be present in the network. For
proper communication among them, certain rules of communication, called protocol, need
to be established. Computer-3 Computer-4
Resource sharing and
instant data communication
are the immediate results of
a computer networking. Magnetic
Advantages of these two Tape Printer
simple-looking factors are
so many that in short span
of time numerous computer
networks have come into
existence and millions of
applications have been Plotter Computer-1 Disk Computer-2
developed around them.
Figure 4.1
What computer network is,
in what form its computers are arranged in the network, what protocols are used to
establish communication among them, and what type of services are available on computer
networks, are the issues, which are described below.
Optical Disk
Line Printer
Purchase R&D
Department Department
Magnetic
Tape Drive
Colour Laser Printer
Figure 4.2
Figure 4.2 clearly shows that departments have purchased costly items such as optical disk, color
printer etc. as per their own internal requirements. But their use is not limited to their departments
only. Users of other departments can also access them over the network. For example, Production
department does not have a color laser printer but can print its colored pictures on R&D’s color
laser printer by accessing it through network. Similarly R&D department can access optical disk
of Account’s department for either storing or retrieving its files.
network the computers. For example, a computer based at Delhi railway reservation cell
may have reservation related data of all the trains that originate from Delhi.
Similarly Mumbai railway reservation cell may have reservation related data for all the
trains that originate from Mumbai.
Railway reservation software may use this information to book the seats for the passengers
locally i.e. people based at Delhi can book their seats in the trains that originate from
Delhi. Similarly Mumbai people may be able to book their seats in the trains originating
from Mumbai. But if they wish to provide return reservation facility (i.e. person sitting at
Delhi is able to book the seats in the trains originating from Mumbai) then both the
computers have to be networked. Concept of remote data access is clearly shown in figure
4.3 and 4.4.
n
tio
Re va
qu ser g
re tin
in est ve ina
tra : G : Gi orig lhi
fro ins ive t
es ins De
m or re equ tra rom
M igin se n f y
Re um a rv R i orr
s
re po ba ting atio e :S n
s o
se ns
r
i n on ati le
po vati e: S e sp serv ssib
s s on or
ibl no ry Delhi Mumbai R re po
t
e t no
n Not Not Re
tio qu
e rva Networked Networked in est:
g
res atin tra G
G ive igin i fro ins ive
r h m or res
st: s o el Re M ig in e r
ue train m D n sp um a v a
q o tio ba ting tio
Re in fr rva on n
s e se i
Re :R
s e: ne do e
ne se
on do rv
sp at
Re ion
Figure 4.3
Chapter 4 – Computer Communication 75
n
tio
Re va
qu ser g
re ti n
in est ve ina
tra : G : Gi orig lhi
fro ins ive t
es ins De
Re m or re equ tra rom on
sp M igin se R i n f a ti
on um a rv rv
se ba ting atio es
e
:R i n :R e
Do e se n
ne ser on do
va
Delhi Mumbai sp
tio
n Re
n Re
ati
o Networked qu
serv g in est:
re tin tra G
ve ina fro ins ive
: Gi orig lhi m or res
t Re
es ins De n sp M ig in e r
qu tra rom tio on
um a v a
Re in f rva ba ting tio
se se i n
e :R
:R do e
nse one ne se
po d rv
s at
Re io
n
Figure 4.4
APPLICATIONS OF NETWORK
As you know, data communication and resource sharing are the two prime outcomes of
computer networking. Taking advantages of these two outcomes computer network serves
as base line for many applications. Many products and services that have come into
existence in recent past make use of computer network. Few famous applications of
computer network are described below.
76 Basics Of Computer Science
E-Mail
Electronic mail is one of the most popular applications of computer network. Using this
application, letters, document, reports etc. are exchanged between people, over network.
The biggest advantage of e-mail is that the sent articles reach their destination within few
seconds. In addition to this, they do not get lost in transit.
be in the same premisis or different cities or countries), share official information through
computer network. Managers pass instructions to their subordinates through computer
network. All required data or reports are transacted through computer network.
Network Games
These days, many computer network games are available, in which distantly located
network users play a common game. Imagine a car race game, in which persons located in
Chennai, Mumbai and Delhi participate in a car race and try to compete with each other to
win the race.
BENEFITS OF NETWORKING
By inter connecting the computers in the form of network; you draw lot of advantages,
which otherwise, in central or decentralized type of setup, are not possible. A list of
important advantages of networking is given below.
1. By networking the computers, you can access the information, available at distant
locations within no time, which otherwise would have not been available so quickly
and effortlessly.
By having fast access to the data/information you can react fast to the on-going
problems and take fast decisions and save time, money and energy.
2. You can share costly devices and thus cut upon cost and utilize the resources in
much better and effective way.
3. You can keep the work going, even if one of the computers is not working. If one
computer is down, you can use another computer till the time fault is corrected.
Thus by networking the system you are able to utilize the time and resources in
very effective way.
4. You can design much better applications, which provide great help and services to
its users. For example, only due to networking it has been made possible to book
the air or railway tickets for any destination from any city present on the network.
5. You are able to communicate with other users in much better way. For example,
even if the user is not available on-line, you can send him mail, which gets stored in
his mail box. When he logs on and starts using computer, he is informed of new
mail arrivals so if he wishes he can look into those letters.
6. An on-line advice can be sought from the experts for solving the current crisis, for
which you do not have ready-made solution with you.
78 Basics Of Computer Science
TYPES OF NETWORKS
Computer networks are broadly classified into two categories:
1. Local Area Networks (LAN).
2. Wide Area Networks (WAN).
Other networks are variations of these two networks. A detailed, description of both types
of networks is given below.
bit error rate of 1 in 100,000 bits transmitted). A rough sketch of Wide Area Network is illustrated
figure 4.6.
Delhi Office Bombay Office
VARIATIONS OF LAN AND
Telephone
WAN Network
NETWORK TOPOLOGIES
Topology is basically the physical arrangement of computers in the network. There are
various topologies, suggested for computer networks. Each topology has its own
advantages and disadvantages. One topology suits well for one set of given conditions
while the other doesn't. Some of the topologies undergo network expansion easily while
other may require complete overhauling. A complete overview of most commonly used
topologies is given below.
80 Basics Of Computer Science
Bus Topology
In bus topology, all the
computers and devices of the
network are connected to Terminator
common medium (cable). T Connector
Both the ends of the medium Bus
(Communication Medium)
are terminated by a special
device called terminates.
Computers are connected to
the cable, using other device Figure 4.8
called T connector. Block
diagram of bus topology is illustrated in figure 4.8.
Functioning
Any computer that wants to communicate with other computer includes its address in the
message and transmits it on the medium. Every computer receives the message. If any
computer finds its own address in the message, it picks up the message else it rejects it. In
this way, the communication takes place between the computers of the network.
Advantages
Following are the advantages of bus topology:
1. It requires shortest length of wire to connect the computers of the network in
comparison to the wire required in other topologies.
2. Adding and removing the computers in the network is easy. It does not affect other
computers of the network.
3. Even if one computer of the network becomes down, it doesn't affect the
functioning of other computers. The network keeps on functioning.
Disadvantages
Following are the disadvantages of bus topology:
1. Terminators often malfunction, due to loose connections.
2. A failure in the cable makes the entire network down.
Ring Topology
In ring topology computers of the network are connected to
each other in circular fashion. The first computer is connected
to the second computer, second is connected to the third and so
on and the last computer is connected to the first computer, so
Repeater
as to complete the circle. Computers of the network are
connected to the cable, using a special device called repeater. A
computer network, in ring topology is illustrated in figure 4.9.
Figure 4.9
Chapter 4 – Computer Communication 81
Functioning
In this type of topology, a bit pattern, called token, keeps on moving from one computer to
another in circular fashion. Only that computer, which has the token, is allowed to transmit
the message.
Transmitting computer introduces destination computer's address in the message and
pushes it on the medium. The message moves forward in one direction, on the medium.
When a computer receives the message it checks the destination address. If the destination
address matches with its own address it picks up the message else it rejects it.
After transmitting the message on the medium, computer passes the token to next computer
to communicate.
Advantages
Practically there are no highlights of this topology but there are lots of disadvantages.
Disadvantages
Following are the disadvantages of ring topology:
1. Malfunctioning in any of the repeater or cable makes the entire network down.
2. Addition and removal of computers in/from the network is a difficult task.
3. Long cables are required to connect the computers.
4. This type of network cannot be expanded beyond a limit. Not many computers can
be added in this arrangement.
Star Topology
In star topology, computers of the network are
connected together through a special device called hub.
Each computer is connected to the hub. Thus the link of
one computer is established with other computers via
hub. A computer network in star topology is illustrated
in figure 4.10.
Functioning
Hub in this topology works as intelligent switch. When
a computer wish to transmit a message it introduces
destination computer's address in it and pushes the message, Figure 4.10
on the link, that joints it to the hub.
On receiving the message, hub checks the address and routes it to the computer, to which
the message has been sent. In this way, proper communication between the two computers
of the network gets established.
Advantages
1. Hub provides mechanism for connecting many computers to the network. So
82 Basics Of Computer Science
expansion of the network becomes very easy, if a slot is vacant in the hub. If all the
hub slots are occupied then another hub can be added into the network, so as to
make provision for many more new slots. Thus network growth doesn't have any
limitation in this type of topology.
2. If the link between the hub and a computer is down then it doesn't effect the
functioning of other computers of the network. Rest part of the network works fine.
4. All the hubs generally have a status light for each link. Glowing light of a link
indicates that the link is working fine. Thus identification of malfunctioning link, in
this topology, becomes very easy.
Mesh Topology
In mesh topology each computer of the network
remains connected with other computers through
dedicated medium (wire). A computer network, in
mesh topology, is illustrated in figure 4.11.
Functioning
Since direct path to every computer exists in this
topology hence computer sends the message directly Figure 4.11
to the required computer.
When the link to a destination gets broken, computer sends the message to another
computer introducing the address of the destination computer. On receiving the message,
receiving computer directs it to the computer, to which the message belongs.
Advantages
Following are the advantages of mesh topology:
1. Due to direct connection between the computers, no switching is required. This
makes the network very fast.
2. If one link gets broken, the data is routed through other links. Thus network seldom
remains down.
Disadvantages
Following are the disadvantages of Mesh topology:
1. It doesn't suit well for large number of computers.
2. Very large length of cable is required to connect the computers, so the cost turns
out to be very high.
3. This topology is almost obsolete now.
NETWORKING BASICS
Basic model of network communication is illustrated in figure 4.12. It shows that network
comprises of following essential components:
Chapter 4 – Computer Communication 83
2. Receiver Message
3. Medium Medium
4. Message Computer-1 Computer-2
5. Protocol Figure 4.12
A brief description of each component is given below.
Sender
The computer, which sends the message (or starts the communication) is called sender. For
example, if computer-1 sends message to computer-2 then computer-1 will be termed as sender.
Receiver
That computer of network, which receives the message is called receiver. For example, if
computer-2 receives the message sent by computer-1 then computer-2 will be termed as receiver.
Medium
Medium is basically that substance through which message propagates and reaches the
destination (receiver). For all practical purposes, medium could be of following two types:
1. Wired medium.
2. Non-wired medium.
Depending upon various factors, such as distance, type of message, price etc.
communication medium may vary from network to network. A brief introduction of both
types of medium is given below.
Wired Medium
When a cable is used for physically connecting the computers of the network the medium is
said to be wired medium. Following types of cables are generally used for connecting the
computers of the network.
Coaxial Cable
Coaxial cable is basically a conducting wire surrounded by insulation material, like hard
84 Basics Of Computer Science
plastic. Conducting sheath surrounds this assembly and the whole assembly is then encased
within insulating plastic. It is used as high frequency transmission line to carry high
frequency or broadband signals. Noise is reduced to bare minimum in such type of cables.
The cable that comes to our home from local cable TV network is an example of coaxial
cable. It supports data transmission up to 10 Mbps. A coaxial cable is illustrated in figure 4.13(b).
Message
What travels from sender to receiver is called message. As an essential rule of
communication, message should reach the destination in its original form. No deformation
or manipulation should take place in the middle.
Chapter 4 – Computer Communication 85
Protocols
A protocol is basically a set of standards that are decided between the sender and receiver
for error free communication between them. A message, though received in its original
form, is of no use, if receiver cannot understand the message.
For example, if the sender sends an encrypted message to the receiver and the receiver
doesn't know that the message is in encrypted form, then in this case all the manipulations
that are done at receiver's end, may lead to errors. Thus before communication starts, rules
must be set that all the communication will be done in encrypted form and decryption has
to be performed before the message is manipulated. It is quite obvious that if the rules of
communication are set properly there will not be any problem in interpretating the message.
To understand the need and concept of protocol, consider a the smallest form of computer
network, in which two computers say Com-1 and Com-2 are connected together, with the
objective of communicating with each other. Say their addresses are 100.105.110.115 and
200.220.240.250 respectively. Say the computer Com-1 wants to send the message "MY
ACCOUNT. NUMBER is 12376" to Com-2. For all practical purposes and security reasons
they may decide the following rules for sending and receiving the messages.
When Comp-2 will receive this message, it will perform all those steps, which have been
agreed upon for receiving the message.
Note that this simple agreement between two computers (protocol) ensures following points:
1. Small messages are transmitted over the communications medium so that it doesn't
get heavily loaded and other computers also get time to send their messages.
2. Message reaches the right destination.
3. If the message doesn't reach destination in original form, it is traceable and
recovery is made by requesting the source computer to send the message again.
This example clearly illustrates that protocols are necessary in computer networks. They
not only establish communication rules but they also promote efficient use of
communication components. Numerous protocols are available for computer
communication network. Some of them are described later in this chapter.
MODES OF COMPUTING
Basic objective of any computer network is to share the resources. To meet this objective,
computers are arranged in any one of the topologies mentioned earlier. Once they are
connected, they can be configured to play different roles, within the network. The way they
are configured would decide the approach that they would follow for communication and
resource sharing. Following are few commonly used approaches that are used for resource
sharing.
1. Peer to peer model
2. Client server model.
Printer
Computer C
(Node-3)
Figure 4.15
network for identification. IP addresses are difficult for network users to remember. So
network resources are also allocated a unique alphanumeric name called domain name. For
example, computer having IP address 128.105.200.010 may also be allotted a domain name
say grace.com, which is easy to remember. It is just like student of a college, who is
identified by his roll number and name too. While working on computer network, most of
the users refer computers by their domain name. Domain Name System is a network service
that translates domain names into corresponding IP address. The server, on which this
service operates, is called DNS server.
Telnet
Telnet is a network service, using which other computers of the network can be accessed.
For example, computer A, B, C and D may be networked together and you may be working
on computer A. Using telnet you can access computer B. When you execute commands on
computer A, they get executed on computer B. To start a telnet session on your computer,
you should have a valid login name and password for the computer, which you wish to
access.
Rlogin
rlogin is a network service very similar to telnet. It is basically a UNIX command that
allows an authorized user to login to another UNIX machine, present in the network. Once
you login to other computer, you can perform all those activities, for which permissions
have been granted to you.
Rsh
rsh is other network service, which allows to run a single command on some other machine
of the network. For example, computer A, B, C, D may form a network. In this network,
using rsh service, a command may be given on computer A to copy a file from computer B
to computer C. Note that while making use of rsh service, you do not login into remote
computer but perform the task on it
X Window System
X Window system is a major network service, which provides standard toolkit and
protocols for building graphical user interface on UNIX, UNIX like operating systems and
open VMS.
Web Service
World Wide Web Consortium defines Web Service as software system designed to support
interoperable machine-to-machine interaction over network. It makes use of Hyper Text
Transfer Protocol (HTTP) to make multimedia applications come alive over network.
Details of HTTP are described later in this chapter.
90 Basics Of Computer Science
Finger
Finger is a network service that tells you the name and other information related to given e-
mail account. It also tells you if he is currently logged on to network or not.
To finger another network user, you need to have the finger program on your computer.
The server at the other end must be setup to handle finger requests. A "Plan" file should be
created for the user that can be fingered. Most of the colleges, universities and large
corporations, who have their own computer network, install finger service in their network
setup.
PING
Ping is network service that sends series of data packets to a specific computer over
network, in order to generate a response from that computer. The other computer responds
with acknowledgement that it has received the packets.
Ping service was created to confirm if the given computer (with given IP address) exists
and is connected to network.
SAMBA
You know that network is a collection of interconnected computers. It is not necessary that
all the computers should be of same type and should make use of same operating system.
Truly speaking, network environment could be totally heterogeneous in terms of hardware
and software both. But at the same time, it is preferred that while working on network all
factors should be taken care by the network services, internally and user should be provided
heterogeneous working environment, while shifting his work from one computer to another.
For example, Windows user should be able to print his file on UNIX server, in the same
way as he does on Windows system.
Samba is a network service that works between UNIX and Windows computer to provide
same working environment to Windows users on UNIX server. Samba runs on UNIX
platform, but speaks to Windows clients like a native. It allows a UNIX system to move into
a Windows "Network Neighborhood" without causing a stir. Thus Windows user can
comfortably access file and print services, without knowing or caring that those services
are being offered by a UNIX host.
Each layer of OSI model is basically a specific issue. Related to each issue, it defines
certain rules and thus sets parameter for network connectivity. OSI reference model is
illustrated in figure 4.16. Sender Receiver
Refer figure 4.16 and note that OSI reference
Application Application
model is a seven-layer mode. Each layer uses
the functions of the layer below and exports Presentation Presentation
the functionality to the layer, above. A brief
Session Session
introduction of each layer is given below.
Transport Transport
Physical Layer
Network Network
First layer of OSI model is called physical
layer. It defines all the electrical and physical Datalink Datalink
specifications for the devices that are part of
Physical Physical
computer network. This includes pin
specifications, voltage details, cable Figure 4.16
specifications etc. Specifications related to
hubs, repeaters, network adapters etc are also specified in physical layer.
Data Link Layer
Second layer of OSI reference model is called data link layer. This layer deals with the issues related
to data transfers. It takes care of speed mismatches that may occur while data gets transmitted in the
physical layer. It detects and possibly corrects errors that may occur in the physical layer.
Network Layer
Third layer of OSI reference model is called network layer. It mainly deals with routing
functions and congestion control.
A
To understand the concepts consider figure 4.17 that shows that there are
various paths, which a message can follow, if it has to travel from A to D.
B C
It can either follow A->D or A->B->D or A->C->D path. Network layer
decides, in which circumstance, which path should be followed. It takes D
care that no path should be heavily loaded.
Figure 4.17
Transport Layer
Fourth layer of OSI model is called transport layer. It mainly deal with flow control of data
and provides error detection and correction mechanism.
To understand the concept, consider figure 4.17. D may receive data from A, B and C
together for three applications, say Ap1, Ap2 and Ap3. Transport layer keeps track of each
data stream and ensures that they maintain their individuality and do not get mixed up with
each other.
Session Layer
Fifth layer of OSI model is called session layer. It deals with the individual sessions that
are established between the computers for communication. To understand the concept, refer
92 Basics Of Computer Science
figure 4.17. Say A wants to be in dialog with D then it will open a session for
communication and when communication finishes it will gracefully terminate the session.
Session layer will perform these functions.
Presentation Layer
Sixth layer of OSI reference model is called presentation layer. This layer mainly deals
with the presentation aspects of the data. For example, the data may have to be presented in
compressed form or coded form or EBCDIC data may have to be converted into ACII or
vice versa. All such type of data presentation activities are performed by presentation layer.
Applications Layer
Seventh layer of OSI reference model is called applications layer. It mainly deals with
making the information available to the user. For example, files residing on CUI based
system (say a computer with Unix operating system) have to be viewed on GUI system,
which is networked with it. It is quite obvious that these files have to appear as icons here
on GUI based system. Now the question is, how this becomes possible? Well, application
layer takes care of such issues. Telnet, FTP (File Transfer Protocol), Simple Mail Transfer
Protocol (SMTP) etc. are few protocols that are related to applications layer.
DATA TRANSMISSION
If we talk about ancient times, data was transmitted through pigeons or runners in the form
of letters or instructions. In case of telephones, the voice is transmitted over telephone
wires in the form of electronic signals. In case of TV transmission, programmers are
transmitted through air in the form of very high frequency signals.
In case of computer network, data is transmitted through medium (that connects the
computers of the network) in the form of signal.
In short, it can be said that in any kind of data transmission, now, data is transmitted in the
form of signals (i.e. waves). Since signals could be of many types hence data transmission
is also of many types. Different forms of data transmission are described below.
Analog Transmission
To understand the concept of analog transmission, let's first understand the nature of analog
signal.
An analog signal is a continuous signal, whose amplitude, phase, or some other property
Chapter 4 – Computer Communication 93
Digital Transmission
To understand the concept of digital transmission, let's first understand the nature of digital
signal.
Digital signal is basically string of electronic pulses. It comprises of only two values,
generally referred to as high and low. In computer, entire data is represented in the form of
digital signals. High signal value denotes 1 and low value denotes 0. A digital signal is
shown in figure 4.19
5 Volt 1
Volt
0 Volt Time
t
Figure 4.19
94 Basics Of Computer Science
Using these pulses we can represent the number, 11001 as shown in figure 4.20.
Figure 4.20
Data transmission, in which data is transmitted over the medium, in the form of digital
signal, is called digital transmission.
For example, in a local area network, in which two computers are placed side by side,
digital transmission takes place. Many modern TV channels transmit their TV programs in
digital form.
DAMPING
When signals are transmitted over transmission line, they start getting weak and their shape
starts getting deformed as shown in figure 4.21.
Figure 4.21
This process of signals getting deformed is called damping. Note that a damped signal that
reaches the destination will result into corrupt data (digital signal) /noise (analog signal).
At what distance the damping will start, will depend upon the power of the signal. Since
digital signals are low powered signals hence they get damped much earlier than analog
signals do. But it is a fact that both types of signals start dying after certain distance. So if
a proper communication has to take place between the computers of the network then
damping has to be stopped and the signal should reach the destination in its original form.
There are many devices, which perform this task. Modem is one of them. Details of
modem are described below.
Modem
Modem is a device that enables computer to transmit data over telephone or cable lines.
Chapter 4 – Computer Communication 95
Note that computer internally stores the data in digital form, whereas data over telephone lines
is transmitted in the form of analog signals. A modem at sender's end converts digital form into
analog form and the modem at receiver's end performs opposite function i.e. converts analog
form into digital form. The functioning of modem is illustrated in figure 4.22.
Digital Analog Digital
Signal Signal Signal
Figure 4.22
DATA TRANSFORMATION
Data world within the computer comprises of digital signals. Computer receives, stores and
generates data in digital form. In external world data exists in analog form. Thus for the
interaction of two worlds, data need to be converted from one form to another i.e. from
analog form to digital form and from digital form to analog form. These processes are
done using following devices:
1. Analog to digital converters: As the name indicates, these devices convert analog
signals into equivalent digital signals.
2. Digital to analog converters: These devices convert digital signals into equivalent
analog signals.
3. The value obtained at any time for analog signal is matched with the nearest digital
value available and stored in digital form.
Details of these activities are explained below.
Sampling
In sampling, amplitude of the analog signal is observed at regular time intervals. Sampling
process is shown in figure 4.23
Signal Time
Figure 4.23(a)
Chapter 4 – Computer Communication 97
Sampled Output
Figure 4.23(b)
From figure 4.23, it is clear that sampling period must be smaller than the time period of
the analog signal.
Quantization
Now the amplitude value observed for the analog signal at any point of time through sampling
process has to be converted into equivalent digital number. But digital system deals with discrete
values. It is very likely that the amplitude value that is to be converted falls somewhere between
the two digital values. Thus the value nearest to it will have to be chosen.
In other words it can be said that quantization is the process of determining, which of the
possible values is the closest value to the current sample. Quantization thus introduces
error because digital value will be nearby value not the exact value. How big the error, or
how accurate the answer will be, depends upon the number of bits that are used to denote
digital equivalent. More the bits, better the answer.
In quantization, complete range is divided into two equal halves. (In the diagram this division is
done using solid line). If the value, we are sampling, is above this line, '1' is assigned to it. On the
other hand, if it is below, '0' is assigned to it. Consider figure 4.24 and take the case of A point.
Since it lies in the upper half hence '1' is assigned to it in this process.
+5V
C (111)
111
B (110)
110
A (101)
101
010
001
-5V
000
Figure 4.24
98 Basics Of Computer Science
Now the half range that has the sampled value in it is again divided into two halves. In
figure 4.24, this is shown by dotted line. Once again, if the value we are sampling is above
this line, '1' is assigned to it. If it is below, '0' is assigned to it. Since point A lies below the
dotted line hence 0 is added to the previous result. So after second round of division, we
collect the result '10' for point A.
Now the half range that has the sampled value in it is again divided into two halves. (in
figure 4.24, this is shown by dash line). Once again, if the value we are sampling is above
this line, '1' is assigned to it. If it is below, '0' is assigned to it. Since point A lies above
dash line hence '1' is added to the previous result. So after third round of division, we
collect the result '101' for point A.
This process is repeated as many times as number of bits decided for the process
(accuracy). For example, if we are working with 3 bit system then the process will be
repeated 3 times. If we are working with 8 bit system, it is carried out 8 times.
This process is done for each sample that we take in sampling process. For example, if we
take three samples A, B and C then this process will be done for all the three values. Their
digital representation will yield 101, 110, 111.
In actual, for better definition and better results, what we need is to take more samples (i.e.
more points like A,B and C i.e. higher sampling rate) and more divisions (i.e. use of more
number of bit to represent digital values i.e. higher accuracy).
Digital values obtained from sampling and quantization process are transmitted to the
required destination. Thus analog signal gets transmitted to the required place in digital
form. Since data is in digital form hence it does not get mixed with noise during the transit.
It reaches there in pure form. At the receiving end, analog signal is reconstructed from the
digital values received through dedicated devices.
Construction Of Continuous Signal From Digital Values
D to A converters are used for obtaining analog signal back from digital values that are
received. D to A converters construct the digital signal from the digital values. By extrapolation
of the values they regenerate the analog signal. This is shown in the figure 4.25
Figure 4.25
TRANSMISSION TECHNIQUES
Recall that in computers all the characters and number are represented in terms of 0s and 1s
called bits. These bits are physically identified as low voltage (0 volt) and high voltage (5
volt) respectively.
Chapter 4 – Computer Communication 99
While transferring the data from one computer to another, it is the stream of bits that get
transferred. Say you want to transfer the number 589.
These three characters can be transferred under two conditions.
1. The time gap between transferring 5 and 8 is different than the time gap between
transferring 8 and 9 (This happens due to various reasons). In this case when there
is a time gap then voltage transmitted would be say one. So if it remains 1 for three
cycles then the receiving computer will not understand that the line is ideal or these
three 1s are part of data.
2. The time interval between the transmission of two characters can be made constant.
Asynchronous Transmission
Asynchronous transmission is a technique, which addresses to the first type of problem. In
asynchronous transmission a start bit is added before every character and a stop bit is added at
the end of every character. This is
Time between characters is variable
done by maintaining the transmission
line in state of 1 and using 0 as the
start bit. The stop bits are 1, to
distinguish them from start bits. a b c d e
Data bits are then transmitted at Time
uniformly spaced time intervals Figure 4.26
between the start and stop bits. A
timer at the receiving end starts with the characteristic pattern of asynchronous
transmission. This is illustrated in figure 4.26.
Synchronous Transmission
In synchronous transmission the sending device has a clock and the receiving end also has
a clock. Before sending the data both the clocks are synchronized and the time interval
between the transmissions of two characters is maintained same.
Note that in synchronous transmission the speed of data transmission is increased because
of the fact that the non-information carrying start and stop bits are removed in this method.
Once the two clocks are
Time between characters is constant
synchronized they continue to be
synchronized because in between
they send their own signals and
a b c d e
keep synchronizing themselves. A
characteristic pattern of Time
synchronous transmission is Figure 4.27
illustrated in figure 4.27.
MODES OF TRANSMISSION
Modes of transmission are concerned with the manner, in which the message travels along
100 Basics Of Computer Science
the transmission line. Basically there are three modes of transmission for communication
purpose. They are as follows:
(a) Simplex
(b) Half duplex
(c) Full duplex.
Simplex Mode
In this mode, the data is transmitted in one direction only. In no way, the sender can
receive the information from the receiver and in no way the receiver can send the
information to the sender that the message was received correctly. Radio and television
broadcasting are the best examples of Simplex mode.
PARALLEL TRANSMISSION
In parallel transmission, there are multiple lines (usually 8 or multiples of eight) so that
more than one bit can be transmitted at a time. Since multiple bits are transferred in parallel
hence the transmission is very fast. But in spite of being fast, it is not practically used for
longer distance because multiple lines are costlier to lie and due to the parallel wires
running beside each other, the problem of cross talk starts and the signal gets corrupted.
But for the shorter distances such as connecting printer to the computer for printing, it
works very well.
SERIAL TRANSMISSION
In serial transmission there is only a single line (or few more) between the source and
destination and the complete data is transferred though it. Since the data bits are transferred
one by one, in series, hence serial transmission is quite slow in comparison to parallel
transmission but in spite of its slow speed it is quite practical. This is the reason why it is
used in abundance. For example, transmission between computer and terminal takes place
in serial form. All USB devices such as pen drive, web camera etc are serial devices.
Chapter 4 – Computer Communication 101
INTERNET
When many computer networks of the world were connected together, with the objective of
communicating with each other, Internet was formed. In other words you can say that
Internet is network of computer networks, which spreads all across the globe.
Initially the size of Internet was small. It was limited to few geographical locations only.
But soon, people become aware of its USA
utility and advantages and within
short span of time, numerous
computers and networks got
themselves connected to Internet. Its Japan
size increased multi fold within few UK
years of its birth. Today Internet
comprises of many million
computers. There is hardly any
China
country of the world and important
city of the country, where Internet is
not there. A conceptual diagram of France
Internet is illustrated in 4.28.
Internet is basically a large computer
network, which extends all across the India
globe. In Internet, millions of South Africa
computers remain connected together
through well-laid communication Figure 4.28
system. Recall that telephone
communication system is well-defined, time proven system. Internet makes use of this
system any may other systems to connect its computers. Thus like a telephone connection,
any computer of any city can establish a connection with any other computer of any other
city and exchange data or messages with it.
CLASSIFICATION OF INTERNET COMPUTERS
Computers of Internet can be broadly classified into two categories. These categories are:
1. Servers
2. Clients
Role and requirements of both types of computers are explained below.
Servers
Those computers of Internet, which provide information or services to other computers, are
called servers. For example, if a computer in an organization, named Hotmail provides electronic
mail services to Internet users then that computer will be categorized as server.
Servers provide services / data to millions of Internet users, so they generally possess
following characteristics:
1. They are fast.
102 Basics Of Computer Science
2. They are equipped with large memory and large disk space.
3. They remain connected to Internet all throughout the day, seven days a week, 31
days a month and 365 days a year.
4. They make use of fast communication line.
Clients
Those computers of Internet, which take information or services from servers, are called
clients. For example, if you make use of Hotmail's server to send electronic mail to your
friends or relatives then your computer will be termed as client.
Since clients interact, with servers, on one-to-one basis and that too when
service/information is required hence they possess following characteristics:
1. They need not be very fast computers.
2. They need not have large memory and disk space as servers have.
3. They get connected to Internet, when they need the information/service. After
taking it, they disconnect from Internet.
4. They generally make use of slow connection, like telephone lines, to get connected
to Internet.
IDENTIFICATION OF COMPUTERS ON INTERNET
Like houses of any city are identified by a unique address, similarly computers of Internet
are identified by a unique address, called IP address. IP address comprises of four numbers
separated by dots (.). For example, 150, 075,100.085 is a valid IP address. Each number in IP
address can range from 0 to 255. So IP address can range from 0.0.0.0 to 255.255.255.255. Thus
if IP address of a computer is known, it can be accessed over Internet.
HISTORY OF INTERNET
In 1960 America suspected a nuclear attack from Russia. Thus America wanted to find a
way to prevent its communication network from being destroyed in the war. So an agency
of American Defense Department, called Advanced Research Project Agency (ARPA)
funded a project, which connected the university computer scientists and engineers together
via. their computers and telephone lines. The main objective of doing so was to facilitate
exchange of information. Afterwards this project became popular with the name of
ARPANET. Soon the users of ARPANET started sending e-mail to each other. With the
help of e-mail it became possible to send messages from one computer to another computer
(which may be located at any part of the world) within few seconds. The second fold
advantage of this project resulted in the evolution of mailing list, with the help of which, it
was possible to send the same message to different persons (located anywhere) at the same
time. This project thus marked the development of Internet.
By the end of 1980, approximately 15,000 computers were connected to Internet. While in
1990, this figure went up to 3,00,000. But today the numbers of Internet connections are
not easy to count.
Chapter 4 – Computer Communication 103
Till 1992 all the services provided by Internet were text based. Thus in order to avail any of
the facility, the user had to enter text commands. But soon in 1992 the invention of
Graphical User Interface (GUI) made it possible to include graphics and other multimedia
objects also with the text in the Internet. After a few years the Graphical User Interface
became popular with the name of World Wide Web (WWW).
of characters identifies the nature of the web site. For example in hotmail.com, com
indicates that its is commercial web site. Standard strings that are used at second place in
the domain name are as follows:
String Type of web site
com Commercial organizations (profit making)
edu Educational institutes
gov Government organization
mil Military
net Network service providers
org Non profit making organizations
Third string in the domain name is always indicative of country. For example, "in" is used
for India. "au" is used for Australia, "uk" is used for United Kingdom, "fr" is used for
"France" etc.
If domain name of a web site is known, it can always be accessed and its contents can be viewed.
WEB PAGE
Information or services on any web site are arranged in terms of web pages. A web page
may contain elements like text graphics, sound, animation video and hyper links in it.
A web site may consist of interlinked multiple web pages. When you access a web site, its first
page gets displayed on you computer. Since web pages of a web site remain interlinked through
hyper links hence you can always access other web
pages, after accessing the first web page. Newton was a great
scientist, who
discovered the
HYPER LINK Newton law of gravitation
When a link between two objects, is maintained in Hyperlink
to text Text
such a way that when you click the mouse on first
object, second object gets displayed then such a link Apple
is called hyper link. Concept of hyper link is
illustrated in figure 4.29. Hyperlink
to graphics
HYPERTEXT Graphics
The text that remains linked to other objects like text, Figure 4.29
graphics, audio etc. through hyper link is called
hypertext. For example, the words Newton and Apple in figure 4.29 are hypertext.
HYPERMEDIA
As hypertext allows you to link the text with another text, in the similar manner,
hypermedia allows the user to create a link from a particular document to either another
program, or to another movie or sound clip or to Internet related facilities (like e-mail, chat
etc.). When such types of links are created, they are known as Hypermedia.
Chapter 4 – Computer Communication 105
COMMUNICATION PROTOCOLS
You are familiar with the word protocol and are aware of its significance in relation to
computer networks. To establish a proper communication network, many protocols are
used. Few commonly used protocols are described below.
TCP/IP
TCP/IP is basically an Internet Protocol suite, comprising of two basic protocols i.e. TCP
and IP.
TCP is acronym of Transmission Control Protocol. This protocol is basically responsible
for breaking the message into smaller packets before they are transmitted on the medium.
At receiver's end, it reassembles the packets into corrects sequence to get back the message
in complete and original form. The functioning of TCP protocol is illustrated in figure 4.30.
Message Message
Sent: HOW ARE YOU HOW ARE YOU Received
Figure 4.30
Note that transmitting shorter messages (instead of long messages) becomes easy in
network. This makes the communications more efficient. Various packets can be routed
through different routes (refer figure 4.17 as many routes remain available to reach the
destination) at a particular time a particular line is not available.
Due to different routes undertaken, packets may not arrive the destination in sequence.
Thus proper sequencing and assembling of the packet is done, as shown in figure 4.30. This
activity is performed by TCP protocol.
IP is acronym of Internet Protocol. It mainly deals with addressing issues of the packets
and few other aspects.
It adds addresses of the sender and receiver in all the packets. It also adds Time To Live
(TTL) in each packet. As the packet travels over network this time decrements. Packet is
discarded when it becomes zero. It prevents packets from wandering in the network forever
and making congestion in network. The functioning of IP is illustrated in figure 4.31.
Message: HOW ARE YOU
TCP
IP
To destination
HOW ARE YOU IP A1 HOW 01 D2 A1 ARE 02 D2 A1 YOU 03 D2
Figure 4.31
106 Basics Of Computer Science
IPX/SPX Protocol
IPX/SPX is short form of Inter network Packet Exchange/Sequential Packet Exchange. It is
a network protocol, which was developed by Novell Corporation for its Novell Netware
operating system but now it is being used freely for other environments also.
It is basically transport layer protocol. The SPX layer sits on top of IPX layer and provides
connection-oriented service between two computers of the network. SPX is mainly used in
client server applications. SPX/IPX protocol is similar to TCP/IP protocol. SPX performs
all those functions, which TCP performs and IPX perform all these functions, which IP
performs.
Net BIOS/NetBEUI
NetBIOS Extended User Interface, is an unrouted network protocol. Routing is basically
selecting a path from many paths that remain available for communication. Unrouting
means, where no multiple choices of path are available. Since it is unrouted protocol hence
it can only be used for communicating with the devices on same network segment.
It is transport layer protocol. It was developed by Sytek company for IBM. It provides
following three main service:
1. Name service for name registration and resolution.
2. Session service for connection oriented communication.
3. Datagram distribution service for connectionless communication.
INTERNET USES
Internet results into instant data communication and on-line resource sharing. Due to these
two factors, geographical boundaries have crushed, distance have lost their meanings,
communication barriers have broken and such applications and services, which were not at
all possible few years back, have now come into existence.
Today Internet is not only being used for business purposes, but for personal use also. It
has brought a revolution in the society. Due to its easy availability and affordability,
working and thinking patterns of human being are continuously changing and new
methodologies are evolving. Below given are few important uses of Internet.
Centralization Of Information
Internet is commonly used for storing the data / information, centrally and making it
available for others. Centralization of information doesn't sound so great but applications
developed around this concept are really great.
1. Reservation System: It is a useful application that serves masses. Reservation in
airplanes, trains, hotels, cinema halls etc. can be done sitting at home, using
Internet. This is possible because information related to the item to be reserved
remains centrally available on servers and clients can access it through Internet.
2. Enquiry System: Service organizations make all important information, notices and
forms centrally available on server. Clients access these servers using Internet and
obtain required information. For example, financial institutions may store rates of
shares, bonus announcements, coming issues etc. on the server and clients may
obtain required information from there.
3. Corporate Business System: These days companies, organizations, institutions etc.
have their own computer networks connected to Internet. Company's information is
maintained at a central place say, head office. Their regional offices, business
clients, vendors etc. access them for their uses through Internet. For example, an
organization may allow its suppliers to access company's purchase requirements
and submit on-line quotations.
4. Education Service System: Making admission forms, examination notices, results
of examination etc, available to the masses are the common applications, which
educational institutions make possible through Internet. For this, they make the
information centrally available on some server of Internet. Virtual universities have
now come into existence, in which services related to registration, teaching,
problem handling, examination etc. are provided to the students over Internet.
Fast Communication
Instant data transfer over Internet leads to fast communication among network users. It
also ensures data delivery. Transfer losses are never there. Following are few commonly
used communication applications, which are quite popular in Internet environment:
1. Video Conferencing : Video conferencing is an application, in which not only
108 Basics Of Computer Science
Efficient Services
Organizations and institutions make use of computer networks for providing efficient
services to either internal people or external persons. Following are few services, which are
common over Internet:
1. On-line advice.
2. On-line help.
3. On-line enquiry.
4. FAQ (i.e. answer to frequently asked questions made available in the form of list).
FUTURE OF INTERNET
What Internet used to be few years back is not today. What it is today will not be in future.
Its shape, resources and services are advancing at amazing speed. Many surveys and studies
have been conducted all across the world to predict the future of Internet.
A consortium led by 206 universities working in partnership with industry and government
has been formed (in 1996) to develop and deploy advanced network applications and
technologies, accelerating the creation of tomorrow's Internet. It has been named Internet2.
Based on these surveys and present developments, it is expected that following things will
hold true for Internet future:
1. Internet will be more deeply integrated in our physical environments and high-
speed connections will proliferate.
2. Today PC dominates Internet. Majority of the computers connected to Internet are
Personal Computers. It is expected that more devices like Personal Digital
Assistant (PDA) will come into existence and will be part of Internet.
Chapter 4 – Computer Communication 109
3. Soon, everything from your car to your refrigerator will be connected to the global
network, communicating with each other wirelessly. Electrolux, best known for its
vacuum cleaners, has developed the ScreenFridge, an Internet icebox that manages
your pantry, among other things. It e-mails a shopping list to your local
supermarket and coordinates a convenient delivery time with your schedule.
4. It is expected that there will be a great change in the field of arts and entertainment.
The ability to receive real-time music and video over the Internet, or downloaded
content, will radically transform business models for TV and movies as it is already
doing for music. It will also continue to change the relation of the public to artists
as it has through fan sites, remixes, and other Internet-based phenomena.
5. As computing devices become embedded in everything from clothes to appliance,
from cars to phones etc. these networked devices will allow greater surveillance by
governments and businesses.
6. Enabled by information technologies, the pace of learning in the next decade will
increasingly be set by student choices. In ten years, most students will spend at
least part of their “school days” in virtual classes, grouped online with others who
share their interests, mastery, and skills.
Web Browsing
Moving from one web site to another web site is called web surfing or web browsing. To
access the web site, follow the following steps:
1. Get connected to Internet
2. Invoke Internet Explorer
and get Internet Explorer
window on the screen.
3. Enter domain name in
address bar and press
"Enter" key.
When you do so, Internet
Explorer will search the web site
and if it gets it, it will display its
first page, called opening page in
the browser window. For
example, if you access yahoo.com
web site, its opening page, as Figure 4.33
illustrated in figure 4.33, will get
displayed in Internet Explorer window.
110 Basics Of Computer Science
Hit List
Figure 4.35
3. To reach the web site that contains the information, click the mouse on any desired
link of the hit list.
4. After reaching the web site, you can make use of browser's "Back" button, to get
back to the hit list.
5. Now click the mouse on another link to get more information on the same topic, but
from another web site.
3. Two search terms can always be added, using logical operators like AND and OR to
make the scope of the search more specific. For example, the search term "Flights
to UK AND Flight to Franch" will yield wider results.
4. Some of the search engines produce specie results when the search term is enclosed
within double quotes. For example, to search information on atom bomb you have
to define the term as "atom bomb" else they will give two different types of
information i.e. one on atom and another on bomb.
5. Some of the search engines, like yahoo.com provide advanced tools for defining the
information that is required. If the search term is such that it does not define the
information precisely then advanced tool should be used for narrowing down the scope.
6. All major web sites also provide category list. This list is usually arranged topic
wise. For example, go to yahoo.com. Down, in its first page, you may have the
category list, as illustrated in figure 4.36.
Figure 4.36
Refer above illustrated figure and note that Art & Humanities, News Media, Business &
Economy, Recreation and Sports, Computer & Internet etc. are various categories that are
present in the web page.
When you click on any category, your browser will display a list of subcategories. Now
click a sub category heading of your choice. When you do so, you are again presented with
a list of sub sub categories. You have to continue in this fashion, drilling down the
complete tree, until you reach the desired page, related to the selected topic.
Chapter 4 – Computer Communication 113
Chatting
Chat means talking. Chat service provides the means of on-line communication with other
Internet users. Using this service, two or more Internet users talk to each other, by typing
their messages on their terminal. What one-user types on his terminal, gets displayed on
other user's terminal immediately. If he wishes to react against this message, he has to type
his reaction on his terminal. Now, whatever he types on his terminal gets displayed on
other person's terminal. Thus talking through typing can continue, till the time both the
persons want.
This is the most popular and widely used service of Internet. To make it more interesting
and realistic, chat service is generally provided in the form of logical rooms.
All rooms are generally related to a topic. For example, relationship, computers, friendship
etc. It is possible that there may exist many rooms with in a specified topic. For example
within computers there could be many rooms such as Hardware, Graphics, Multimedia,
Virtual Reality, Internet etc. The basic objective of having topic-related rooms is to form a
collection of people with similar interest, so that the chat may result into fruitful discussion
and the number of chatters remain limited in a room. On the other hand, if the number of
room were not categorized into focused variety of topics then, there would be a huge crowd
of chatters in the same room. In such a room there would always be a crowd of chatters
who have diversified interest. In such a situation, chatters may not find them comfortable
and may start leaving the room.
Chat is very common service of Internet. It remains available on most of the web sites. For
example yahoo.com, excite.com, icq.com, hotmail.com etc. are the names of few web sites
which provide chat service to their visitors.
To make use of chat service, you have to first go to the web site of your choice, where you
would like to chat. Now you have to open your chat account, if you have not yet opened it.
When you open your chat account you have to declare your profile (name, age, country e-
mail address) and choose your chat name. Chat name is the name that you would like to use
during the chat. The chat name could be different from your real name because you may
not like to disclose your real name to chatters because of security and personal reasons.
Generally people use those type of chat names which qualify their properties or need. For
example softman, helpingman, jollyboy. are the names which give an indication of the
nature of the person. Similarly wanting-jokes, wanting-help, give-me-info are the names
which clearly state the need of the person.
After creating your profile, you can choose any chat room of your choice. When you enter
the room, you would find many persons present there. Chat names of all the persons present
in the room would be displayed on the screen.
Now you can type your message or feelings on your terminal. Whatever you type on your
terminal, would get displayed on the terminals of each person who is present in the room. If
someone wishes to talk to you, he can type his message for you on his terminal. That
message will get displayed on everybody's terminal, including your. Thus you can keep on
communicating till you or the other person wants.
114 Basics Of Computer Science
A chat session can be invoked through yahoo messenger. When you invoke chat session, a
chat room as illustrated in figure 4.37 gets displayed.
The message
sent by people
chatting on
Internet
Chat names of
people chatting
on Internet
Figure 4.37
Refer above illustrated figure and note that all-important components of chat web page
have been labeled, to give you an idea of chat dynamics and its operations. Using this web
page you can read the message sent by other people and you can also send your own
messages.
Chat also provides you the facility of sending personal messages to the desired persons. In
such a case your message gets displayed only on other persons terminal, not on everybody's
terminal. Thus you can do some private talks. For this, you have to simply double click on
person's chat-name. When you do so then a message box appears on the screen. Whatever
you type in this message box gets transmitted as private message to other chatter. A similar
type of message box appears on other person's terminal also. The message sent by you (to
him) gets displayed in his message box. What ever he types in his message box, gets
displayed in your message box. Thus chat continues in private mode and nobody comes to
know what you are talking to other person.
Some of the chat services provide you the facility to create your own private room. You
can invite other chatters, in your room to talk privately. This saves you from other people's
unwanted messages to appear on your screen. Thus you can have dedicated chat in isolated
environment.
Internet Telephony
As the name suggests, Internet telephony is a service, using which Internet users can have
voice-talk with others. It is quite obvious that to make use of Internet telephony service,
Chapter 4 – Computer Communication 115
your computer should have multimedia kit attached to it. Internet telephony service can be
mainly categorized into two main categories. One is Net-to-Net type of telephony. Other is
Net to Phone telephony. In Net to Net type of telephony, both the persons i.e. caller and
receiver have to be on-line with Internet.
When both the persons are on-line, then one of them dials other persons telephone number.
Other person receives the ring and if he accepts the call then voice connection is
established between them and they start talking. In Net to Phone telephony, only one
person has to be on-line with Internet. This person rings other person's telephone number
from his computer. Other person receives a ring on his telephone set (not computer as is
done in Net to Net telephony). If this person picks up his hand set then a connection gets
established between the two parties. Now, whatever, first person speaks in front of his
microphone, gets transmitted to other person's hand set. Whatever other person speaks in
his handset, gets transmitted to first person's speaker.
yahoo messenger, skype etc. are the services, which provide services for both types of
telephony. Generally net to net telephony is free while net to phone telephony is paid service.
Internet Shopping
Internet shopping is a facility, using which items of choice can be purchased over Internet.
There are numerous website, such as yahoo.com, dell.com amazon.com, excite.com etc.
which display all those items, which are for sale on the web site. In e-commerce terms
these web sites or web pages are called e-shops or e-malls. In e-malls along with the
picture of the product, their description, price and highlights also get displayed.
Items of interest are selected by clicking the mouse on the product image. A program called
shopping basket or shopping cart remains vigilant in the background. It keeps track of all
the items, selected for purchase, cost of purchase, applicable taxes and discount etc.
Whenever required, it displays the status of the basket / cart. It also provides facility to add
or remove items to / from it.
When all the items for purchase have been selected, Purchase Now / Submit button present
on website is activated.
On activating Purchase Now / Submit button, buyer is offered an on-line form, for
submitting his personal details. Using this form, he generally provides to the seller, his
name, address, phone number, e-mail address, shopping address etc. so that purchased
items could be sent to the purchaser on his address.
e-shopping sites also provides the facility of on-line payments. On-line payments are made
through credit cards. A secured page for accepting buyer's credit card number, amount of
payment etc. gets displayed where he provides all relevant information. As soon as this
information is provided, given information is verified from all relevant sources. In the
event of information being correct, money is transferred from user's bank account to seller's
bank account and the seller sends all purchased items through post /or courier to the
purchaser on his address.
116 Basics Of Computer Science
Some of the items, such as games softwares memberships, access rights etc. are down
loaded to purchaser's computer immediately, when he makes payment for these.
An e-shopping web site is illustrated in figure 4.38.
Figure 4.38
SUMMARY
When two or more computers are connected together with the objective of communicating
with each other and sharing their resources, they form a computer network.
Computer network is the most modern medium of communication. Using computer network,
fast and reliable communication takes place. Following are the reasons for networking:
1. To share distant devices.
2. To share software of other installations.
3. To provide a communication medium.
4. To evenly distribute the load of processing.
Following are few useful applications of network:
1. Rail/Air reservation system.
2. Internet banking & ATMs.
3. E-Mail.
4. Information sharing applications.
5. On-Line education and examinations.
6. Network games.
Following are the benefits of networking:
1. Information, available at distant locations can be accessed within no time.
2. Costly devices can be shared among many users.
3. Work can proceed even if one or few computers are down.
4. Much better applications can be made, which provide great help and services to its
users.
5. Better and efficient communication takes place between the users.
6. On-line services can be provided, which save time and efforts.
TYPES OF NETWORKS
Computer networks are broadly classified into two categories:
118 Basics Of Computer Science
Local Area Networks (LAN): Local area networks are the networks that spread within a
short distance of a kilometer or so and are generally confined to a building or a campus.
Wide Area Networks (WAN): Wide Area Networks or WAN are the networks, in which
computers are spread over long distances (more than a kilometer). Computer of Wide Area
Network can either be in different countries, cities or localities.
Campus Area Network (CAN), Metropolitan Area Networks(MAN) and Home Area
Network (HAN) are few variations of LAN and WAN.
Topology is basically the physical arrangement of computers in the network. Following are
commonly used network topologies:
Bus Topology: In bus topology, all the computers and devices of the network are connected
to common medium (cable).
Ring Topology: In ring topology, computers of the network are connected to each other in
circular fashion.
Star Topology: In star topology, computers of the network are connected together through
a special device called hub. Each computer is connected to the hub. Thus the link of one
computer is established with other computers via hub.
Mesh Topology: In mesh topology each computer of the network remains connected with
other computers through dedicated medium.
Basic model of network communication comprises of following essential components:
Sender: The computer, which sends the message is called sender.
Receiver: That computer of network, which receives the message is called receiver.
Medium: Medium is basically that substance through which message propagates and
reaches the destination. Medium can be wired medium or non-wired medium. Wired
medium could either be twisted pair cable or coaxial cable or optic fiber cable while air
works as non-wired medium.
Message: What travels from sender to receiver is called message.
Protocol: A protocol is basically a set of standards that are decided between the sender
and receiver for error free communication between them.
Following are few commonly used network services:
Domain Name System (DNS): It translates domain names into IP addresses.
Simple Mail Transfer Protocol (SMTP): It provides facility for sending and receiving e-
mails over Internet.
Telnet: It provides facility to login into another computer of the network.
File Transfer Protocol (FTP): It provides facility for transferring files from one computer
to another over network.
Rlogin: It provides facility to login into a computer that is at remote location.
Rsh: It provides facility to execute a single command on some other computer of the
network.
Chapter 4 – Computer Communication 119
X Window System: It provides standard toolkit and protocols for building graphical user
interface on UNIX and UNIX like operating systems.
RPC Based Service: It is a network service that allows a program on one computer to
execute on another computer.
Network File System (NFS): It lets a computer user view and optionally store and update
files on remote computer, as if they were on user's own computer.
Web Service: It makes use of Hyper Text Transfer Protocol (HTTP) to make multimedia
applications come alive over network.
Finger: It tells you the name and other information related to given e-mail account. It also
tells you, if he is currently logged on to network or not.
PING: It sends series of data packets to a specific computer over network, in order to
generate a response from that computer.
SAMBA: It is a network service that works between UNIX and Windows computer to
provide same working environment to Windows users on UNIX server.
Organization for Standards (ISO) has defined a seven layers model, called Open System
Interconnection reference model (OSI model) for establishing proper communication
between the computers of the network. These layers are:
Physical Layer: It defines all the electrical and physical specifications for the devices that
are part of computer network.
Data Link Layer: It takes care of speed mismatches that may occur while data gets
transmitted in the physical layer. It detects and possibly corrects errors that may occur in
the physical layer.
Network Layer: It mainly deals with routing functions and congestion control.
Transport Layer: It mainly deals with flow control of data and provides error detection
and correction mechanism.
Session Layer: It deals with the individual sessions that are established between the
computers for communication.
Presentation Layer: This layer mainly deals with the presentation aspects of the data.
Applications Layer: It mainly deals with the mechanism of making the information
available to the user.
Data transmission is conveyance of any kind of information from one place to other. Data
transmission is basically of two types i.e. Analog transmission and Digital transmission.
Data transmission, in which data is transmitted over the medium, in the form of analog
signals, is called analog transmission.
Data transmission, in which data is transmitted over the medium, in the form of digital
signals, is called digital transmission.
Two transmission techniques are there. They are asynchronous transmission technique and
synchronous transmission technique.
120 Basics Of Computer Science
In asynchronous transmission a start bit is added before every character and a stop bit is
added at the end of every character that is transmitted. Data bits are then transmitted at
uniformly spaced time intervals between the start and stop bits.
In synchronous transmission the time interval between the transmissions of two characters
is maintained same.
The manner, in which the message travels along the transmission line is called mode of
transmission. Following are the three modes of transmission:
Simplex mode: In this mode, data is transmitted in one direction only.
Half duplex mode: In half duplex mode, data is transmitted in both the directions but not
simultaneously.
Full duplex mode: In full duplex mode, transmission line can send and receive data in both
the directions simultaneously.
Network of computer networks is called Internet. It extends all across the globe. Computers
of Internet are broadly classified into two categories:
Servers: Those computers of Internet, which provide data and services to other computers
of Internet are classified as servers. They are generally fast computers and remain
connected to the Internet for all the 24 hours of the day.
Clients: Those computers of Internet, which take data and services from other computers of
Internet, are classified as clients. They are generally slow computers in comparison to
servers and get connected to Internet as and when they require services from the servers.
Computers of Internet are identified by a unique address, called IP address. IP address
comprises of four numbers separated by dots (.). For example 024.136,225,128 is a valid IP
address. They are also identified by a unique name, called domain name.
That part of Internet, which makes use of Hyper Text Transfer Protocol so as to make use of
multimedia media objects possible, over Internet, is called World Wide Web.
E-mail, video conferencing, chatting, Internet telephony, on-line shopping, banking,
searching information on Internet, Virtual university etc. are few popular uses of Internet.
EXERCISES CHAPTER 4
2. What is protocol?
(a) A message (b) Rules that have been set.
(c) A code (d) A network device
3. Which of the following network remains confined to a building?
(a) LAN (b) WAN
(c) MAN (d) None of the above
4. In which type of network, computers of five different cities are connected together to
form a computer network?
(a) LAN (b) WAN
(c) HAN (d) SAN
5. Which of the following topology makes use of a special device called hub?
(a) Bus (b) Star
(c) Ring (d) Mesh
6. What is TCP/IP?
(a) A compression techniques (b) A protocol
(c) A type of network (d) A topology
7. How many layers of protocol are there in OSI model of network?
(a) 7 (b) 6
(c) 5 (d) 10
8. Which layer of OSI model is related to physical connection of computers, within the
network?
(a) First (b) Second
(c) Fifth (d) Seventh
9. Which of the following is related to file transfers across the network?
(a) FTP (b) TCP/IP
(c) CSMA/CD (d) Telnet
10. Which of the following will have fastest rate of data transmission in it?
(a) Twisted pair of wire (b) Coaxial cable
(c) Optic fiber (d) Starlight wires
11. Which of the following device is used to connect computer to the telephone line?
(a) modem (b) A to D converter
(c) Optic fiber cable (d) Web server
12. In which of the following technique, time interval between the transmissions of two
bits differs?
(a) Asynchronous (b) Synchronous
(c) Simplex mode (d) Parallel transmission
122 Basics Of Computer Science
13. In which of the following data transmission mode, transmission takes place in both
the directions but not simultaneously?
(a) Simplex (b) Half duplex
(c) Full Duplex (d) Parallel transmission
14. In which of the following process, amplitude of the analog signal is observed at
regular intervals?
(a) Sampling (b) Quantization
(c) Reconstruction (d) Packet switching
15. Which of the following, essentially makes use of HTTP protocol?
(a) Internet (b) World Wide Web
(c) Computer Network (d) None of the above
****
Chapter 4 – Computer Communication 125
PART II
Computer Application
Laboratory
CHAPTER 5
Windows
Windows is the most popular operating system of modern times. It has been designed and
developed by Microsoft Corporation of USA. Windows not only activates computer and
makes its devices functional, it also provides applications for performing wide variety of
tasks on computer. For example, its Notepad program enables you to write letters and
notes. Using its Paint program you can draw pictures on computer and color them too.
Likewise there are many more programs in Windows. An introduction to its features,
functions and applications is given in its chapter.
Icon
Desktop
System Tray
Figure 5.2
Desktop Icons
Icons are graphical pictures. They represent objects
like programs, files, folders etc. Initially few icons
appear on desktop. Later, if the need be, more icons
are placed on the desktop. To activate any icon, you
need to double click the mouse on it.
Start Button
Start button is the starting point of Windows menu
system. When you click the mouse on "Start" button,
Start menu, as shown in figure 5.3 appears on the screen.
Figure 5.3
Refer Start menu, shown in figure 5.3 and note the
following points:
1. Some of the options in Start menu have an arrow marked in front of them. This
arrow indicates that when you click the mouse on the option, a submenu will appear
on the screen.
Chapter 5 – Windows 129
2. Some of the options have few dots (…) marked in front of them. These dots indicate that
when you click the mouse on the option, a dialog box will appear on the screen.
3. Those options that neither have arrow nor dots marked in front of them get directly
executed when you click the mouse on them.
Task Manager
Initially, Task Manager appears as blank area but when you execute any program, a button
for that program gets created in this area. This button identifies the program and provides
means for performing different operations on the running program. For example, using the
button you could terminate the program.
System Tray
Initially system tray displays few icons and system time in it. Each icon of the system tray
represents a program, which is invisibly running in the background. To operate upon a
background program, you can double click the mouse on its icon. For example, to set the
system date and time, you can double click the mouse on system time icon.
INTRODUCTION TO WINDOW
Windows operating system drives its name from the fact that each running program, in
Windows appears in the form of a window. When you execute a program, a window
appears on monitor screen. For example, when you execute WordPad program of Windows,
WordPad window, as shown in figure 5.4 appears on monitor screen.
Title Bar
Bar Menu
Format Bar
Toolbar
Insertion
Pointer
Ruler
Status Bar
Figure 5.4
130 Basics Of Computer Science
Refer figure 5.4 and note that window comprises of many components. Role and function of each
component of the window is given below.
Title Bar
Title bar acts as window header. It comprises of following items:
System menu button : When you click the mouse on this button,
system menu, as illustrated in figure 5.5
appears on the screen. Figure 5.5
Program Name : Name of the program, with which window
is related, appears in the title bar. This name identifies the
windows. When you have many windows present on the screen,
program name in title bar helps you in identifying the window.
Minimize Button : It shrinks the window to a button, placed in task bar, when you
click the mouse on it.
Maximize Button : When you click the mouse on this button, window enlarges to
the size of the monitor screen and the button gets converted to
Restore button. When you click the mouse on Restore button,
enlarged Window gets back to its original size.
Close Button : When you click the mouse on this button, program terminates.
Its window and task bar button, both get removed from the
monitor screen.
Bar Menu
Bar menu appears as broad strip with multiple options in it. Each option has an underlined
character in it. For example, File option has F character, underlined in it. When you select
any option, a pull down menu (submenu) appears on the monitor screen. To select any
option from the bar menu, either of the following operations can be performed:
1. Click the mouse on the option, which you wish to select.
2. Press Alt key and underlined character key together. For example, to select File
option, you could press Alt and F keys together.
Toolbar
Toolbar comprises of many buttons. Each button performs a specific task, when you click
the mouse on it. For example, when you click the mouse on "Save" button, current contents
get saved on the disk. When you rest the mouse pointer for some time on any button of the
tool bar, its name appears on the monitor screen.
Status Bar
Status bar appears at the foot of the window. Relevant information, help messages, current
activity status etc. get displayed in it.
Chapter 5 – Windows 131
PRACTICAL
ASSIGNMENT -1
(a) Starting a Program, Running a program.
(i) To start a program from desktop, double click the mouse on an icon, present on
desktop. For example, click the mouse on "My Computer" icon present on
desktop.
(ii) To start a program from Quick Launch toolbar, click the mouse on its icon,
present in Quick Launch toolbar. For example, click the mouse, on "Internet
Explorer" icon.
(iii) To start a program from System Tray, double click the mouse on its icon that
remains present in System Tray. For example, double click the mouse, on Time
that gets displayed in System Tray.
(iv) To start a program from a Start menu, click the mouse on "Start" button and select
the desired option from the submenu or submenus that appear thereafter.
(v) To run a program by specifying its name, first click the mouse on "Start" button
and then on "Run" option.
When you do so, a dialog box will appear on screen. Type the name of the
program that you wish to run, along with its path name in this dialog box and
click the mouse on "OK" button.
(b) Starting Windows in safe mode.
(i) To boot the computer with Windows in safe mode, first switch the monitor on and
then switch on the CPU.
(ii) Wait for a while and press F8 key. When you do so, a list of booting options will
appear on monitor screen. Select "Safe Mode" option from this list.
(iii) When you do so, computer will get booted in safe mode.
(iv) Note that safe mode of Windows is restricted mode. Only few basic operations
can be performed in this mode. Usually it is used for system maintenance
purpose.
(c) Running multiple programs and switching between windows.
(i) Invoke My Computer program, Internet Explorer, Date and Time program, MS-
Word program and Notepad program, using methods described in point (a).
(ii) To switchover from one program to another, perform any one of the following:
• Click the mouse on program window's title bar.
• Click the mouse on program's button present in task manager area.
• Press Alt key and select the name of the program by pressing Tab key as
Chapter 5 – Windows 133
Figure 5.6
ASSIGNMENT -2
(a) Creating and removing a folder.
(i) Perform following steps to create a new folder on desktop:
• Right click the mouse at some blank space of the desktop. When you do so, a
menu as shown in figure 5.7 (a) will appear on the screen.
134 Basics Of Computer Science
(a) (b)
Figure 5.7
• Now select "New" option from this menu. When you do so, a submenu, as
shown in figure 5.7 (b) will appear on the screen.
• Select "Folder" option from this submenu. When you do so, a new folder will
get created on desktop. The name, "New Folder" will be automatically
assigned to this folder.
• Now, type the name of your choice and press "Enter" key. For example, type
"Letter" if you wish to assign the name Letter to new folder and press "Enter" key.
(ii) Perform following steps to delete a folder:
• Right click the mouse on the folder, which is to be deleted. When you do so, a
menu, as shown in figure 5.8(a) will appear on the screen.
(a) (b)
Figure 5.8
Chapter 5 – Windows 135
• (ii) Now select "Delete" option from this menu. When you do so, a
confirmation box, as shown in figure 5.8(b) will appear on the screen.
• If you wish to delete the folder, click the mouse on "Yes" button else click it
on "No" button.
Note that when you delete a file or folder then it does not get physically deleted from the
disk but it goes and gets stored in Recycle bin. When you delete the file from Recycle bin
then only the file gets deleted from the disk. Recycle bin in the form of an icon remains
available on your desktop. If you wish, you can recover the deleted items from Recycle bin.
(b) Making the taskbar wider, arranging icon on the desktop.
(i) To make the taskbar wider, place the mouse pointer on upper border of the
taskbar. When you do so, mouse pointer will get converted into double-headed
arrow.
Now drag the mouse upward. This will make the taskbar wider.
If you perform the same procedure but drag the mouse downwards, the taskbar
will become thinner.
(ii) Perform following steps to rearrange the icons on desktop:
• Right click the mouse on some blank portion of the desktop. When you do so,
a shortcut menu, as shown in figure 5.7(a) will appear on the screen.
• Select "Arrange Icon By" option from this menu. When you do so, another
popup menu, as shown in figure 5.9 will get displayed on the screen.
Figure 5.9
(a) (b)
Figure 5.10
• Select "Properties" option from this menu. When you do so, a dialog box, as
shown in figure 5.10 (b) will get displayed on the screen.
• Check "Show the clock" check box to display the clock or uncheck it to hide
the clock.
• At last, click then mouse on "OK" button.
(d) Controlling the size of Start menu options:
• Right click the mouse on some blank portion of the taskbar. When you do so, a
shortcut menu, as shown in figure 5.10(a) will appear on the screen.
• Select "Properties" option from this menu. When you do so, a dialog box, as shown in
figure 5.10(b) will get displayed on the screen.
• Click the mouse on "Start Menu" tab.
When you do so, options within the dialog
box will change and "Customize" button
will appear in it.
• Click the mouse on "Customize" button.
When you do so, a dialog box, as shown in
figure 5.11 will appear on the screen.
• Make use of "Number of programs on Start
menu:" spinner and set the number of
programs that should appear in Start menu.
• Click the mouse on "Advanced" tab and
select the names of all those programs that
you wish to keep in "Start" menu.
• Click the mouse on "OK" button. When
Figure 5.11
you do so, you will be taken back to the
dialog box, shown in figure 5.10(b).
• At last, click the mouse on "OK" button.
Chapter 5 – Windows 137
ASSIGNMENT -3
(a) Installing a screen saver.
(i) Perform following steps to set the screen saver:
• Right click the mouse on any empty place of Desktop. When you do so a
menu, as shown in figure 5.7(a) will appear on monitor screen.
• Now select "Properties" option from this menu. When you do so, a dialog
box, as shown in figure 5.12(a) will appear on monitor screen.
(a) (b)
Figure 5.12
• Click then mouse on "Screen Saver" tab. When you do so, another dialog box,
as shown in figure 5.12(b) will appear on monitor screen.
• Select the screen saver of your choice from "Screen Saver" drop down list
box.
138 Basics Of Computer Science
• Now make use of "Wait" spinner and specify the time after which the screen
saver should get activated, if no input/output activity takes place. For
example, if you specify this limit as 10 minutes and no input/output activity
takes place for 10 minutes then screen saver will automatically get activated.
• Using "Settings" button, set other related options. For example, what should
be the speed of moving patterns, what should be their shape etc, can be set by
clicking the mouse on this button.
• Now click the mouse on "OK" button.
(b) Assigning wallpaper to Desktop.
(i) Perform following steps to set the wallpaper for the desktop:
• Right click the mouse on any empty place of desktop. When you do so, a
menu, as shown in figure 5.7(a) will appear on monitor screen.
• Now select "Properties" option from
this menu. When you do so, a dialog
box, as shown in figure 5.12(a) will
appear on monitor screen.
• Click the mouse on "Desktop" tab.
When you do so, options within the
dialog box will change, as shown in
figure 5.13.
• Select the background from
Background list box. If some other
background than those available in
list box, is to be set then make use
of "Browse..." button.
• Now set the position and color,
using respective drop down lists
present in the dialog box.
• Now click the mouse on "OK" Figure 5.13
button.
(c) Adding a program to the Start menu.
(i) Perform following steps for adding a program to the Start menu:
• Create a shortcut of the program on desktop, using the method describe above.
• Drag the shortcut and drop it on Start menu.
(d) Recovering files and folders from Recycle bin.
(i) Perform following steps for recovering files and folders from Recycle bin:
• Double click the mouse on "Recycle Bin" icon that remains present on
desktop. When you do so, Recycle Bin window with many options and deleted
file/folder icons will appear on monitor screen.
Chapter 5 – Windows 139
• Select icons of all those files and folders, which are to be recovered.
• Now select "Restore" option present in Recycle Bin window.
(e) Customizing the mouse settings.
(i) Perform following steps for customizing the
mouse settings:
• Click the mouse on "Start" button. When
you do so, "Start" menu, as shown in
figure 5.3 will appear on the screen.
• Select "Control Panel" option from this
menu. When you do so, a window
containing many program icons in it
will appear on the screen.
• Now double click the mouse on
"Mouse" icon. When you do so, a dialog
box, as shown in figure 5.14 will appear
on the screen.
• Now click the mouse on the tab, related Figure 5.14
to which you wish to do the settings.
For example, if you wish to do mouse pointer related settings, click the mouse
on pointer option.
• Select desired option that gets displayed in the dialog box.
• Click the mouse on "OK" button.
ASSIGNMENT -4
(a) Expanding and collapsing a folder.
(i) Perform following steps for expanding and collapsing a folder:
• Invoke 'Windows Explorer" program (by first right clicking the mouse on
"Start" button. and then selecting "Explorer" option from the popup menu
that gets displayed thereafter). When you do so, Windows Explorer window,
as shown in figure 5.15 will appear on monitor screen.
Figure 5.15
140 Basics Of Computer Science
Note that the names of the folders get displayed in left pane and contents of the
current folder in right pane.
• To expand any folder, click the mouse on + sign that remains present on the
left hand side of the folder icon.
• To collapse any folder, click the mouse on - sign that remains present on the
left hand side of the folder icon.
(b) Recognizing file types, using icons.
(i) Following are the icons that symbolize different types of files and devices:
Represents a folder.
• Right click the mouse on the icon of the file/folder, which gets displayed in
right pane of Windows Explorer. When you do so, a popup menu, as shown in
figure 5.8(a) will appear on the screen.
• Select "Rename" option from this menu and type the new name of the file.
• At last press "Enter" key.
(e) Selecting two or more files for an operation.
(i) Perform following steps for selecting two or more file for an operation:
• To select contiguous block of files (say from fifth file to eleventh file), press
Shift key and first click the mouse on first file (fifth file) of the block and
then on the last file (eleventh file) of the block.
• To select multiple files (say fifth, seventh and ninth file), keep holding Ctrl
key and click the mouse on each file that is to be selected (i.e. fifth, seventh
and ninth file).
ASSIGNMENT - 5
(a) Displaying the properties of a file or folder.
(i) Perform following steps for displaying the properties of a file or folder:
• Right click the mouse on the icon of the file/folder, which gets displayed in
right pane of Windows Explorer. When you do so, a popup menu, as shown in
figure 5.8(a) will appear on the screen.
• Select "Properties" option from this menu. When you do so, properties of file
and folder will get displayed in a dialog box. Such a dialog box is shown in a
figure 5.16.
Figure 5.16
142 Basics Of Computer Science
window), contents of which are to be sorted. When you do so, all its files and
folder will get displayed in right pane.
• Select "View" option from bar menu. When you do so, View menu will
appear on the screen.
• Select "Arrange Icons by" option from View menu. When you do so, another
menu will appear on the screen.
• Now select option as per your requirement (Name, Size, Type, Modified etc.)
from this menu.
ASSIGNMENT - 6
(a) Finding a file or folder by name.
(i) Perform following steps for finding a file or folder, by name:
• Click the mouse on "Search" button present in Standard toolbar of Explorer
window. When you do so, few options appear in left pane of Windows
Explorer window. These options are shown in figure. 5.17(a).
(a) (b)
Figure 5.17
• Select "All Files and Folders" option. When you do so, a dialog box, as shown
in figure 5.17(b) will appear in left pane.
• Type the name of that file or folder, whose presence is to be searched, in "All
or part of the disk file name" text box.
• At last click the mouse on "Search" button.
(b) Defragmenting the disk using disk defragmenter.
(i) Perform following steps for defragmenting the disk, using disk defragmenter:
• Click the mouse on "Start" button. When do so, Start menu, as shown in
figure 5.18 (a), will appear on the screen.
• First select "All Programs" option from this menu and then "Accessories",
then "System Tools" and then "Disk Defragmenter" option from the submenus
that appear one after the other.
• When you do so, a dialog box, as shown in figure 5.18(b), will appear on the screen.
144 Basics Of Computer Science
(a) (b)
Figure 5.18
• Click the mouse on "Defragment" button.
When you do so, Windows will start the defragmentation process. Note that
defragmentation is a long and time-consuming process. Total time taken to
defragment the whole disk will depend upon the size of the disk and file
population on it.
(c) Compressing a file using WinZip.
(i) Perform following steps for compressing a file, using WinZip:
• Right click the mouse on file/folder, which is to be compressed. When do so,
a menu, as shown in figure 5.19(a), will appear on the screen.
• Now select "WinZip" option from this menu. When you do so, another menu,
as shown in figure 5.19(b) will appear on the screen.
• Now select "Add to Zip file..." option from this submenu. When you do so, a
dialog box, as shown in figure 5.19(c) will appear on the screen.
• Enter the name that you wish to assign to the compressed file in "Add to
archive" text box.
• Click the mouse on "Add" button. When you do so, WinZip window will
appear on the screen.
• Now close this window.
(d) Controlling the speaker volume.
(i) Perform following steps for controlling the speaker volume:
• Click the mouse on speaker icon that remains present in system tray. When
you do so, a slider, as shown in figure 5.20 will appear on monitor screen.
Figure 5.20
• Drag the slider upwards for increasing the volume. Dragging it down will
decrease the volume.
(e) Recording and saving an audio file.
(i) Perform following steps for recording and saving an audio file:
• Click the mouse on "Start" button. When you do so, a menu, as shown in
figure 5.18(a) will appear on the screen.
• Select "All Programs" option from this menu. When you do so, a submenu, as
shown in figure 5.18(a) will appear on the screen.
• Select "Accessories" option from this submenu. When you do so, a submenu,
as shown in figure 5.18(a) will appear on the screen.
• Select "Entertainment" option from this submenu. On doing so, another
submenu will appear on the screen.
(ii) Now, select "Sound Recorder" option from this submenu. On selecting this
option, sound recorder will appear on the screen, as shown in figure 5.21.
146 Basics Of Computer Science
Record Slider
• To start recording the sound, click the mouse on "Record" button. When you
do so, recording will start and the record slider will start moving forward.
Whatever will be spoken or sung in front of microphone, will get recorded.
• In order to stop the recording, click the mouse on "Stop" button.
• To play the sound that you just recorded, click the mouse on "Play" button.
When you do so, you will hear the recorded sound through speakers.
• After playing the sound once, if you wish to go to the beginning of the
recording, click the mouse on "Seek to Start" button. Similarly if you wish to
go to the end of the recording, click the mouse on "Seek to End" button.
(ii) Perform following steps for saving the recording in a file
• Select "File" option from the bar menu of the sound recorder. When you do
so, File submenu will appear on the screen.
• Select "Save" or "Save As" option from File submenu. When you do so, a
dialog box, will appear on the screen.
• From this dialog box, select the name, the drive and folder, in which you wish
to save the file.
• Type the name of the file in "File name" text box.
• Now click the mouse on "Save" button. When you do so, the sound file will
get stored in the specified file.
****
Computer Application Laboratory
CHAPTER 6
MS-WORD
MS-Word is word processing software that has been designed and developed by Microsoft
Corporation of USA. It is mainly used for entering the text in computer and formatting it in
presentable form. Its working details are described in this chapter.
(a) (b)
Figure 6.1
148 Basics Of Computer Science
When you do so, a window, as illustrated in figure 6.2 will appear on the screen. This
window is called Word Window.
System Menu Title bar Bar Menu
Button
Standard
Toolbar
Format
Toolbar Horizontal
Ruler
Insertion
Pointer
Figure 6.2
Marker provides the facility to start the current paragraph from a different position. It could
be dragged to a new position to define the starting place for the current paragraph. For
example, if the right margin has been set to 1 inch and Hanging Indent Marker has been
positioned at 1.5 inch then all the paragraphs other than the current paragraph will start
from 1 inch but the current paragraph will start from 1.5 inch.
Setting First Line Indent
First line Indent Marker provides the facility to start the first line of the paragraph from a
place other than that from where rest of the lines of the paragraph start. For example, all the
lines of the paragraph may start from the left margin (say 1 inch) but first line for the
paragraph may start from 1.5 inch from the left margin. To set the position of the first line
of the paragraph, First Line Indent Marker can be dragged to the desired position.
Setting Left Indent
Left Indent Marker facilitates simultaneous movement of First line Indent Marker and
Hanging Indent Marker. When you drag it, both the markers move together in the same
direction and by the same distance.
Setting Tab
Tab button, present in horizontal ruler, facilitates setting of tab positions for the Tab key.
To set the tab positions, first click the mouse on Tab button and then click it at-the desired
position in the ruler. This will put a mark in the ruler and set the tab position. When you
press the tab key, insertion pointer will jump to the set-tab-position. For example, if you set
the tab positions at 3, 5 and 7 inches then pressing the Tab key once will take the mouse
pointer to a place 3 inches away from left margin. When you press it again it will move 5
inches away and if you press it again, it will move it by 7 inches. To remove a tab position,
drag the tab mark and drop it off the ruler.
To overwrite on already entered text, first double click the mouse on OVR button, present
in status bar and then type the text. To come back to Insert mode, click the mouse on the
same button again.
To start a new paragraph, press Enter key.
EDITING OPERATIONS
After opening the file, you may wish to make few modifications in it. For example, you
may wish to delete few lines or you may wish to copy a part of the text from one place to
another or you may wish to move few lines of paragraphs from here to there. For
performing all such types of editing operations, you will have to first select the text, on
which you wish to perform the operation. MS-Word provides different mechanisms for
selecting different portions of the text. They are explained below.
6. For replacing the single occurrence of the word, click the mouse on "Replace"
button and for changing all the occurrences in one-go, click it on "Replace All"
button.
When the Replacement operation is over, "Cancel" button automatically changes to "Close"
button. By choosing "Close" button, you can close the search operation and return back to
the document.
Numbering Language
Bullets Subscript
Decrease Indent
Superscript
Increase Indent
Border Single Space
Highlight Font Color
Figure 6.9
To perform any formatting function, select the text, which is to be formatted and click the
mouse on the corresponding button.
For example, if you wish to make the first two lines of the text bold, select them and then
click the mouse on "Bold" button present in Format toolbar.
To make a bullet list enter each item of the list in a new line, select all the items and click
the mouse on "Bullets" button (to remove the bullet, select the list and click the mouse on
same button).
Similarly you can perform other formatting operations.
154 Basics Of Computer Science
Figure 6.10
3. Whether the forthcoming entry will be for header or footer, define that by clicking the
mouse on "Switch Between Header and Footer" button, as it alternates between them.
4. Enter header/footer text in the respective area.
5. If you wish to include current date or time as header or footer, click the mouse on
respective buttons present in "Header and Footer" toolbar.
6. To include the page number, take the insertion pointer to that place, where you wish
the page numbers to appear and then click the mouse on "Page Number" button,
present in "Header and Footer" toolbar.
7. Generally the page numbers start from 1 and are numbered as 1, 2, 3 etc. In case
you want them to start from some other number or want them to appear in different
format, such as (a, b, c etc.), click the mouse on "Format Page Number" button.
When you do so, another dialog box will appear on the screen. Define all the
options of your choice through that dialog box.
8. At last, click the mouse on "Close" button.
When you do so, defined header, footer page numbers etc. will be visible in the pages.
Chapter 6 – MS-WORD 155
Introducing Shading
6. Click the mouse on "Shading" tab.
When you do so, options shown
within the dialog box will change as
shown in figure 6.12.
7. Select the color, using which the
background of the border is to be
shaded. If somehow shading is to be
removed, select "No Fill" option.
8. Select pattern of the color, using
"Style" drop down list box.
9. At last, click the mouse on "Ok"
button. Figure 6.12
When you do so, border with selected colored background will get introduced around the
selected text.
Columns
Instead of text running in straight lines from left margin to right margin, it can be arranged
156 Basics Of Computer Science
Case Conversion
Perform following steps to make case related conversions in the typed text:
1. Select the text, in which case conversion is to be done.
2. Now select "Format" option from the bar menu. When you do so, Format submenu,
will appear on the screen.
3. Select "Change Case…" option from Format
submenu. When you do so, a dialog box, as shown
in figure 6.14 will appear on the screen.
4. Select the desired option from this dialog box and
click the mouse on "OK" button.
When you do so, case of the selected text will change
accordingly. The effect of each type of case conversion is
shown in table 6.15 Figure 6.14
Chapter 6 – MS-WORD 157
Table 6.15
Page Breaks
When you enter the text in MS-Word and the current page becomes
full, it automatically introduces a page break, called soft page break.
It takes the mouse pointer to the beginning of the next page so that
whatever you type now, gets typed on the next page. Apart from soft
page breaks, you can also introduce additional page breaks, at any
desired location of the document. These page breaks are called hard
page breaks. Perform following steps to introduce a hard page break,
at desired location:
1. Position the insertion pointer, at the place, where you wish to
introduce the page break.
2. Select "Insert" option from the bar menu. When you do so,
Insert submenu, as shown in figure 6.16, will appear on the
screen.
3. Select "Break..." option from Insert submenu. On selecting
this option, a dialog box, as shown in figure 6.17, will appear Figure 6.16
on monitor screen.
4. Select "Page Break" option from this dialog box.
5. At last, click the mouse on "OK" button.
When you do so, this page break will appear like dotted line, in
the Normal view mode.
All types of page breaks appear as thick line in Print Layout
View mode.
To remove hard page break, select the page break in Normal
view mode by clicking the mouse on it and then press Backspace
or Del key. Figure 6.17
158 Basics Of Computer Science
INTRODUCTION TO TABLE
Tables are the best means for illustrating classified data. They consist of rows and columns.
A blank table is shown in figure 6.18. The unit space formed by the intersection of rows
and column is called cell. Thus a table consisting of 3 rows and 4 columns will have 12
cells in it. MS-Word provides facility for creating tables and entering data in them. The
method of creating the table and entering data is given below:
4 columns
3 Rows
Figure 6.18
1. Select "Table" option from the bar menu. When you do so, "Table" submenu, as
shown in figure 6.19(a), will appear on the screen.
2. Select "Draw Table" option from
Table submenu. On selecting this
option, Table and Border toolbar,
as shown in figure 6.21 appears on
the screen.
Figure 6.21
3. Make use of different tools of this
toolbar and draw the table of your choice by dragging the mouse.
Entering Data In Table
To type the data in the table, click the mouse in desired cell and start typing the data from
keyboard. Using arrow keys, you can move within the cell. Pressing Tab key moves
insertion pointer ahead by 1 cell, while Shift and Tab keys pressed together take the
insertion pointer back by one cell.
Inserting A Row
Perform following steps to insert a row in an already existing table:
1. Place the insertion pointer in the row, above which you wish to insert a new row.
2. Select "Table" option from the bar menu. When you do so, a Table submenu, as
shown in figure 6.19(a), will appear on the screen.
3. Select "Insert" option from this submenu. On selecting this option, another
submenu, as shown in figure 6.19(b), will appear on the screen.
4. Now select "Row Above" option from this submenu.
When you do so, a blank row, above the insertion pointer will get created in the table.
Inserting A Column
To insert a column in an already existing table, place the insertion pointer in the column,
left to which, a new column is to be inserted. After this, perform all the steps mentioned in
"Inserting a row" section but select "Column to the Left" option instead of "Row above"
option in step (4).
Deleting Table Or Row Or Column
Perform following steps to delete the table, row(s) /column(s):
1. Select the table or row or column that is to be deleted.
2. First select "Table" option from the bar menu. When you do so,
Table submenu, as shown in figure 6.19 (a) will appear on Figure 6.22
monitor screen.
3. Select "Delete" option from Table submenu. When you do so, another submenu, as
shown in figure 6.22, will appear on monitor screen.
4. Select "Table", "Rows" or "Columns" option from this submenu.
160 Basics Of Computer Science
When you do so, the selected table, row or column will get deleted.
If you wish to delete the contents of the table/rows/columns and not the entire
table/row/column, select the contents and press Del key.
Inserting Picture
Perform following steps to insert picture in the document:
1. Click the mouse at that place in the document, where the picture is to be inserted.
2. Select "Insert" option from the bar menu. When you do so, Insert submenu, as shown in
figure 6.16 will appear on monitor screen.
3. Select "Picture" option from Insert submenu. When you do so, another submenu, as
shown in figure 6.23(a) will appear on the screen.
(a) (b)
Figure 6.23
4. Now select "From File..." option from this submenu. When you do so, a dialog box,
as shown in figure 6.23(b) will appear on monitor screen.
5. Select desired picture through this dialog box.
6. At last, click the mouse on "Insert" button.
When you do so, selected picture will get inserted in the document.
Chapter 6 – MS-WORD 161
(a) (b)
Figure 6.24
When you do so, On-line spell checker gets activated. Now, whenever you type a
misspelled word, red colored zigzag line automatically underlines it.
GRAMMAR CHECKER
MS-Word provides Grammar Checker facility, which can either be activated or deactivated
as per requirements. When activated, green color zigzag line underlines all grammatically
wrong sentences that have already been entered. After this, when next sentence is typed,
grammar checker checks it immediately, on-line.
Grammar checker not only provides the facility to check grammatically wrong sentences
but it also displays alternatives to correct them. How grammar checker is activated, how it
is made use of is explained below.
Perform following steps to activate the grammar checker:
1. Select "Tools" option from the Bar menu. When you do so, Tools submenu, as
illustrated in figure 6.24 (a) appears on the screen.
2. Select "Option" option from this submenu. When you do so, a dialog box, as
illustrated in figure 6.24(b) will appear on the screen. If somehow, different options
appear in the dialog box, click the mouse on "Spelling & Grammar" tab.
3. Now check "Check grammar as you type" check box.
4. Make sure that "Hide grammatical errors as you type" check box is unchecked.
5. At last click the mouse on "OK" button.
When you do so, Grammar checker will get activated and all grammatically wrong
sentences will get, underlined by green color zigzag line.
organizations then what do you do? Do you copy the letter to 10 or 15 different files and
change the names and addresses of organizations in individual files? No, this is not the
right solution. If you are working in MS-Word, it provides a facility called Mail Merge.
Using this facility, you can create two different files, one file containing data (i.e. names
and addresses of all the organizations) and other containing application (with name and
address left blank). After creation of these files, they are merged together, so that one letter
is created for each individual. Concept of Mail Merge is illustrated in 6.26.
One
Application MS-WORD
10 applications
(1 for each
Mail Merge organization)
Name, Address etc.
facility
Data of
10 organizations
Figure 6.26
Here names (spellings) of all individual items of header row and their sequence in header
row are important, wherever they will be referred, they will be referred by same name and
the data in the data file will have to be put in the same sequence.
Data
Data consists of those values, which are to be included in the letters. For example, if the
letters are to be sent to 4 organizations then there will be 4 rows of data. Each row will
contain values for each individual organization. Table shown here clearly illustrates header
row and data.
For generating letters through Mail Merge facility of MS-Word, you need to create main
document, data source and data, first. After this, data is merged with the main document
and letters are printed. Operational details for creating these items are given below.
4. Select "Form Letters" option from this list. When you do so, a dialog box as shown
in figure 6.29, will appear on the screen.
5. If you wish to create the document in current window, click the mouse on "Active
Window" button else click it on "New Main Document" button. In both the cases,
Mail Merge Helper screen, as shown in figure 6.30, will appear on the screen.
Chapter 6 – MS-WORD 165
Figure 6.30
Note that main document consists of text and the field names (header row constituent). So
in order to create the main document, you will have to write the text and the field names
also. But the field names have not yet been created. So let's first create the data source and
then create the main document.
Figure 6.33
Chapter 6 – MS-WORD 167
Say, for example, you prepare the main document, as shown in figure 6.37.
168 Basics Of Computer Science
Figure 6.38
Chapter 6 – MS-WORD 169
To To
Manager HRD Manager HRD
Sun Infotech Tech Art
1 Park street Mumbai 23 Dover Lane Delhi
2787531 2608529
This has reference to your advertisement This has reference to your advertisement
in the newspaper for the post of Systems in the newspaper for the post of Systems
Executive. Executive.
I find myself most suitable candidate for I find myself most suitable candidate for
this post. I am sending my resume for this post. I am sending my resume for
your kind consideration. your kind consideration.
Thanking you. Thanking you.
Ravi Krishana Ravi Krishana
To To
Manager HRD Manager HRD
Mastek Electro Magic
43 Mall Avenu Chennai 69 Broad Street Delhi
23405091 26589063
This has reference to your advertisement This has reference to your advertisement
in the newspaper for the post of Systems in the newspaper for the post of Systems
Executive. Executive.
I find myself most suitable candidate for I find myself most suitable candidate for
this post. I am sending my resume for this post. I am sending my resume for
your kind consideration. your kind consideration.
Thanking you. Thanking you.
Ravi Krishana Ravi Krishana
Figure 6.39
PRACTICAL
ASSIGNMENT -1
Prepare a newsletter with borders, two columns text, header and footer and a graphic image
and spell check the document.
(i) Set left and right margins for the entire document (Procedure is given on page 148).
(ii) Set two columns formatting for the page (Procedure is given on page 156).
170 Basics Of Computer Science
(iii) Type the following text in 11 points, Times New Roman, without caring about its
formatting:
The Crossover
A new business opportunity is coming up at the junction of hardware and software
embedded technology
An Indian boy selling newspapers at Stockholm railway station was unusual enough for
Sunil to investigate. The boy turned out to be a student at the Royal Institute of
Technology, Sweden. He talked excitedly about an idea for a pace marker that lasted
much longer than the ones available in the market. "Why don't you come and develop
this product in my laboratory?" asked Sunil.
The lab is a center of excellence for embedded systems at Tata Consultancy services (TCS) in
Bangalore. Sunil had set it up only a year ago, after quitting Sasken Communication
Systems. "I had approached TCS with this idea of an embedded systems lab and TCS had
agreed," say Sunil. Despite being the largest software services company in India, TCS had
not worked on embedded system other than in telecommunications. It was slow off the
blocks, but the company was trying to make up for lost time.
Sunil's lab's mandate was not to provide services. It would to research, develop
technologies, and build product; not just software but complete devices. Whenever a
product came out, it would be sold under the TCS brand name. The first device could
be patient health monitoring system. The next one could be a box that would increase
spectrum utilisation in CDMA (code division multiple access) networks. The third
device could be the boy's pacemaker.
(iv) Now perform following steps to edit and format the text:
• Find the word utilisation in the document and replace it with utilization
(Procedure is given on page 152).
• Put the heading, "The Crossover" in 24 points bold, Arial Black (Procedure is
given on page 153).
• Put the border around "The Crossover" heading (Procedure is given on page 155).
• Make the text, starting with the words "A new business opportunity…..." till
“embedded technology” as subheading. Put them in 14 points bold, italic and
underlined (Procedure is given on page 153).
• Import the picture in the document (Procedure is given on page 160).
• Align the paragraphs (Procedure is given on page 153).
• Format the document, as shown below.
• Save the document in a file.
Chapter 6 – MS-WORD 171
Technology News
Page 1
ASSIGNMENT -2
Creating a table to show the paradigm of the verb "eat" in all 12 tenses.
(i) Create a table, consisting of 13 rows and 5 columns (Procedure is given on page 158).
(ii) Select cells (2 nd row,1 st column), (3,1) and (4,1) and merged them together
(Procedure is given on page 160).
(iii) Select cells (5,1), (6,1) and (7,1) and merged them together (Procedure is given
on page 160).
172 Basics Of Computer Science
(iv) Select cells (8,1), (9,1) and (10,1) and merged them together (Procedure is given
on page 160).
(iv) Select cells (11,1), (12,1) and (13,1) and merged them together (Procedure is
given on page 160).
(v) Type the text in the table, as shown below.
ASSIGNMENT - 3
Prepare your Bio-data/Resume.
(i) Set left and right margins for the entire document (Procedure is given on page 148).
(ii) Type your details.
(iii) Format the document.
ASSIGNMENT - 4
(i) Do the mail merge operation for sending applications to many companies with
your resume.
• Create the main document (i.e. application). Format of the application is
shown in figure 6.37 and the procedure for creating the application is given on
page 164.
• Create the data source (i.e. field names and data). Details of data source are
given on page 164 . Procedure for creating data source is on page 165.
• Merge main document with data source to generate applications for many
companies. Procedure for merging them is given on page 168.