Documente Academic
Documente Profesional
Documente Cultură
The smallest and most basic type of network, a PAN is made up of a wireless modem, a computer or two, phones,
printers, tablets, etc., and revolves around one person in one building. These types of networks are typically found in
small offices or residences, and are managed by one person or organization from a single device.
We’re confident that you’ve heard of these types of networks before – LANs are the most frequently discussed
networks, one of the most common, one of the most original and one of the simplest types of networks. LANs
connect groups of computers and low-voltage devices together across short distances (within a building or between
a group of two or three buildings in close proximity to each other) to share information and resources. Enterprises
typically manage and maintain LANs.
Using routers, LANs can connect to wide area networks (WANs, explained below) to rapidly and safely transfer
data.
These types of networks are larger than LANs but smaller than WANs – and incorporate elements from both types
of networks. MANs span an entire geographic area (typically a town or city, but sometimes a campus). Ownership
and maintenance is handled by either a single person or company (a local council, a large company, etc.).
Slightly more complex than a LAN, a WAN connects computers together across longer physical distances. This
allows computers and low-voltage devices to be remotely connected to each other over one large network to
communicate even when they’re miles apart.
The Internet is the most basic example of a WAN, connecting all computers together around the world. Because of a
WAN’s vast reach, it is typically owned and maintained by multiple administrators or the public.
a) Mesh Topology :
In mesh topology, every device is connected to another device via particular channel.
It is robust.
Fault is diagnosed easily. Data is reliable because data is transferred among the devices
through dedicated channels or links.
Provides security and privacy.
b) Star Topology :
In star topology, all the devices are connected to a single hub through a cable. This hub is the central node and all
others nodes are connected to the central node. The hub can be passive in nature i.e. not intelligent hub such as
broadcasting devices, at the same time the hub can be intelligent known as active hubs. Active hubs have repeaters
in them.
Advantages of this topology :
If N devices are connected to each other in star topology, then the number of cables required
to connect them is N. So, it is easy to set up.
Each device require only 1 port i.e. to connect to the hub.
If the concentrator (hub) on which the whole topology relies fails, the whole system will crash
down.
Cost of installation is high.
Performance is based on the single concentrator i.e. hub.
c) Bus Topology :
Bus topology is a network type in which every computer and network device is connected to single cable. It
transmits the data from one end to another in single direction. No bi-directional feature is in bus topology.
If N devices are connected to each other in bus topology, then the number of cables required
to connect them is 1 which is known as backbone cable and N drop lines are required.
Cost of the cable is less as compared to other topology, but it is used to built small networks.
If the common cable fails, then the whole system will crash down.
If the network traffic is heavy, it increases collisions in the network. To avoid this, various
protocols are used in MAC layer known as Pure Aloha, Slotted Aloha, CSMA/CD etc.
d) Ring Topology :
In this topology, it forms a ring connecting a devices with its exactly two neighbouring devices.
1. One station is known as monitor station which takes all the responsibility to perform the
operations.
2. To transmit the data, station has to hold the token. After the transmission is done, the token
is to be released for other stations to use.
3. When no station is transmitting the data, then the token will circulate in the ring.
4. There are two types of token release techniques : Early token release releases the token
just after the transmitting the data and Delay token release releases the token after the
acknowledgement is received from the receiver.
Experiment No. 1:
Objective: Understanding and use of variables of float and other data types.
Task: Develop a simple Calculator application as per given screen snapshot, to
implement +, -, x and / operations. The text boxes get cleared when ‘C’ button
is clicked.
2
Experiment No. 3:
Objective: To calculate the total marks, percentage and grades on the basis of percentage
as given below.
3
4
Experiment No. 4:
Objective: To check whether the given user id and password is correct or not.
5
Experiment No. 5:
Objective: Understanding and use of Nested loops and Text Area control.
Task: Develop a Java application to print a Pattern for given character and steps, as
per given screen shot.
6
Experiment No. 6:
Objective: Understanding the use of loops and mathematical operations.
Task: Develop an application to compute the sum of digits for given number.
7
8
Experiment No. 7:
Objective: To concate two strings.
Experiment No. 8:
Objective: Demonstration of use of Combo Box through code.
9
Experiment No. 9:
Objective: Understanding the Web Page and use of different Tags and attributes.
<HTML>
<HEAD>
<TITLE> Computer Viruses</TITLE>
</HEAD>
<BODY BGCOLOR= #00ffff Topmargin=40 leftmargin=40>
<BASEFONT SIZE=3 FACE="Arial">
<IMG src="photo1.jpg" width="78" height="46" align="left">
<H1> What is Computer Virus?</H1>
<p align=left> A <b>virus</b> is basically an <i>executable file</i> that is designed
such that it is able to infect documents, has ability to survive by <u>replicating</u>
itself.<br> Usually to avoid detection, a virus disguises itself as a legitimate program that a
user would not normally suspect to be virus. </p>
<H2> Whar Virus can do? </H2>
<p> <font size=5 color= #ff0000 >Viruses </font>are designed to corrupt or delete data
on the hard disk, i.e. on the FAT (File Allocation Table).</p>
<H2> Types of Virus </H2>
<hr size=6 width=100% noshade>
<Font color= Maroon>
<p> Boot Sector Viruses </p>
<p> File or Program Viruses</p>
<a href="http://www.google.com/" ><font color="#ffff00" size=3> Get more on
Google.com</font></a>
</BODY>
</HTML>
10
Experiment No. 10:
Objective: Understanding the Web Form and use of different components to design
an interactive form.
<html>
<head><title> My page </title> </Head>
<body>
<H1> <U>ADMISSSION ENQUIRY FORM </u></h1>
<Form method=Post action= "maoilto:hashim_mbd@yahoo.co.in">
<b>Name </b> <Input type=Text name="st_name"><br>
<b>Gender </b>
<Input type=Radio name="gender" value="Male"> Male
<Input type=Radio name="gender" value="Female"> Female<Br>
</b>E-mail </B><Input type=Text Name ="email“> <br>
Stream <SELECT name="stream">
<Option value="Science"> Science </Option>
<Option value="Commerce"> Commerce </OPTION>
<Option value="Arts"> Arts </Option>
</SELECT> <Br>
Comment<Br>
<TextAREA name="comment" Rows=5 cols=50> </TEXTAREA><br>
<INPUT Type=Submit Value ="Send">
<INPUT Type=Reset Value ="Clear">
</Form>
</body>
</html>
11
Experiment No. 11
Objective: Understanding the use of MySQL queries.
6 Add one column State of data type VARCHAR and size 30 to table
DEPT Ans: alter table DEPT
Add(state varchar(30));
9 Write a query to display EmpName and Sal of employees whose salary are greater
than or equal to 2200
Ans: select empname, sal
from emp
where sal>=2200;
10 Write a query to display details of employees who are not getting commission.
Ans: select *
from emp
where comm is NULL;
11 Write a query to display employee name and salary of those employees who don’t
have their salary in range of 2500 to 4000.
Ans: select empname, sal
From emp
Where sal not between 2500 and 4000;
21
12 Write a query to display the name of employee whose name contains “A” as third
alphabet in Ascending order of employee names.
Ans: select empname
From emp
Where empname like “ A%”
Order by empname;
13 Display the sum of salary and commission of employees as “Total Incentive” who
are getting commission
Ans: select sal+comm As “Total Incentive”
From emp
where comm is not NULL;
14 Show the average salary for all departments with more than 5 working people.
Ans: select avg(sal)
From emp
Group by deptid
Having count(*)>5;
22
21. Display the name of Employees who is working in SALES department.
Ans: select empname
From emp, dept
Where deptName=”SALES” and emp.DeptID=dept.DeptID;
29. Delete all the records who is working as “SALESMAN” and salary more than
1500.
Ans: delete from emp
Where designation=” SALESMAN” and sal>1500;
30. Set the commission as 100 who are not getting any commission.
Ans: update emp
Set comm= 100
Where comm Is NULL;
23