0% found this document useful (0 votes)
13 views

11th Std Answer Copy I.T. Journal _2024

Uploaded by

solankeanshul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

11th Std Answer Copy I.T. Journal _2024

Uploaded by

solankeanshul
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Group A

SOP 1: Write a program using HTML with the following specifications.

 The background colour should be green.


 The text colour should be red.
 The heading should be as large in size as ‘My First Web Page’.
 Display a horizontal line after the heading.
 Display your name in Bold, address in Italics, and standard as 11th.

Answer:

<html>
<head>
<title>sop1</title>
</head>
<body bgcolor=”green” text= “red”>
<h1> My First Web Page </h1>
<hr width=””>
<b> APK College</b>
<br>
<i>Pune</i>
<br>
Standard 11th.
</body>
</html>
SOP 2: Create a web page with, following specifications.

Image of any scientist with an alternate text as his name.


 Create a paragraph related to the information of that scientist.
 Create a table of his/her inventions.
Answer:

<html>
<head>
<title>sop2</title>
</head>
<body>
<imgsrc=”Albert Einstein.jpg” alt=”Albert Einstein”>
<br>
<p>
Albert Einstein was a German-born theoretical physicist who developed the theory of
relativity,<br> one of the two pillars of modern physics.His work is also known for its
influence on the philosophy of science.
</p>
<table border=5 bordercolor=pink>
<tr>
<th>Sr no.</th>
<th> Invention </th>
<th> Year</th>
</tr>
<tr>
<td>1</td>
<td>Quantum Theory of Light </td>
<td>1905</td>
</tr>
<tr>
<td>2</td>
<td>Theory of Relativity</td>
<td>1907</td>
</tr>
</table>
</body>
</html>
SOP 3: Create a webpage with the following specifications.

 Display heading ‘Application Form’ in the highest heading with center


alignment.
 Accept name, standard 11th or 12th with only one selection choice.
 Submit the form.
Answer:

<html>
<head><title> sop3</title>
</head>
<body>
<h1 align=center> Application Form </h1>
<form>
Enter Name:<input type=”text” name=”t1”>
<br><br>
Standard:<br>
<input type=”radio” name=r1>11th<br>
<input type=”radio” name=r1>12th<br>
<br><br>
<input type=”submit” value=”Submit”>
</form>
</body>
</html>
SOP 4: Write a program using HTML with the following specification.

A webpage with details about a class with a total number of students-100, (Boys – 50),
Girls – 50 in tabular form.
e.g.

Link this page to another page as follows.

Demo.html
Answer:
<html>
<head>
<title>New Page 1</title>
</head>
<body>
<center>
<table border=”1” width=”69%” >
<trbgcolor=pink>
<td>Number of Students</td>
<td>Boy</td>
<td>Girls</td>
</tr>
<trbgcolor=”lightgreen”>
<td>100</td>
<td>50</td>
<td>50</td>
</tr>
</table>
</body>
</html>

Demo
<html>
<head>
<title>the heading</title>
</head>
<BODY>
<header>
<center>
<table border=”1” align=center>
<tr align=center>
<td>

<a href=”sop4.html”>STD – XI</a>


<br>Stream – Science<br>
Div – A<br></td>
</tr>
</table>
</body>
</html>
SOP 5: Create a webpage with the following specifications.

 Using form tag create a Login ID form, with login ID, Password and submit
button

Answer:-

<html>

<head>

<title>login Id Form</title>

</head>

<body bgcolor="pink">

<form>

<font size="10" color="red" style="Bookman old style"> Login ID Form

<br>

Enter Your ID <input type="text" name="t1" size="10">

<br>

Enter Your Password<input type="password" name="t2" maxlenght="6">

<br>

Click here to Submitt<input type="submit" value="submit">

</form>

</body>

</html>
Group B

SOP 1: Create a JavaScript program for the following using appropriate


variables, JavaScript inbuilt functions, and control structures.

 To accept an integer and display the result by multiplying it with 3.


 To accept two integers and display a larger number of them.
 To check whether the user entered number is positive or negative.
Answer:
To accept integer and display the result by multiplying it with 3.
<head>
<title>To accept integer and display the result by multiplying it with 3.</title>
</head>
<body>
<script language=”javascript”>

vara,no,ans;
a=prompt(Enter any value’);
no=parseInt(a);
ans=no*3;
document. write(“The answer is :”+ans);
</script>
</body>
</html>

2.To accept two integers and display larger number of them.


< html>
<head>
<title>To accept two integers and display larger number of them.</title>
</head>
<body>
<script language=”javascript”>
vara,b;
a=prompt(‘Enter first value’);
b=prompt(‘Enter second value’);
if(a>b)
document.write(“a is large number than b “);
else
document. write(“b is large number than a”);
</script>
</body>
</html>

To check whether, user entered number is positive or negative.


<head>
<title>To check whether, user entered number is positive or negative</title>
</head>
<body>
<script language=”javascript”>
vara,no;
a=prompt(‘Enter any number’);
no=parseInt(a);
if(no>0)
document.write(“Number is Positive”);
else
document.write(“Number is Negative”);
</script>
</body>
</html>
SOP 2: Create a JavaScript program for the following using appropriate
variables, JavaScript inbuilt functions, and control structures.

To check whether, user entered number is Even or odd.


<html>

 <head>
 <title>even or odd</title>
 </head>
 <body bgcolor="#20546565">
 <script language="javascript">
 var a;
 a=prompt("enter the value for a");

 if(a%2==0)
 {
 document.write("number is even");
 alert("number is even");
 }
 else
 {
 document.write("number is odd");
 alert("numbre is odd");
 }
 </script>
 </body>
 </html>
SOP 3: Create a JavaScript program for the following using appropriate variables,
JavaScript inbuilt functions, and control structures.

 To accept a number and display the square of it.

Answer:
To accept number and display square of it.

<html>
<head>
<title>To accept number and display square of it</title>
</head>
<body>
<script language-’j avascript”>
varno,sqr;
no=prompt(‘Enter Any number’);
sqr=no*no;
document, write (“The Square is=”+sqr);
</script>
</body>
</html>
SOP 4: Create a JavaScript program for the following using appropriate variables,
JavaScript inbuilt string functions, and control structures.

 To accept a string and calculate its length.


 To accept a string and display it in lowercase and uppercase.
Answer:
To accept a string and calculate its length.
<head>
<title>program8</title>
</head>
<body>
<script language=”javascript”>
var a;
a=prompt(‘Enter string’);
document.write(“The length is=”+a.length);
</script>
</body>
</html>

To accept string and display it into lowercase and uppercase.

<head>
<title> To accept string and display it into lowercase and uppercase</title>
</head>
<body>
<script language=”javascript”>
var a;
a=prompt(‘Enter any string’);
document.write(“<br>Entering Strings “+a);
document.write(“<br>Lowercase=”+a.toLowerCase());
document.writeln(“<br>Uppercase=”+a.toUpperCase());
</script>
</body>
</html>
SOP 5: Create event-driven JavaScript programs for the following using appropriate
variables, JavaScript inbuilt functions, and control structures.

Answer:
i.To accept number and validate if the given value is a number or not by click
<html>
<head>
<title> To accept number and validate if the given value is a number or not by clicking
on the button.
</title>
</head>
<script language-’JavaScript”>
function display()
{
vara,b;
a=form1.t1;value;
if(a>=0)
alert(“Value is a number”+” “+a);
else
alert(“Value is a string”+” “+a);
}
</script>
</head>
</body>
<form name=form1>
Enter Value: <Input type=text name=t1><br><br>
<Input type=button value=Check onClick=”display()”>
</form>
</body>
</html>

ii. To calculate addition and division of two numbers.


<head>
<title>To calculate addition and division of two numbers.</title>
<script langauge=”javascript”>
function add()
{
vara,b,result;
a=f1.t1.value;
b=f1.t2.value;
result=parselnt(a)+parselnt(b);
document.write(“The Addition is =”+result);
}
function div()
{
vara,b,d;
a=f1.t1.value;
b=f1.t2.value;
d=parselnt(a)/parselnt(b);
document.write(“The Divide is =”+d);
}
</script>
</head>
<body>
<form name=”f1”>
1st Number : <input type=”text” name=”t1”><br>
2nd Number : <input type=”text” name=”t2”><br>
<input type=”button” value=”Addition” name=”b1” onClick=”add()”>
<input type=”button” value=”Division” name=”b2” onClick=”div()”>
</form>
</body>
</html>

You might also like