Page 1
Additi
al Programs
Program for addition of two no’s in java script
of Linear Search
Program for displaying an image on mouse click
Using JavaScript sort given array in ascending and descending
__rendered_path__126
on
__rendered_path__126
s.no
__rendered_path__127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Programs
Program for implementation of Fonts
Program for implementation of Table
Program for implementation of List
Program for implementation of Switch case
Program to find maximum of 3 no’s
Program for Entering a password
Program for implementation of Thambola
Program for Factorial
Program for Addition of two Matrices
Program for Online Exam
Program for Bubble Sort
Program for implementation
Program for Exhibiting Blending Effect
Program Code To Exhibit X-ray Effect
Program Code To Exhibit Shadow Effect
Program Code To Exhibit Wave Effect
Program for implementing Animation
Program To display background Sound
Program To add video file
order.
__rendered_path__126
__rendered_path__126
__rendered_path__128__rendered_path__128__rendered_path__126__rendered_path__126__rendered_path__127__rendered_path__126__rendered_path__126

Page 2
AIM
Write a script for selection sort.
PROGRAM
<html>
<head>
__rendered_path__90
__rendered_path__90
__rendered_path__90
__rendered_path__90
<title> Sort
</title>
<script language="Javascript">
var b,i,j,temp;
var a;
a=[];
document.write("Enter array");
for(i=0;i<5;i++)
{
b=prompt("enter array element=","0");
a[i]=parseInt(b);
}
for(i=0;i<5;i++)
{
document.write("<br>"+a[i]);
}
document.write("<br>Sorted array is");
__rendered_path__91__rendered_path__92__rendered_path__92__rendered_path__90__rendered_path__90__rendered_path__91__rendered_path__90__rendered_path__90
-1-

Page 3
document.write("<br>"+a[i]);
/head></html>
__rendered_path__79
__rendered_path__79
__rendered_path__80
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
if(a[i]<a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}
for(i=0;i<5;i++)
{
}
</script>
<
__rendered_path__79
__rendered_path__79
__rendered_path__81__rendered_path__81__rendered_path__79__rendered_path__79__rendered_path__80__rendered_path__79__rendered_path__79
-2-

Page 4
__rendered_path__36
OUTPUT
__rendered_path__36
Image_22_0__rendered_path__37
Image_23_0__rendered_path__36
__rendered_path__36
Image_24_0
Enter array
4
2
5
Sorted array is
2
4
5
__rendered_path__38__rendered_path__38__rendered_path__36__rendered_path__36__rendered_path__37__rendered_path__36__rendered_path__36
-3-

Page 5
Write Java Script that inputs three integers from the user and outputs their
sum, average, largest. Use alert dialog box to display results.
PROGRAM
__rendered_path__69
AIM
__rendered_path__69
__rendered_path__70
__rendered_path__69
__rendered_path__69
<html> <head> <title> MAX </title>
<script language="javascript">
var a,b,c,n1,n2,n3,m1,m2,sum,avg;
a=prompt("enter 1st no="," ");
b=prompt("enter 2nd no="," ");
c=prompt("enter 3rd no="," ");
n1=parseInt(a);
n2=parseInt(b);
n3=parseInt(c);
sum=n1+n2+n3;
avg=sum/3;
m1=Math.max(n1,n2);
m2=Math.max(n3,m1);
alert("the sum is= "+sum);
alert("the avg is= "+m2);
alert("the max no is "+m2);
</script> </head></html>
__rendered_path__71__rendered_path__71__rendered_path__69__rendered_path__69__rendered_path__70__rendered_path__69__rendered_path__69
-4-

Page 6
__rendered_path__20
OUTPUT
Image_29_0
Image_30_0
-5-
Image_33_0
__rendered_path__20
__rendered_path__20
Image_31_0Image_32_0Image_34_0__rendered_path__20__rendered_path__21__rendered_path__22__rendered_path__22__rendered_path__20__rendered_path__20__rendered_path__21__rendered_path__20__rendered_path__20

Page 7
AIM
Write a
PROGRAM
__rendered_path__76
__rendered_path__76
script to write word equivalent of a check amount.
__rendered_path__76
<html>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var checkflag = "false";
function check(field)
{
if (checkflag == "false")
{
for (i = 0; i < field.length; i++)
{
field[i].checked = true;}
checkflag = "true";
return "Uncheck All";
}
else
{
for (i = 0; i < field.length; i++)
{
field[i].checked = false;
__rendered_path__76__rendered_path__77__rendered_path__78__rendered_path__78__rendered_path__76__rendered_path__76__rendered_path__77__rendered_path__76__rendered_path__76
-6-

Page 8
__rendered_path__66
}
__rendered_path__66
checkflag = "false";
__rendered_path__67
return "Check All";
__rendered_path__66
}
__rendered_path__66
}
</script>
</HEAD>
<BODY>
<center>
<form name=myform action="" method=post>
<table>
<tr><td>
<b>Your Favorite Scripts & Languages</b><br>
<input type=checkbox name=list value="1">Java<br>
<input type=checkbox name=list value="2">JavaScript<br>
<input type=checkbox name=list value="3">ASP<br>
<input type=checkbox name=list value="4">HTML<br>
<input type=checkbox name=list value="5">SQL<br>
<br>
<inputtype=button value="Check All"
onClick="this.value=check(this.form.list)">
</td></tr>
</table>
__rendered_path__68__rendered_path__68__rendered_path__66__rendered_path__66__rendered_path__67__rendered_path__66__rendered_path__66
-7-

Page 9
__rendered_path__31
OUTPUT
__rendered_path__31
__rendered_path__32
__rendered_path__31
</form>
__rendered_path__31
</center>
</body>
</html>
Image_41_0
__rendered_path__33__rendered_path__33__rendered_path__31__rendered_path__31__rendered_path__32__rendered_path__31__rendered_path__31
-8-

Page 10
<style type=”text/css”></head>
em{backgroundcolor:#8000ff;color=white}
h1{font family:Lucida console;color:red}
9
__rendered_path__60
AIM
__rendered_path__60
Practice writing css rules
__rendered_path__61
PROGRAM
<html>
<head>
<title>style sheets</title>
p{font size:30pt}
sp{color:red}
</style>
</head>
<body>
<h2class=”sp”>testing</h2>
<em><h1>test</h1></em>
<em>test1</em>
<p>test2</p>
</body>
</html>
-
__rendered_path__60
__rendered_path__60
__rendered_path__62__rendered_path__62__rendered_path__60__rendered_path__60__rendered_path__61__rendered_path__60__rendered_path__60
-

Page 11
__rendered_path__33
OUTPUT
__rendered_path__33
testing
__rendered_path__34
test
__rendered_path__33
test1
__rendered_path__33
test2
__rendered_path__35__rendered_path__35__rendered_path__33__rendered_path__33__rendered_path__34__rendered_path__33__rendered_path__33
-10-

Page 12
Write a web page that displays grades of a student.
PROGRAM
{ a=prompt("enter ur grade=","0");
__rendered_path__68
AIM
__rendered_path__68
__rendered_path__69
<html>
<head>
<title> STUDENT GRADES
</title>
<script language="java script">
var a,n,b,c,sum=0,avg=0;
b=prompt("enter student no=","0");
n=parseInt(b);
while(n<=10)
c=parseInt(a);
sum=sum+c;
n++;
}
avg=sum/n;
document.write("avg is"+avg);
</script>
</head></html>
-11-
__rendered_path__68
__rendered_path__68__rendered_path__70__rendered_path__70__rendered_path__68__rendered_path__68__rendered_path__69__rendered_path__68__rendered_path__68

Page 13
__rendered_path__36
AIM
__rendered_path__36
Write a function that responds to a click anywhere on the page.
__rendered_path__37
PROGRAM
__rendered_path__36
<html>
__rendered_path__36
<body>
<center>
[<a href="/" onMouseOver="document.bgColor='Green'">GREEN</a>]
[<a href="/" onMouseOver="document.bgColor='Red'">RED</a>]
[<a href="/" onMouseOver="document.bgColor='orange'">orange</a>]
[<a href="/" onMouseOver="document.bgColor='green'">brightgreen</a>]
[<a href="/" onMouseOver="document.bgColor='seagreen'">seagreen</a>]
</center>
</body>
</html>
__rendered_path__38__rendered_path__38__rendered_path__36__rendered_path__36__rendered_path__37__rendered_path__36__rendered_path__36
-12-

Page 14
OUTPUT
13
__rendered_path__19
__rendered_path__19
__rendered_path__20
Image_56_0
-
__rendered_path__19
__rendered_path__19
Image_57_0__rendered_path__21__rendered_path__21__rendered_path__19__rendered_path__19__rendered_path__20__rendered_path__19__rendered_path__19
-

Page 15
Program for implementation of Fonts
<br><b><font face=”Times New Rom
an”>Font Check</font></b>
<br><i><font face=”Times New Roman”><font size=4><font color=”black”>All
__rendered_path__54
__rendered_path__54
AIM
__rendered_path__55
PROGRAM
<html>
<head>
<title>Font Test</title>
</head>
<body>
Operations</font></i>
<br><i><b>Bold italic check</b></i>
</body>
</html>
OUTPUT
__rendered_path__44
Font Check
All Operations
Bold italic check
__rendered_path__54
__rendered_path__54__rendered_path__56__rendered_path__56__rendered_path__54__rendered_path__54__rendered_path__55__rendered_path__54__rendered_path__54
-14-

Page 16
AIM
Program for crea
PROGRAM
<table border="1" width="5" height="5" bordercolor="red">
<caption> Student Marks </caption>
15
__rendered_path__74
ting a table
<! code to show the use of tables>
<html>
<head>
<title> Using Tables</title>
</head>
<body><center>
<thead>
<tr>
<th>Name</th>
<th>Marks</th>
</tr>
</thead>
<tbody>
<tr>
<td>alok</td>
<td>90</td>
</tr>
<tr>
-
__rendered_path__74
__rendered_path__74
__rendered_path__74__rendered_path__75__rendered_path__76__rendered_path__76__rendered_path__74__rendered_path__74__rendered_path__75__rendered_path__74__rendered_path__74
-

Page 17
<td>ankush</td>
<th>Avg Marks</th>
__rendered_path__58
__rendered_path__58
__rendered_path__59
<td>anuj</td>
<td>90</td>
</tr>
<tr>
<td>90</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>90</th>
</tr>
</tfoot>
</body>
</html>
__rendered_path__58
__rendered_path__58
__rendered_path__60__rendered_path__60__rendered_path__58__rendered_path__58__rendered_path__59__rendered_path__58__rendered_path__58
-16-

Page 18
__rendered_path__25
OUTPUT
__rendered_path__25
__rendered_path__26
Image_66_0__rendered_path__25
__rendered_path__25
__rendered_path__27__rendered_path__27__rendered_path__25__rendered_path__25__rendered_path__26__rendered_path__25__rendered_path__25
-17-

Page 19
__rendered_path__66
AIM
__rendered_path__66
Program for implementation of List
__rendered_path__67
PROGRAM
__rendered_path__66
<html>
__rendered_path__66
<body>
<ul>
<li>list1</li>
</ul><ul> <li>Gnec</li>
<ol>
<li>IT</li>
<li>CSE</li>
<li>ECE</li>
</ol></ol></ul></body></html>
OUTPUT
__rendered_path__46
• list1
• Gnec
1. IT
2. CSE
3. ECE
__rendered_path__68__rendered_path__68__rendered_path__66__rendered_path__66__rendered_path__67__rendered_path__66__rendered_path__66
-18-

Page 20
__rendered_path__83
AIM
__rendered_path__83
Write a java script to compute addition of two numbers
__rendered_path__84
PROGRAM
__rendered_path__83
<html>
__rendered_path__83
<head>
<title>
Java Script Add
</title>
<script language="java script">
alert("Addition \n of two numbers!");
var num1, num2,n1,n2,sum;
num1=window. prompt("Enter the first number","0");
num2=window. prompt("Enter the second number","0");
n1=parseInt(num1);
n2=parseInt(num2);
sum=n1+n2;
alert("sum is"+sum);
</script>
</head>
<body>
</body>
</html>
__rendered_path__85__rendered_path__85__rendered_path__83__rendered_path__83__rendered_path__84__rendered_path__83__rendered_path__83
-19-

Page 21
OUTPUT
Addition of 10 and 20 : 30
__rendered_path__25
__rendered_path__25
__rendered_path__26
Image_75_0
-20-
__rendered_path__25
__rendered_path__25
__rendered_path__10Image_76_0__rendered_path__27__rendered_path__27__rendered_path__25__rendered_path__25__rendered_path__26__rendered_path__25__rendered_path__25

Page 22
AIM
Program for implementation of Switch case
PROGRAM
__rendered_path__77
__rendered_path__77
__rendered_path__77
<html>
<head>
<title>
USING THE SWITCH STATEMENT
</title>
<script language ="Javascript">
var num=true;var choice,ch,ft,lt,head;
choice=window.prompt(" 1. BOLD 2. ITALICS 3. UNDERLINED
......","1");
ch =parseInt(choice);
switch(ch)
{
case 1: ft="<b>";
lt="</b>";
head="<h1> This is in BOLD </h1>";
break;
case 2: ft="<i>";
lt="</i>";
head="<h1> This is in ITALICS </h1>";
break;
case 3: ft="<u>";
__rendered_path__77__rendered_path__78__rendered_path__79__rendered_path__79__rendered_path__77__rendered_path__77__rendered_path__78__rendered_path__77__rendered_path__77
-21-

Page 23
This is in UNDERLINED
Text
__rendered_path__62
__rendered_path__62
__rendered_path__62
lt="</u>";
__rendered_path__62
head="<h1> This is in UNDERLINED </h1>";
break;
default : num=false;
break;
}
if(num==true)
document.write(head+ft+" <h1>Text </h1>"+lt);
else
document.write(" <h1>Wrong Choice ! try again.");
</script>
</head>
<body>
</body>
</html>
OUTPUT
Image_81_0
__rendered_path__60__rendered_path__63__rendered_path__64__rendered_path__64__rendered_path__62__rendered_path__62__rendered_path__63__rendered_path__62__rendered_path__62
-22-

Page 24
AIM
Program to find maximum of 3 no’s
PROGRAM
__rendered_path__52
__rendered_path__52
__rendered_path__52
<html>
<head> <title> Maximum of Number </title>
<script language ="Javascript">
var a,b,c,a1,b1,c1,max1,max2;
a=window.prompt("Enter first number >>","0");
b=window.prompt("Enter second number >>","1");
c=window.prompt("Enter third number >>","2");
a1=parseInt(a);
b1=parseInt(b);
c1=parseInt(c);
max1=Math.max(a,b);
max2=Math.max(max1,c);
document.write("<br><br><br><center><h1>Maximum number of "+a1+",
"+b1+" and "+c1+" is "+max2);
</script>
<body></body>
</html>
__rendered_path__52__rendered_path__53__rendered_path__54__rendered_path__54__rendered_path__52__rendered_path__52__rendered_path__53__rendered_path__52__rendered_path__52
-23-

Page 25
Output
Maximum number of 6, 1 and 9 is 9
__rendered_path__25
__rendered_path__25
__rendered_path__26
Image_93_0
Image_91_0
Image_92_0
-24-
__rendered_path__25
__rendered_path__25
__rendered_path__27__rendered_path__27__rendered_path__25__rendered_path__25__rendered_path__26__rendered_path__25__rendered_path__25

Page 26
Program for Entering a password
PROGRAM
__rendered_path__56
AIM
__rendered_path__56
__rendered_path__57
__rendered_path__56
__rendered_path__56
<html>
<head>
<title>event clicking</title>
<script language="javascript">
function passwordCheck()
{
var pw=ole.pw.value;
var cpw=ole.cpw.value;
if(pw!=cpw)
window.alert("Re-enter your password");
}
</script></head>
<center>
<body font size=5 bgcolor="cyan" leftmargin=120 topmargin=120 >
<Form id="ole" onSubmit="passwordCheck(this)">
__rendered_path__58__rendered_path__58__rendered_path__56__rendered_path__56__rendered_path__57__rendered_path__56__rendered_path__56
-25-

Page 27
__rendered_path__40
PASSWORD:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
__rendered_path__40
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
__rendered_path__41
p;
__rendered_path__40
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
__rendered_path__40
<input type=password name="pw"size=10 max length=8 > </input>
<br><br><br>
CONFIRM
PASSWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n
bsp;&nbsp;&nbsp;&nbsp;
<input type=password name="cpw"size=10 max length=8 > </input>
<br><br><br>
<input type="submit" name="sub" value="submit"> &nbsp; &nbsp;
<input type="reset" name="rt" value="reset"></center
</body>
</html>
__rendered_path__42__rendered_path__42__rendered_path__40__rendered_path__40__rendered_path__41__rendered_path__40__rendered_path__40
-26-

Page 28
27
__rendered_path__21
__rendered_path__21
__rendered_path__22
OUTPUT
__rendered_path__8
-
__rendered_path__21
Image_100_0__rendered_path__21__rendered_path__23__rendered_path__23__rendered_path__21__rendered_path__21__rendered_path__22__rendered_path__21__rendered_path__21
-

Page 29
AIM
Program for implementation of Thambola
PROGRAM
<head>
__rendered_path__68
__rendered_path__68
__rendered_path__68
<html>
<title> J Script </title>
<script language="javascript">
var value;
alert("thambola");
document.writeln("<table border=1 width=50% align=center> ");
document.writeln("<caption> Thambola </caption><tr>");
for(var i=1;i<=15;i++)
{
value=Math.floor(1+Math.random()*100);
document.writeln("<td>"+value+"</td>");
if(i%5==0 )
document.writeln("</tr><tr>");
}
document.writeln("</tr></table>");
__rendered_path__68__rendered_path__69__rendered_path__70__rendered_path__70__rendered_path__68__rendered_path__68__rendered_path__69__rendered_path__68__rendered_path__68
-28-

Page 30
</script>
OUTPUT
__rendered_path__29
__rendered_path__29
__rendered_path__30
</head>
</html>
__rendered_path__29
Image_105_0Image_106_0__rendered_path__29__rendered_path__31__rendered_path__31__rendered_path__29__rendered_path__29__rendered_path__30__rendered_path__29__rendered_path__29
-29-

Page 31
Program for Factorial
PROGRAM
<head><u><center><b>RECU
a=prompt("enter any no","0");
document.writeln("<br> THE FACTORIAL OF "+i+" IS >> "+res);
__rendered_path__78
AIM
__rendered_path__78
__rendered_path__79
<html>
<title>
factorial
</title>
<script lang="javascript">
var i,fact,a,n;
n=parseInt(a);
for (i=1;i<=n;i++)
{
res=fact(i);
}
function fact(x)
{
if(x==0 || x==1)
return(1);
else
return(x*fact(x-1));
__rendered_path__78
RSIVE FACTORIAL</b><br></u>
__rendered_path__78
__rendered_path__80__rendered_path__80__rendered_path__78__rendered_path__78__rendered_path__79__rendered_path__78__rendered_path__78
-30-

Page 32
</script>
</head>
__rendered_path__41
OUTPUT
__rendered_path__41
__rendered_path__42
}
</html>
__rendered_path__41
__rendered_path__41
RECURSIVE FACTORIAL
__rendered_path__23
THE FACTORIAL OF 1 IS >> 1
THE FACTORIAL OF 2 IS >> 2
THE FACTORIAL OF 3 IS >> 6
THE FACTORIAL OF 4 IS >> 24
THE FACTORIAL OF 5 IS >> 120
Image_111_0__rendered_path__43__rendered_path__43__rendered_path__41__rendered_path__41__rendered_path__42__rendered_path__41__rendered_path__41
-31-

Page 33
AIM
Program for addition of two matrices
PROGRAM
<html>
<head>
<title>Array Addition</title>
<script language="javascript">
__rendered_path__111
__rendered_path__111
__rendered_path__111
var a,n,i,j,b,c;
a=[[],[]];
b=[[],[]];
c=[[],[]];
n=parseInt(window.prompt("Enter the array size"," "));
window.alert("Enter the elements in the first array");
for (i=0;i<n;i++)
{
for (j=0;j<n;j++)
{
a[i][j]=parseInt(window.prompt("Enter the element",""));
}
}
window.alert("Enter the elements in the second array");
for (i=0;i<n;i++)
{
__rendered_path__111__rendered_path__112__rendered_path__113__rendered_path__113__rendered_path__111__rendered_path__111__rendered_path__112__rendered_path__111__rendered_path__111
-32-

Page 34
__rendered_path__128
for (j=0;j<n;j++)
__rendered_path__128
{
__rendered_path__129
b[i][j]=parseInt(window.prompt("Enter the element",""));
__rendered_path__128
}
__rendered_path__128
}
document.writeln("<br>The elements of Ist Matrix are..");
for (i=0;i<n;i++)
{
for (j=0;j<n;j++)
{
document.writeln(a[i][j]);
}
}
document.writeln("<br>The elements of IInd Matrix are..");
for (i=0;i<n;i++)
{
for (j=0;j<n;j++)
{
document.writeln(b[i][j]);
}
}
for (i=0;i<n;i++)
{
__rendered_path__130__rendered_path__130__rendered_path__128__rendered_path__128__rendered_path__129__rendered_path__128__rendered_path__128
-33-

Page 35
document.writeln("<br>The addition of matrices is:");
for (i=0;i<n;i++)
</script>
</html>
OUTPUT
__rendered_path__99
__rendered_path__99
__rendered_path__100
</head>
}
{
}
__rendered_path__99
for (j=0;j<n;j++)
__rendered_path__99
{
c[i][j]=a[i][j]+b[i][j];
}
for (j=0;j<n;j++)
{
document.writeln(c[i][j]);
}
Image_118_0__rendered_path__101__rendered_path__101__rendered_path__99__rendered_path__99__rendered_path__100__rendered_path__99__rendered_path__99
-34-

Page 36
__rendered_path__14
Image_121_0
-35-
__rendered_path__14
__rendered_path__14
Image_122_0Image_122_0Image_122_0__rendered_path__14__rendered_path__15__rendered_path__16__rendered_path__16__rendered_path__14__rendered_path__14__rendered_path__15__rendered_path__14__rendered_path__14

Page 37
__rendered_path__16
Image_122_0
-36-
__rendered_path__16
__rendered_path__16
Image_118_0Image_125_0Image_122_0__rendered_path__16__rendered_path__17__rendered_path__18__rendered_path__18__rendered_path__16__rendered_path__16__rendered_path__17__rendered_path__16__rendered_path__16

Page 38
The elements of IInd Matrix are.. 1 1 1 1
__rendered_path__21
__rendered_path__21
The elements of Ist Matrix are.. 1 1 1 1
The addition of matrices is: 2 2 2 2
-37-
Image_122_0__rendered_path__21
Image_122_0__rendered_path__21
Image_122_0
__rendered_path__22__rendered_path__23__rendered_path__23__rendered_path__21__rendered_path__21__rendered_path__22__rendered_path__21__rendered_path__21

Page 39
AIM
Program for Online Exam
PROGRAM
__rendered_path__90
__rendered_path__90
__rendered_path__90
<html>
<head>
<title> Exam </title>
<script language="Javascript">
function exam(form)
{
var i=0;
if(form.one[2].checked)
i=i+1;
if(form.three[0].checked)
i=i+1;
if(form.four[0].checked)
i=i+1;
if(form.five[1].checked)
i=i+1;
window.alert("score is"+i);
}
</script>
</head>
<body>
__rendered_path__90__rendered_path__91__rendered_path__92__rendered_path__92__rendered_path__90__rendered_path__90__rendered_path__91__rendered_path__90__rendered_path__90
-38-

Page 40
__rendered_path__76
__rendered_path__76
__rendered_path__77
__rendered_path__76
<form onSubmit="exam(this)">
__rendered_path__76
<center>Online exam</center>
<P>
<h1>1)Which is platform independent language</h1>
<input type="radio" name="one" value="c++">
<label>c++</label>
<input type="radio" name="one" value="c">
<label>c</label>
<input type="radio" name="one" value="java">
<label>Java</label>
<input type="radio" name="one" value="basic">
<label>BASIC</label>
</P>
<P>
<h1>2)Which is class of all class in java</h1>
<input type="radio" name="three" value="object">
<label>Object</label>
<input type="radio" name="three" value="math">
<label>Math</label>
<input type="radio" name="three" value="system">
<label>System</label>
<input type="radio" name="three" value="graphic">
<label>Graphic</label>
__rendered_path__78__rendered_path__78__rendered_path__76__rendered_path__76__rendered_path__77__rendered_path__76__rendered_path__76
-39-

Page 41
<input type="radio" name="five" value="multiple inheritance">
__rendered_path__78
__rendered_path__78
__rendered_path__79
__rendered_path__78
</P>
__rendered_path__78
<P>
<h1>3)Frame package is in which package</h1>
<input type="radio" name="four" value="awt">
<label>AWT</label>
<input type="radio" name="four" value="applet">
<label>Applet</label>
<input type="radio" name="four" value="lang">
<label>Lang</label>
<input type="radio" name="four" value="swing">
<label>Swing</label>
</P>
<P>
<h1>4)Java does not support</h1>
<input type="radio" name="five" value="inheritance">
<label>Inheritance</label>
<label>Multiple inheritance</label>
<input type="radio" name="five" value="polymorphism">
<label>Polymorphism</label>
<input type="radio" name="five" value="encryption">
<label>Encryption</label>
</P> <P><center>
__rendered_path__80__rendered_path__80__rendered_path__78__rendered_path__78__rendered_path__79__rendered_path__78__rendered_path__78
-40-

Page 42
__rendered_path__88
<input type="submit" value="submit">
__rendered_path__88
<input type="reset" name="reset" value="reset">
__rendered_path__89
</center>
</p> </body></html>
__rendered_path__88
OUTPUT
__rendered_path__22__rendered_path__88
Online exam
1)Which is platform independent language
Image_136_0
c++
c
Java
BASIC
Image_136_0
2)Which is class of all class in java
Image_138_0
Object
Math
System
Graphic
Image_136_0
3)Frame package is in which package
Image_138_0
AWT
Applet
Lang
Swing
Image_136_0
4)Java does not support
Image_136_0
Inheritance
Multiple inheritance
Polymorphism
Encryption
Image_136_0
submit
reset
Image_138_0
Image_136_0
Image_136_0
Image_136_0
Image_136_0
Image_138_0
Image_136_0
Image_136_0
__rendered_path__57__rendered_path__58__rendered_path__59__rendered_path__60__rendered_path__61__rendered_path__62__rendered_path__63__rendered_path__64__rendered_path__65__rendered_path__66__rendered_path__68__rendered_path__57__rendered_path__70__rendered_path__59__rendered_path__71__rendered_path__61__rendered_path__72__rendered_path__63__rendered_path__73__rendered_path__74__rendered_path__75__rendered_path__77Image_142_0__rendered_path__90__rendered_path__90__rendered_path__88__rendered_path__88__rendered_path__89__rendered_path__88__rendered_path__88
-41-

Page 43
AIM
Program for Bubble Sort
PROGRAM
__rendered_path__56
__rendered_path__56
__rendered_path__56
<html>
<head>
<title>Bubble Sort</title>
<script language="JavaScript">
var a=[3,5,2,9,1,8]
var t,n=6;
for( var i=0;i<n;i++)
{
for(var j=0;j<n-1;j++)
{
if(a[j]>a[j+1])
{
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}
}
document.write("<h1>The sorted order is:&nbsp;");
for(i=0;i<n;i++)
__rendered_path__56__rendered_path__57__rendered_path__58__rendered_path__58__rendered_path__56__rendered_path__56__rendered_path__57__rendered_path__56__rendered_path__56
-42-

Page 44
document.write("&nbsp;&nbsp;");
<body topmargin=50 leftmargin=100></body>
OUTPUT
The sorted or
__rendered_path__50
__rendered_path__50
__rendered_path__51
{
document.write(a[i]);
}
</script>
</head>
</html>
der is: 1 2 3 5 8 9
__rendered_path__50
__rendered_path__50
__rendered_path__52__rendered_path__52__rendered_path__50__rendered_path__50__rendered_path__51__rendered_path__50__rendered_path__50
-43-

Page 45
window.alert("Enter the elements in the array");
key=parseInt(window.prompt("Enter the searching element",""));
window.alert(" element is found at location "+(i+1));
__rendered_path__102
AIM
__rendered_path__102
Program for implementation of Linear Search
__rendered_path__103
PROGRAM
<html>
<head>
<title>Array Addition</title>
<script language="javascript">
var flag=0,a,n,key,i
var a=new Array(10);
n=parseInt(window.prompt("Enter the size of the array",""));
for (i=0;i<n;i++)
{
a[i]=parseInt(window.prompt("Enter the element ",""));
}
for (i=0;i<n;i++)
{
if (a[i]==key)
{
flag=1;
}
-44-
__rendered_path__102
__rendered_path__102
__rendered_path__104__rendered_path__104__rendered_path__102__rendered_path__102__rendered_path__103__rendered_path__102__rendered_path__102

Page 46
__rendered_path__42
}
__rendered_path__42
if (flag==0)
__rendered_path__43
window.alert(" element is not
__rendered_path__42
__rendered_path__42
found");//document.writeln("The element is not found");
</script>
</head>
<body bgcolor="pink">
</body>
</html>
__rendered_path__44__rendered_path__44__rendered_path__42__rendered_path__42__rendered_path__43__rendered_path__42__rendered_path__42
-45-

Page 47
__rendered_path__16
OUTPUT
__rendered_path__16
Image_153_0
-46-
__rendered_path__16
__rendered_path__16
Image_154_0Image_155_0Image_156_0__rendered_path__17__rendered_path__18__rendered_path__18__rendered_path__16__rendered_path__16__rendered_path__17__rendered_path__16__rendered_path__16

Page 48
__rendered_path__19
__rendered_path__19
__rendered_path__20
Image_159_0__rendered_path__19
Image_160_0__rendered_path__19
Image_161_0
__rendered_path__21__rendered_path__21__rendered_path__19__rendered_path__19__rendered_path__20__rendered_path__19__rendered_path__19
-47-

Page 49
Program for displaying an image on mouse click
PROGRAM
__rendered_path__46
AIM
__rendered_path__46
__rendered_path__47
__rendered_path__46
__rendered_path__46
<html>
<head>
<title>onclick image</title>
</head>
<body leftmargin=100 topmargin=100 bgcolor="#111111">
<img name="images" width=200 height=200 src=1.gif "><p>
<form><h3>
<input
type="button"
value="image1"
onClick="document.images.src='1.gif' ">
<input type="button" value="image2"
onClick="document.images.src='2.gif' ">
<input
type="button"
value="image3"
onClick="document.images.src='3.gif' ">
</form></h3></body></html>
__rendered_path__48__rendered_path__48__rendered_path__46__rendered_path__46__rendered_path__47__rendered_path__46__rendered_path__46
-48-

Page 50
__rendered_path__15
OUTPUT
__rendered_path__15
__rendered_path__16
Image_166_0
-49-
Image_167_0__rendered_path__15__rendered_path__15__rendered_path__17__rendered_path__17__rendered_path__15__rendered_path__15__rendered_path__16__rendered_path__15__rendered_path__15

Page 51
AIM
Program Code To Exhibit Blending Effect
PROGRAM
<div id="textInput" onmouseover="blendOut()" style="width:100;
filter:blendTrans(duration=5)">
<h1>
MULTI
MEDIA
</h1>
__rendered_path__68
__rendered_path__68
<html>
<head>
<title> J Script </title>
<script language="javascript">
function blendOut()
{
//textInput.filters("blendTrans").apply();
//textInput.style.visibility="hidden";
textInput.filters("blendTrans").play();
}
</script>
</head>
<body>
</div>
</body>
</html>
-50-
__rendered_path__68
__rendered_path__69__rendered_path__68__rendered_path__70__rendered_path__70__rendered_path__68__rendered_path__68__rendered_path__69__rendered_path__68__rendered_path__68

Page 52
__rendered_path__38
OUTPUT
Image_172_0__rendered_path__38
__rendered_path__39
Image_173_0__rendered_path__38
__rendered_path__38
__rendered_path__40__rendered_path__40__rendered_path__38__rendered_path__38__rendered_path__39__rendered_path__38__rendered_path__38
-51-