IT All Imp
IT All Imp
Status
min()
charAt()
blur()
cbrt()
7) The ________ property of DOM object sets or returns title of the document.
Title
setFullYear()
isArray()
random()
focus()
12) ________ event handler occurs when user clicks reset button.
Onreset
13) _______ property of window object sets or return the name of the
window.
Name
14) ________ method of array o object adds new elements to the end of
an array.
push()
getElementById()
16) _________ method of array object joins two or more arrays and
returns a copy of the joined arrays.
concat()
toUpperCase()
setSeconds()
JavaScript
Length
pop()
write()
23) ________ method of number object converts the given string into a
Integer number.
parseInt()
24) _______ object is used to store or manipulate text.
String
MIN_VALUE
26) _________ method of date object sets the day of the month.
setDate()
prompt()
close()
toUpperCase()
getElementById()
lastIndexOf()
setSeconds()
34) _______ method of math object returns the highest valued number in
a list of numbers.
max()
closed
Closed
toLowerCase()
Onchange
39) ________ method of Array object copies array elements within the
array, to and from specified position
copyWithin()
NaN
Switch
42) _________ method of date object returns the day of the month.
getDate()
43) _________ method of window object display the alert box contain
message with OK button.
alert()
44) _______ property of window object sets or return the name of the
window.
Name
open()
46) _________ method of Array object calls a function for each array
element.
forEach()
sort()
getMinutes()
setTimeout()
50) An _________ is a special variable which can hold more than one
value at a time
Array
51) ________ event handler occurs when user changes content of an
element or selects drop down list.
Onchange
52) ________ method of math object returns the next integer less than or
equal to a given number.
floor()
53) _________ property of window object returns the document object
for the window.
Document
Ans : POST
2) The ______ statement allows programmer to make decision based on one more
conditions.
Ans : If
Ans : Server
Ans : GET
Ans : Arguments
6) A ______ is a small text file that the server sends on the users computer.
Ans : Cookie
Ans : Indexed
Ans : $_POST
9) The __________ arrays are the arrays containing one or more arrays.
Ans : Multi-dimensional
10) _______ function replaces some characters with some other characters in a
string.
Ans : str_replace()
Ans : str_word_count()
12) The _________ statement is used to let a function return a value.
Ans : Return
Ans : $_GET
Ans : strlen()
Ans : Array
Ans : echo
Ans : POST
Ans : array()
20) _________ are the statements in PHP code, which are not visible in the output
of the program.
Ans : Comments
21) _______ method may be used for sending non sensitive data.
Ans : GET
22) The ________ statement allows programmer to make decision based on either
this or that condition.
Ans : if else
23) A variable declared outside a function has a ______ scope and can only be
accessed outside a function.
Ans : Global
24) PHP is _________ language, there is no need for compilation.
Ans : Interpreted
25) A variable declared within a function has a ______ scope and can only be
accessed within that function.
Ans : Local
Ans : strpos()
Ans : String
28) _________ converts the first character of each word in a string to uppercase.
Ans : ucwords()
29) An _________ is a special variable which can hold more than one value at a
time.
Ans : Array
30) _________ function removes whitespace and other predefined characters from
both sides of a string.
Ans : trim()
Ans : count()
Ans : Three
33) The ________ arrays are the arrays with named keys.
Ans : Associative
34) ______ object helps to connect PHP code with any database server.
Ans : PDO()
35) ________ function converts a string to lowercase.
Ans : strtolower()
36) A ______ is a computer system that serves as a central repository of data and
programs.
Ans : Server
37) ________ helps web application to maintain user information on all the pages.
Ans : Session
38) _________ are used to execute the same block of code repeatedly as long as
certain condition is satisfied.
Ans : Loop
Ans : substr()
Ans : Variable
41) ________ is used to identify user or its machine and track activities created on
the user computer.
Ans : Cookie
42) When browser requests server page _______ are sent along with the request.
Ans : Cookie
43) The server side environment that runs a scripting language is called _______
44) ________ are specified after the function name, inside the parentheses.
Ans : Arguments
45) ________ function counts the number of times a substring occurs in a string.
Ans : substr_count()
Ans : $
48) _______ method in PHP is used to check whether variable has value or not.
Ans : isset()
Ans : .php
6. E-Commerce and E-Governance
1)E-Commerce stands for ………………………..
Ans : Electronic Commerce.
2)…………….. is also referred as a paperless exchange of business information using
EDI, E-Mail, electronic fund transfer etc.
Ans : E-Commerce
3)………………….. can be broadly defined as the process of buying and selling of
goods or service using an electronic medium such as internet.
Ans : E-Commerce
4)E-Commerce helps the ………………………. To deliver public services.
Ans : government
5)E-Commerce scope is ………………
Ans : Global
6)……………………. Is the series of exchanges between a customer and supplier that
takes place when a commercial exchange is executed.
Ans : Trade- cycle.
7)………………………. Consist of Search and negotiate.
Ans : Pre-sales
8)…………………………… consist of order and delivery.
Ans : execution
9)…………………………….consist of invoice and payment.
Ans : settlement
10)………………………………phase consist of warranty and after-sales services.
Ans : after-sales
11)…………………… are most common way for customers to pay online.
Ans : credit cards
12)……………….. is used when money is sent from one bank account to another.
Ans : bank transfer
13)E-wallet is a type of ………………….. account in which a user can store money for
any future online transactions.
Ans : pre-paid
14)……………………….. is protected with password.
Ans : E-wallet
15) EDI stands for …………………….
Ans : Electronic Data Interchange
16)G2C stands for…………………
Ans : Government-to –Citizen
17) G2B stands for…………………
Ans : Government-to-business
18)G2G stands for---------------------------
Ans : Government-to-Government
19)G2E stands for---------------------
Ans : Government-to-Employee
20)The ……………………… is the internal part of G2G sector.
Ans : G2E (Government-to-Employee)
21)…………….. provides online facilities to the employees like applying for leave,
reviewing salary payment record and checking the balance of holiday.
Ans : G2E
22)The ……………………… sector provides human resource training and
development.
Ans : G2E
23)……………….. is a campaign launched by the government of India in order to
make government’s services available to citizens electronically.
Ans : Digital India
24)…………………….. is widely used on the internet to protect user information
being sent between a browser and server.
Ans : Encryption
25) Encryption converts plain text in to……………….
Ans : Cipher Text
1. Backlinks are links on one website that, when clicked, take the user to
another site.
2. Backlinks are especially valuable for SEO because they contribute to the
overall strength and value of the content.
3. They also represent a "vote of confidence" from one site to another.
(Q6)List down all the factors which are required for Optimizing Website?
4. Emerging Tech(IOT)
1.Define IoT with Example?
D) Smart security cameras – Security cameras that can identify known and
unknown person and raise alarm, in case of security threat.
E) Smart traffic signals – Signal that can monitor vehicles and give responds
according to traffic in real time, controls traffic jam problem
3) There are three primasry service models of cloude computing that are
infrastructure as a service(IaaS),Platform as a Service(PaaS) and Software as
a service(SaaS).
4) There are three basic types of deployment of cloud computing that are
Public,Private and Hybrid.
Advantages-
1)Efficient resource Utilization-
If we know the functionality and the way that how each device works, we
definitely increase the efficient resource utilization as well as monitor
natural resource.
2)Minimize Human Effort-
As the devices of IoT interact and communicate with each other and do lot of task
for us, then they minimize the human effort.
3)Time Saving-
As it reduces the human effort then it definitely saves out time. Time is the primary
factors in automation which can save through IOT platform.
4)Enhance Data Collection-
IoT devices can collect data from environment like weather, sound, pollution etc.
This data then can be used to take decisions
5)Improve Security-
IoT based security systems can make home or office environment secure
Disadvantages:
1) Privacy : Even without the active participation on the user, the IoT system
provides substantial personal data in maximum detail.
2)Complexity : The designing,developing, maintaining and enabling the large
technology to IoT system is quite complicated.
1.Infrastructure as a Service:
IaaS gives users access to storage, networking, servers and other computing
resources via the cloud.
Key features :
2.Platform as a Service:
Key features :
3.Software as a Service:
Key features :
There are three basic types of deployment of cloud computing that are
Public, Private and Hybrid
1)Public Cloud :
In public cloud, all the services and supporting infrastructure are managed off-site
over the internet and shared across multiple users. Public cloud are more efficient
and inexpensive than private and hybrid cloud solutions.
Examples : Amazon AWS, Microsoft Azure, Google Cloud Platform
2)Private cloud :
As the name suggests private cloud provides I.T services through the internet or a
private network to selected users rather than to general public. All the data is
protected behind the firewall. Private cloud solutions are preferred for enhanced
security and privacy by the users.
3)Hybrid Cloud :
Hybrid cloud environments combines both Public and Private cloud elements. The
clouds in a Hybrid environment communicate over an encrypted connection and
allow for the portability of data and applications. Hybrid cloud allows greater
flexibility as compared to that of public and private cloud solutions.
(iv) Neural networks imitate the brain's array of interconnected neurons, and relay
information between various units to find connections and derive meaning from
data.
(v) Deep learning utilizes really big neural networks and a lot of computing power
to find complex patterns in data, for applications such image and speech
recognition.
Q.10)Applications of 5G?
1) Online 5G Games With faster internet speeds comes faster download speeds.
With the speeds that 5G is capable of, gamers will be able to instantly download
titles onto their mobile phones.2)
Credit Cards : Credit cards are the most common way for customers to pay
online. Merchants can reach out to an international market with credit cards,
by integrating a payment gate- way into their business.
Mobile Payments : Mobile payments offer a quick solution for customers to
purchase on e-commerce websites. Mobile payments are also commonly
used on donation portals, browser games and social media networks such as
dating sites where customer can pay by scanning a barcode on an app on
mobile. Examples are apps like BHIM, UPI, Paytm, Google Pay,
Paypal,..etc.
Bank Transfers : Bank transfer is used when money is sent from one bank
account to another. Transferring money from bank account is usually fast
and safer than withdrawing and paying in cash because every transaction
will be authenticated by checking customer’s banking credentials.
Example : NEFT, IMPS etc.
E-wallets : E-wallet is a type of electronic card which is used for
transactions made online through a computer or a smartphone. E-wallet is a
type of pre-paid account in which a user can store money for any future
online transaction. An E-wallet is protected with a password. Examples are
State Bank Buddy, Paytm Wallets.
(Q11)What is E-Governance?
Reduced corruption
High transparency
Increased convenience
Direct participation of constituents
Reduction in overall cost.
Expanded reach of government
(Q13)Explain all Types of E-Governance?
Answer:-E-Governance is of 4 types depending on the specific types of services.
Government-to-Citizen (G2C) :
<!Doctype html>
<html>
<head>
<title>Hobbies</title>
</head>
<body>
<ol>
<li>ABC</li>
<ul type = "circle">
<li> Playing </li>
<li> Reading </li>
</ul>
<li>XYZ</li>
<ul type= "circle">
<li>Swimming</li>
<li>Sketching</li>
</ul>
</ol>
</body>
</html>
List : Language for Speaking And Computer Languages
<!doctype html>
<html>
<head>
<title>
list in HTML
</title>
</head>
<body>
<h1 align="center">Ordered & Unordered list</h1>
<h2>Languages Used For Speaking</h2>
<ol>
<li>English</li>
<li>Hindi</li>
<li>Marathi</li>
</ol>
<h2>Computer Languages</h2>
<ul>
<li>Python</li>
<li>C++</li>
<li>Java</li>
</ul>
</body>
</html>
List- Animal And Flower ( ordered and unordered list)
<!doctype html>
<html>
<head>
<title>
Animal and Flower
</title>
</head>
<body>
<h1 align="center">Animal and Flower</h1>
<h2>Animal</h2>
<ol>
<li>Tiger</li>
<li>lion</li>
<li>Fox</li>
<li>Elephent</li>
<li>Zebra</li>
</ol>
<h2>Flower</h2>
<ul>
<li>Rose</li>
<li>lily</li>
<li>Tulips</li>
<li>Orchids</li>
<li>Amber</li></ul>
</body>
</html>
List –Course And Subject names(Nested list)
<!doctype html>
<html>
<head>
<title>
Subject and Chapter
</title>
</head>
<body>
<h1 align="center">Subject and Chapter</h1>
<h2>Courses and Subjects</h2>
<ul>
<li>BA</li>
<ol>
<li>Philosophy</li>
<li>Economics</li>
<li>Literature</li>
<li>Psychology</li>
<li>Sociology</li>
</ol>
<li>BCom</li>
<ol>
<li>Accounting</li>
<li>Finance</li>
<li>Economics</li>
<li>Business Management</li>
<li>Marketing</li>
<li>Entrepreneurship</li>
</ol>
<li>B.Sc</li>
<ol>
<li>Physics </li>
<li>Chemistry</li>
<li>Biology</li>
<li>Maths </li>
</ol>
</ul>
</body>
</html>
List : Flower And Fruit( Ordered and Unordered List)
<!doctype html>
<html>
<head>
<title>
Flower and Fruits
</title>
</head>
<body>
<h1 align="center">Flower and Fruits</h1>
<h2>Flowers</h2>
<ol>
<li>Rose</li>
<li>lily</li>
<li>Tulips</li>
<li>Orchids</li>
<li>Amber</li>
</ol>
<h2>Fruits</h2>
<ul>
<li>Apple</li>
<li>Grapes</li>
<li>Mango</li>
<li>Strawberry</li>
<li>Blueberry</li>
</ul>
</body>
</html>
List : Student And Subject (unordered and ordered list)
<!doctype html>
<html>
<head>
<title>
Student and Subject
</title>
</head>
<body>
<h1 align="center">Student and Subject </h1>
<h2>Student</h2>
<ul>
<li>Atharv</li>
<li>Prasad</li>
<li>Vijay</li>
<li>Raj</li>
<li>Soham</li>
</ul>
<h2>Subject</h2>
<ol>
<li>Marathi</li>
<li>Hindi</li>
<li>English</li>
<li>Maths</li>
<li>Science</li>
</ol>
</body>
</html>
List- Subject and Topics(Nested list)
<!doctype html>
<html>
<head>
<title>
Subject and Chapter
</title>
</head>
<body>
<h1 align="center">Subject and Chapter</h1>
<h2>Subject</h2>
<ul>
<li>IT</li>
<ol>
<li>Web Designing</li>
<li>SEO</li>
<li>Javascript</li>
<li>Emerging Technology</li>
<li>E-Commerce</li>
</ol>
<li>Physics</li>
<ol>
<li>Electrostatics</li>
<li>Current Electricity</li>
<li>Optics</li>
</ol>
<li>Chemistry</li>
<ol>
<li>Solutions </li>
<li>Electrochemistry</li>
<li>Chemical Kinetics</li>
<li>Biomolecules </li>
</ol>
</ul>
</body>
</html>
External CSS
<!doctype html>
<html>
<head>
<title>
External CSS
</title>
</head>
<body>
</body>
</html>
Internal Css:
<!doctype html>
<html>
<head>
<title>
Internal CSS
</title>
<style>
h1{border-style:dotted}
body{background-color:skyblue}
</style>
</head>
<body>
</body>
</html>
1. Write a html program to accept Name of the College, Total number of students in the
college, Total number of halls (range till 100). The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> College Data </title>
</head>
<body>
<h1> College Information Form</h1>
<form name="Clgform" method="post" action="process.php">
Name of the College :
<input type="text" name="clg_name">
<br> <br>
Total No. of Students :
<input type="number" name="stud_no" min=1>
<br> <br>
Total No. of Halls :
<input type="range" name="hall_no" min=1 max=100>
<br> <br>
<input type="submit" value="SUBMIT">
input type="reset" value="RESET">
</form>
</body>
</html>
2. Write a html program to accept Name of the Employee (cannot be blank), Email Id of
the Employee, Salary (maximum 50000). The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> Employee Data </title>
</head>
<body>
<h1> Employee Information Form</h1>
<form name="empform" method="post" action="process.php">
Name of the Employee :
<input type="text" name="emp_name" REQUIRED>
<br> <br>
Email ID :
<input type="email" name="emp_email" min=1>
<br> <br>
Salary :
<input type="number" name="emp_sal" min=1 max=50000>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
3. Write a html program to create a form to accept Doctor's name, number of patients
(maximum 20), Date of examining patients
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Doctor Information Form</h1>
<form name="docform" method="post" action="process.php">
Name of the Doctor :
<input type="text" name="doc_name" REQUIRED>
<br> <br>
No. of Patients :
<input type="number" name="patient_no" min=1 max=20>
<br> <br>
Date of Examination :
<input type="date" name="ex_date">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
4. Write a html program to create a form to accept Patient's name, his mobile number
and date of birth. Keep all fields compulsory.
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Patient Information Form</h1>
<form name="docform" method="post" action="process.php">
Name of the Patient :
<input type="text" name="pat_name" REQUIRED>
<br> <br>
Mobile No. :
<input type="number" name="pat_mobile" REQUIRED>
<br> <br>
Date of Birth :
<input type="date" name="pat_date" REQUIRED>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
5. Write a html program to create a form to accept student's name, number of practicals
he has completed and provide facility to upload his completion certificate.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Practical Information Form</h1>
<form name="studform" method="post" action="process.php">
Name of the Student :
<input type="text" name="stud_name" REQUIRED>
<br> <br>
No. of Practicals Completed :
<input type="number" name="practical_no" min=1>
<br> <br>
Upload Completion Certificate :
<input type="file" name="certificate">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
6. Write a html program to create a form to accept students roll no (in number format),
Unit test marks (maximum 25 marks), Terminal exam marks (maximum 50 marks).
Include the name of the Subject teacher and send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Exam Marks Form</h1>
<form name="studform" method="post" action="process.php">
Student Roll No :
<input type="number" name="stud_roll" min=1>
<br> <br>
Unit Test Marks :
<input type="number" name="unit_test" min=0 max=25>
<br> <br>
Terminal Exam Marks :
<input type="number" name="unit_test" min=0 max=50>
<br> <br>
Name of the Subject Teacher :
<input type="text" name="sub_teacher">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
7. Write a html program to create registration form to accept name, mobile no., date of
birth. The form should have register caption in the button to submit the data.
<!doctype html>
<html>
<head>
<title> User Data </title>
</head>
<body>
<h1> User Registration Form</h1>
<form name="userform" method="post" action="process.php">
Name of the User :
<input type="text" name="user_name">
<br> <br>
Mobile No. :
<input type="number" name="user_mobile">
<br> <br>
Date of Birth :
<input type="date" name="user_dob">
<br> <br>
<input type="submit" value="REGISTER">
<input type="reset" value="RESET">
</form>
</body>
</html>
8. Write html program to accept Name of the hospital, Email Id of the hospital, Number of
beds in the hospital. The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Hospital Information Form</h1>
<form name="hospitalform" method="post" action="process.php">
Name of the Hospital :
<input type="text" name="hosp_name">
<br> <br>
Email Id. :
<input type="email" name="hosp_email">
<br> <br>
Number of beds in Hospital :
<input type="number" name="hosp_beds">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
9.A. Write html program to create a form to accept students roll no (in number format),
Unit test marks(maximum 25 marks), Terminal exam marks (maximum 50 marks).
Include the name of the Subject teacher and send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Exam Marks Form</h1>
<form name="studform" method="post" action="process.php">
Student Roll No :
<input type="number" name="stud_roll" min=1>
<br> <br>
Unit Test Marks :
<input type="number" name="unit_test" min=0 max=25>
<br> <br>
Terminal Exam Marks :
<input type="number" name="unit_test" min=0 max=50>
<br> <br>
Name of the Subject Teacher :
<input type="text" name="sub_teacher">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
9.B. Write html program to accept student name, Date of birth and attendance
percentage in number format. Send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Attendance Percentage </h1>
<form name="studform" method="post" action="process.php">
Student Name :
<input type="text" name="stud_name">
<br> <br>
Date of Birth:
input type="date" name="stud_dob">
<br> <br>
Attendance Percentage :
<input type="number" name="stud_attd" min=0 max=100>
<br> <br>
<input type="submit" value="SUBMIT">
input type="reset" value="RESET">
</form>
</body>
</html>
10. Write a html program to display "Digital India" in Verdana font using internal CSS.
Add any two sentences about Digital India below in orange color.
<!doctype html>
<html>
<head>
<title> Digital India </title>
<style>
h1 { font-family : "Verdana"; }
p { color : orange; }
</style>
</head>
<body>
<h1> Digital India</h1>
<p> Digital India
</p>
<p> It making the country digitally empowered in the field of technology. </p>
</body>
</html>
11. Write a html program to display "Maharashtra State Board" in blue color and font
size 30 pixels using internal CSS. Give background colour yellow for the web page.
<!doctype html>
<html>
<head>
<title> MS Board </title>
<style>
body { background-color : yellow; }
p{
color : blue;
font-size ; 30px;
}
</style>
</head>
<body>
<p> Maharashtra State Board</p>
</body>
</html>
12. Write a html program to display "Maharashtra State Board" in font size 40 pixels
using internal CSS. Give background colour yellow for the same text.
<!doctype html>
<html>
<head>
<title> MS Board </title>
<style>
body { background-color : yellow; }
p { font-size ; 40px; }
</style>
</head>
<body>
<p> Maharashtra State Board</p>
</body>
</html>
13. Write a html program to display "Web designing" in italic format and having
underline using internal CSS. Add any two sentences about web designing in green color.
<!doctype html>
<html>
<head>
<title> Web Designing </title>
<style>
h1 {
font-style : italic;
text-decoraton : underline;
}
p { color : green; }
</style>
</head>
<body>
<h1> Web Designing</h1>
<p> Web designing is the art of planning and arranging content on a website so
that it can be shared and accessed online with the world. </p>
<p> Web design encompasses many different skills and disciplines in the
production and maintenance of websites. </p>
</body>
</html>
14. Write a html program to insert inline frame on web page. Use xyz html file as a source
for inline frame. Size of inline frame should be 100x100 pixels.
<!doctype html>
<html>
<head>
<title> Inline Frame example </title>
</head>
<body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=100 width=100>
</body>
</html>
15. Write html program to insert inline frame on web page. Use xyz html file as a source
for inline frame. Size of inline frame should be 300 x 300 pixels.
<!doctype html>
<html>
<head>
<title> Inline Frame example </title>
</head>
<body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=300 width=300>
</body>
</html>
16. Write html program to create an ordered list of 3 languages used for speaking and
unordered list having 2 computer languages.
<!doctype html>
<html>
<head>
<title> Languages </title>
</head>
<body>
<h2> Languages used for Speaking</h2>
<OL>
<LI> English </LI>
<LI> Hindi </LI>
<LI> Marathi </LI>
</OL>
<h2> Computer Languages</h2>
<UL>
<LI> Java </LI>
<LI> Python </LI>
</UL>
</body>
</html>
17. Write html program to display names of two friends in ordered list and also display
their hobbies under their name in unordered list.
<!doctype html>
<html>
<head>
<title> Friends and their Hobbies </title>
</head>
<body>
<h2> Friends and their Hobbies</h2>
<OL>
<LI> Vedika </LI>
<UL>
<LI> Singing </LI>
<LI> Dance </LI>
</UL>
<LI> Riya </LI>
<UL>
<LI> Reading Books </LI>
<LI> Travelling to Historical Places </LI>
</UL>
</OL>
</body>
</html>
18. Write html program to create an unordered list having names of two students. Add
ordered list of subjects they selected:
<!doctype html>
<html>
<head>
<title> Students subjects</title>
</head>
<body>
<h2> Student List with subjects</h2>
<UL>
<LI> Sanika</LI>
<OL>
<LI> IT</LI>
<LI> Maths</LI>
</OL>
<LI> Sachin</LI>
<OL>
<LI> English </LI>
<LI> PT </LI>
</OL>
</UL>
</body>
</html>
Write JavaScript code to print subtraction of 2 numbers.
1.
2 .Write JavaScript code to print addition of 2 numbers.
5 .Write JavaScript code to print addition, subtraction, multiplication & division of 2 numbers.
6 .Write JavaScript code to display area of circle, accept value from user.
12 Write JavaScript code to enter two values and display the largest.
17 .Write JavaScript code when user click on button, it will display sum of even numbers from 1
to 10.
18 .Write JavaScript code to print all odd numbers from 50 to 100.
19 .Write JavaScript code to print factorial of given no( 7 seven) on button click.
21 .Write JavaScript code to count length of accepted string after click on the button.
22 .Write JavaScript code to accept two dates and find the difference in those dates.
23 .Write JavaScript code to take a input of string and reverse the string in output.
25 Write JavaScript code to take a input of number and calculate cube of number.
<html>
<head>
</head>
<body>
<script>
diff=n2-n1;
</script>
</body>
</html>
2.Write JavaScript code to print addition of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head><body>
<script>
sum=n1+n2;
</script>
</body>
</html>
3.Write JavaScript code to print multiplication of 2 numbers.
<html><head>
</head>
<body>
<script>
prod=n1*n2;
</script>
</body>
</html>
4.Write JavaScript code to print division of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
q=n1/n2;
</script></body></html>
5.Write JavaScript code to print addition, subtraction,
multiplication & division of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
s=n1+n2;
d=n2-n1;
m=n1*n2;
q=n1/n2;
</script>
</body>
</html>
6.Write JavaScript code to display area of circle, accept value from
user.
<!Doctype html>
<html>
<body>
<form name="f1">
Enter Radius:
</form>
</body>
<script type="text/javascript">
function area()
var b,h,a;
r=parseInt(f1.n1.value);
a=3.14*r*r;
</script>
</html>
7. Write JavaScript code to print area of triangle.
<Doctype html>
<html>
<body>
<form name="f1">
Enter Base
Enter Hieght
</form>
</body>
<script type="text/javascript">
function area()
var b,h,a;
b=parseInt(f1.n1.value);
h=parseInt(f1.n2.value);
a=1/2*b*h;
</script>
</html>
8.Write JavaScript code to calculate the average of three numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<script>
avg=(n1+n2+n3)/3;
</script></html>
9.Write JavaScript code to print perimeter of rectangle.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
p=2*(length+breadth);
</script>
</body>
</html>
10.Write JavaScript code to print perimeter of trapezium.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>var a, b, c, d, p;
p=a+b+c+d;
</script>
</body>
</html>
11.Write JavaScript code to check whether the number is odd or
even.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n;
n=parseInt(prompt("Enter a number:"));
if(n%2==0)
alert("Number is even");
else
alert("Number is odd");
</script></body></html>
12. Write JavaScript code to enter two values and display the
largest.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
if(n1>n2)
else
</script></body></html>
13. Write JavaScript code to print multiplication table of 3.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n=3, i;
for(i=1;i<=10;i++)
</script></body></html>
14. Write JavaScript code to print numbers from 1 to 10.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>
var i;
for(i=1;i<=10;i++)
document.write("<br>"+i);
</script>
</body></html>
15. Write JavaScript code to print sum of 50 natural numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var i, sum=0;
for(i=1;i<=50;i++)
{ document.write("<br>"+i);
sum=sum+i;
document.write("<br>Sum - "+sum);
</script>
</body></html>
16. Write JavaScript code to print all even numbers from 10 to 50.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>
var i;
for(i=10;i<=50;i++)
if(i%2==0)
document.write("<br>"+i);
</script></body></html>
17. Write JavaScript code when user click on button, it will display
sum of even numbers from 1 to 10.
<! DOCTYPE html>
<html>
<head>
<script>
function display_sum() {
var i, sum=0;
for(i=1;i<=10;i++)
if(i%2==0)
sum=sum+i;
</script></head>
<body>
<br><p id="disp"></p>
</body></html>
18.Write JavaScript code to print all odd numbers from 50 to 100.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var i;
for(i=50;i<=100;i++)
{ if(i%2!=0)
document.write("<br>"+i);
}</script></body></html>
19.Write JavaScript code to print factorial of given no.(7 seve) on
button click.
<! DOCTYPE html>
<html>
<head>
<script>
function display_factorial(num) {
var i, f = 1;
{ f=f*i;
</script></head>
<body>
<br><p id="disp"></p>
</body></html>
20.Write JavaScript code to print square of a accepted number.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n, r;
n=parseInt(prompt("Enter a number:"));
r=n*n
</script>
</body>
</html>
21.Write JavaScript code to count length of accepted string after click on the
button.
<html>
<head>
<title>JS program</title>
<script>
function display_length() {
str = form1.str_box.value;
len = str.length;
</script>
</head>
<body>
<form name="form1">
</form><br>
<p id="disp"></p>
</body></html>
22.Write JavaScript code to accept two dates and find the difference
in those dates.
<!doctype html>
<html><head><title>JS program</title>
<script>
function display_diff() {
d1 = new Date(form1.date1.value);
d2 = new Date(form1.date2.value);
</script></head><body>
<form name="form1">
</form><br>
<p id="disp"></p>
</body>
</html>
23.Write JavaScript code to take a input of string and reverse the
string in output.
<html>
<head>
<script>
function display_reverse(str) {
var newstr;
newstr = str.split("").reverse().join("");
</script>
</head>
<body>
<script>
var s;
s = prompt("Input a string");
display_reverse(s);
</script></body></html>
24. Write JavaScript code to print factorial of accepted number.
<!Doctype html>
<html>
<body>
<form name="f1">
</form>
</body>
<script type="text/javascript">
function fact()
var a, f=1,i;
a=parseInt(f1.n1.value);
for(i=a;i>=1;i--)
f=f*i;
</script>
</html>
25.Write JavaScript code to take a input of number and calculate
cube of number.
<!doctype html>
<html>
<body>
<form name="f1">
Enter a Number
</form>
</body>
<script type="text/javascript">
function chk()
var n,c;
n=parseInt(f1.n1.value);
c=n*n*n;
</script>
</html>
26.Write a javascript code to display if accepted no. is prime no. or not.
<!doctype html>
<html><body>
<form name="f1">
Enter a Number
</form></body>
<script type="text/javascript">
function pr()
var a,p=1,i;
a=parseInt(f1.n1.value);
for(i=2;i<a;i++)
if(a%i==0)
p=0;
if(p==1)
else
</script>
</html>
2. SEO
Q.1)What is SEO?
1. Backlinks are links on one website that, when clicked, take the user to
another site.
2. Backlinks are especially valuable for SEO because they contribute to the
overall strength and value of the content.
3. They also represent a "vote of confidence" from one site to another.
(Q6)List down all the factors which are required for Optimizing Website?
4. Emerging Tech(IOT)
1.Define IoT with Example?
D) Smart security cameras – Security cameras that can identify known and
unknown person and raise alarm, in case of security threat.
E) Smart traffic signals – Signal that can monitor vehicles and give responds
according to traffic in real time, controls traffic jam problem
3) There are three primasry service models of cloude computing that are
infrastructure as a service(IaaS),Platform as a Service(PaaS) and Software as
a service(SaaS).
4) There are three basic types of deployment of cloud computing that are
Public,Private and Hybrid.
Advantages-
1)Efficient resource Utilization-
If we know the functionality and the way that how each device works, we
definitely increase the efficient resource utilization as well as monitor
natural resource.
2)Minimize Human Effort-
As the devices of IoT interact and communicate with each other and do lot of task
for us, then they minimize the human effort.
3)Time Saving-
As it reduces the human effort then it definitely saves out time. Time is the primary
factors in automation which can save through IOT platform.
4)Enhance Data Collection-
IoT devices can collect data from environment like weather, sound, pollution etc.
This data then can be used to take decisions
5)Improve Security-
IoT based security systems can make home or office environment secure
Disadvantages:
1) Privacy : Even without the active participation on the user, the IoT system
provides substantial personal data in maximum detail.
2)Complexity : The designing,developing, maintaining and enabling the large
technology to IoT system is quite complicated.
1.Infrastructure as a Service:
IaaS gives users access to storage, networking, servers and other computing
resources via the cloud.
Key features :
2.Platform as a Service:
Key features :
3.Software as a Service:
Key features :
There are three basic types of deployment of cloud computing that are
Public, Private and Hybrid
1)Public Cloud :
In public cloud, all the services and supporting infrastructure are managed off-site
over the internet and shared across multiple users. Public cloud are more efficient
and inexpensive than private and hybrid cloud solutions.
Examples : Amazon AWS, Microsoft Azure, Google Cloud Platform
2)Private cloud :
As the name suggests private cloud provides I.T services through the internet or a
private network to selected users rather than to general public. All the data is
protected behind the firewall. Private cloud solutions are preferred for enhanced
security and privacy by the users.
3)Hybrid Cloud :
Hybrid cloud environments combines both Public and Private cloud elements. The
clouds in a Hybrid environment communicate over an encrypted connection and
allow for the portability of data and applications. Hybrid cloud allows greater
flexibility as compared to that of public and private cloud solutions.
(iv) Neural networks imitate the brain's array of interconnected neurons, and relay
information between various units to find connections and derive meaning from
data.
(v) Deep learning utilizes really big neural networks and a lot of computing power
to find complex patterns in data, for applications such image and speech
recognition.
Q.10)Applications of 5G?
1) Online 5G Games With faster internet speeds comes faster download speeds.
With the speeds that 5G is capable of, gamers will be able to instantly download
titles onto their mobile phones.2)
Credit Cards : Credit cards are the most common way for customers to pay
online. Merchants can reach out to an international market with credit cards,
by integrating a payment gate- way into their business.
Mobile Payments : Mobile payments offer a quick solution for customers to
purchase on e-commerce websites. Mobile payments are also commonly
used on donation portals, browser games and social media networks such as
dating sites where customer can pay by scanning a barcode on an app on
mobile. Examples are apps like BHIM, UPI, Paytm, Google Pay,
Paypal,..etc.
Bank Transfers : Bank transfer is used when money is sent from one bank
account to another. Transferring money from bank account is usually fast
and safer than withdrawing and paying in cash because every transaction
will be authenticated by checking customer’s banking credentials.
Example : NEFT, IMPS etc.
E-wallets : E-wallet is a type of electronic card which is used for
transactions made online through a computer or a smartphone. E-wallet is a
type of pre-paid account in which a user can store money for any future
online transaction. An E-wallet is protected with a password. Examples are
State Bank Buddy, Paytm Wallets.
(Q11)What is E-Governance?
Reduced corruption
High transparency
Increased convenience
Direct participation of constituents
Reduction in overall cost.
Expanded reach of government
(Q13)Explain all Types of E-Governance?
Answer:-E-Governance is of 4 types depending on the specific types of services.
Government-to-Citizen (G2C) :
<!Doctype html>
<html>
<head>
<title>Hobbies</title>
</head>
<body>
<ol>
<li>ABC</li>
<ul type = "circle">
<li> Playing </li>
<li> Reading </li>
</ul>
<li>XYZ</li>
<ul type= "circle">
<li>Swimming</li>
<li>Sketching</li>
</ul>
</ol>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>
list in HTML
</title>
</head>
<body>
<h1 align="center">Ordered & Unordered list</h1>
<h2>Languages Used For Speaking</h2>
<ol>
<li>English</li>
<li>Hindi</li>
<li>Marathi</li>
</ol>
<h2>Computer Languages</h2>
<ul>
<li>Python</li>
<li>C++</li>
<li>Java</li>
</ul>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>
Animal and Flower
</title>
</head>
<body>
<h1 align="center">Animal and Flower</h1>
<h2>Animal</h2>
<ol>
<li>Tiger</li>
<li>lion</li>
<li>Fox</li>
<li>Elephent</li>
<li>Zebra</li>
</ol>
<h2>Flower</h2>
<ul>
<li>Rose</li>
<li>lily</li>
<li>Tulips</li>
<li>Orchids</li>
<li>Amber</li></ul>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>
Subject and Chapter
</title>
</head>
<body>
<h1 align="center">Subject and Chapter</h1>
<h2>Courses and Subjects</h2>
<ul>
<li>BA</li>
<ol>
<li>Philosophy</li>
<li>Economics</li>
<li>Literature</li>
<li>Psychology</li>
<li>Sociology</li>
</ol>
<li>BCom</li>
<ol>
<li>Accounting</li>
<li>Finance</li>
<li>Economics</li>
<li>Business Management</li>
<li>Marketing</li>
<li>Entrepreneurship</li>
</ol>
<li>B.Sc</li>
<ol>
<li>Physics </li>
<li>Chemistry</li>
<li>Biology</li>
<li>Maths </li>
</ol>
</ul>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>
Flower and Fruits
</title>
</head>
<body>
<h1 align="center">Flower and Fruits</h1>
<h2>Flowers</h2>
<ol>
<li>Rose</li>
<li>lily</li>
<li>Tulips</li>
<li>Orchids</li>
<li>Amber</li>
</ol>
<h2>Fruits</h2>
<ul>
<li>Apple</li>
<li>Grapes</li>
<li>Mango</li>
<li>Strawberry</li>
<li>Blueberry</li>
</ul>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>Student and Subject </title>
</head>
<body>
<h1 align="center">Student and Subject </h1>
<h2>Student</h2>
<ul>
<li>Atharv</li>
<li>Prasad</li>
<li>Vijay</li>
<li>Raj</li>
<li>Soham</li>
</ul>
<h2>Subject</h2>
<ol>
<li>Marathi</li>
<li>Hindi</li>
<li>English</li>
<li>Maths</li>
<li>Science</li>
</ol>
</body>
</html>
HTML Programs
<!doctype html>
<html>
<head>
<title>
Subject and Chapter
</title>
</head>
<body>
<h1 align="center">Subject and Chapter</h1>
<h2>Subject</h2>
<ul>
<li>IT</li>
<ol>
<li>Web Designing</li>
<li>SEO</li>
<li>Javascript</li>
<li>Emerging Technology</li>
<li>E-Commerce</li>
</ol>
<li>Physics</li>
<ol>
<li>Electrostatics</li>
<li>Current Electricity</li>
<li>Optics</li>
</ol>
<li>Chemistry</li>
<ol>
<li>Solutions </li>
<li>Electrochemistry</li>
<li>Chemical Kinetics</li>
<li>Biomolecules </li>
</ol>
</ul>
</body>
</html>
HTML Programs
External CSS
<!doctype html>
<html>
<head>
<title>
External CSS
</title>
</head>
<body>
</body>
</html>
HTML Programs
Internal Css:
<!doctype html>
<html>
<head>
<title>
Internal CSS
</title>
<style>
h1{border-style:dotted}
body{background-color:skyblue}
</style>
</head>
<body>
</body>
</html>
HTML Programs
1. Write a html program to accept Name of the College, Total number of students in the
college, Total number of halls (range till 100). The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> College Data </title>
</head>
<body>
<h1> College Information Form</h1>
<form name="Clgform" method="post" action="process.php">
Name of the College :
<input type="text" name="clg_name">
<br> <br>
Total No. of Students :
<input type="number" name="stud_no" min=1>
<br> <br>
Total No. of Halls :
<input type="range" name="hall_no" min=1 max=100>
<br> <br>
<input type="submit" value="SUBMIT">
input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
2. Write a html program to accept Name of the Employee (cannot be blank), Email Id of
the Employee, Salary (maximum 50000). The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> Employee Data </title>
</head>
<body>
<h1> Employee Information Form</h1>
<form name="empform" method="post" action="process.php">
Name of the Employee :
<input type="text" name="emp_name" REQUIRED>
<br> <br>
Email ID :
<input type="email" name="emp_email" min=1>
<br> <br>
Salary :
<input type="number" name="emp_sal" min=1 max=50000>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
3. Write a html program to create a form to accept Doctor's name, number of patients
(maximum 20), Date of examining patients
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Doctor Information Form</h1>
<form name="docform" method="post" action="process.php">
Name of the Doctor :
<input type="text" name="doc_name" REQUIRED>
<br> <br>
No. of Patients :
<input type="number" name="patient_no" min=1 max=20>
<br> <br>
Date of Examination :
<input type="date" name="ex_date">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
4. Write a html program to create a form to accept Patient's name, his mobile number
and date of birth. Keep all fields compulsory.
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Patient Information Form</h1>
<form name="docform" method="post" action="process.php">
Name of the Patient :
<input type="text" name="pat_name" REQUIRED>
<br> <br>
Mobile No. :
<input type="number" name="pat_mobile" REQUIRED>
<br> <br>
Date of Birth :
<input type="date" name="pat_date" REQUIRED>
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
5. Write a html program to create a form to accept student's name, number of practicals
he has completed and provide facility to upload his completion certificate.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Practical Information Form</h1>
<form name="studform" method="post" action="process.php">
Name of the Student :
<input type="text" name="stud_name" REQUIRED>
<br> <br>
No. of Practicals Completed :
<input type="number" name="practical_no" min=1>
<br> <br>
Upload Completion Certificate :
<input type="file" name="certificate">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
6. Write a html program to create a form to accept students roll no (in number format),
Unit test marks (maximum 25 marks), Terminal exam marks (maximum 50 marks).
Include the name of the Subject teacher and send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Exam Marks Form</h1>
<form name="studform" method="post" action="process.php">
Student Roll No :
<input type="number" name="stud_roll" min=1>
<br> <br>
Unit Test Marks :
<input type="number" name="unit_test" min=0 max=25>
<br> <br>
Terminal Exam Marks :
<input type="number" name="unit_test" min=0 max=50>
<br> <br>
Name of the Subject Teacher :
<input type="text" name="sub_teacher">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
7. Write a html program to create registration form to accept name, mobile no., date of
birth. The form should have register caption in the button to submit the data.
<!doctype html>
<html>
<head>
<title> User Data </title>
</head>
<body>
<h1> User Registration Form</h1>
<form name="userform" method="post" action="process.php">
Name of the User :
<input type="text" name="user_name">
<br> <br>
Mobile No. :
<input type="number" name="user_mobile">
<br> <br>
Date of Birth :
<input type="date" name="user_dob">
<br> <br>
<input type="submit" value="REGISTER">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
8. Write html program to accept Name of the hospital, Email Id of the hospital, Number of
beds in the hospital. The data should be sent to the server.
<!doctype html>
<html>
<head>
<title> Hospital Data </title>
</head>
<body>
<h1> Hospital Information Form</h1>
<form name="hospitalform" method="post" action="process.php">
Name of the Hospital :
<input type="text" name="hosp_name">
<br> <br>
Email Id. :
<input type="email" name="hosp_email">
<br> <br>
Number of beds in Hospital :
<input type="number" name="hosp_beds">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
9.A. Write html program to create a form to accept students roll no (in number format),
Unit test marks(maximum 25 marks), Terminal exam marks (maximum 50 marks).
Include the name of the Subject teacher and send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Exam Marks Form</h1>
<form name="studform" method="post" action="process.php">
Student Roll No :
<input type="number" name="stud_roll" min=1>
<br> <br>
Unit Test Marks :
<input type="number" name="unit_test" min=0 max=25>
<br> <br>
Terminal Exam Marks :
<input type="number" name="unit_test" min=0 max=50>
<br> <br>
Name of the Subject Teacher :
<input type="text" name="sub_teacher">
<br> <br>
<input type="submit" value="SUBMIT">
<input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
9.B. Write html program to accept student name, Date of birth and attendance
percentage in number format. Send the data to the server.
<!doctype html>
<html>
<head>
<title> Student Data </title>
</head>
<body>
<h1> Student Attendance Percentage </h1>
<form name="studform" method="post" action="process.php">
Student Name :
<input type="text" name="stud_name">
<br> <br>
Date of Birth:
input type="date" name="stud_dob">
<br> <br>
Attendance Percentage :
<input type="number" name="stud_attd" min=0 max=100>
<br> <br>
<input type="submit" value="SUBMIT">
input type="reset" value="RESET">
</form>
</body>
</html>
HTML Programs
10. Write a html program to display "Digital India" in Verdana font using internal CSS.
Add any two sentences about Digital India below in orange color.
<!doctype html>
<html>
<head>
<title> Digital India </title>
<style>
h1 { font-family : "Verdana"; }
p { color : orange; }
</style>
</head>
<body>
<h1> Digital India</h1>
<p> Digital India
</p>
<p> It making the country digitally empowered in the field of technology. </p>
</body>
</html>
HTML Programs
11. Write a html program to display "Maharashtra State Board" in blue color and font
size 30 pixels using internal CSS. Give background colour yellow for the web page.
<!doctype html>
<html>
<head>
<title> MS Board </title>
<style>
body { background-color : yellow; }
p{
color : blue;
font-size ; 30px;
}
</style>
</head>
<body>
<p> Maharashtra State Board</p>
</body>
</html>
HTML Programs
12. Write a html program to display "Maharashtra State Board" in font size 40 pixels
using internal CSS. Give background colour yellow for the same text.
<!doctype html>
<html>
<head>
<title> MS Board </title>
<style>
body { background-color : yellow; }
p { font-size ; 40px; }
</style>
</head>
<body>
<p> Maharashtra State Board</p>
</body>
</html>
HTML Programs
13. Write a html program to display "Web designing" in italic format and having
underline using internal CSS. Add any two sentences about web designing in green color.
<!doctype html>
<html>
<head>
<title> Web Designing </title>
<style>
h1 {
font-style : italic;
text-decoraton : underline;
}
p { color : green; }
</style>
</head>
<body>
<h1> Web Designing</h1>
<p> Web designing is the art of planning and arranging content on a website so
that it can be shared and accessed online with the world. </p>
<p> Web design encompasses many different skills and disciplines in the
production and maintenance of websites. </p>
</body>
</html>
HTML Programs
14. Write a html program to insert inline frame on web page. Use xyz html file as a source
for inline frame. Size of inline frame should be 100x100 pixels.
<!doctype html>
<html>
<head>
<title> Inline Frame example </title>
</head>
<body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=100 width=100>
</body>
</html>
HTML Programs
15. Write html program to insert inline frame on web page. Use xyz html file as a source
for inline frame. Size of inline frame should be 300 x 300 pixels.
<!doctype html>
<html>
<head>
<title> Inline Frame example </title>
</head>
<body>
<h1> Inline Frame</h1>
<iframe src="xyz.html" height=300 width=300>
</body>
</html>
HTML Programs
16. Write html program to create an ordered list of 3 languages used for speaking and
unordered list having 2 computer languages.
<!doctype html>
<html>
<head>
<title> Languages </title>
</head>
<body>
<h2> Languages used for Speaking</h2>
<OL>
<LI> English </LI>
<LI> Hindi </LI>
<LI> Marathi </LI>
</OL>
<h2> Computer Languages</h2>
<UL>
<LI> Java </LI>
<LI> Python </LI>
</UL>
</body>
</html>
HTML Programs
17. Write html program to display names of two friends in ordered list and also display
their hobbies under their name in unordered list.
<!doctype html>
<html>
<head>
<title> Friends and their Hobbies </title>
</head>
<body>
<h2> Friends and their Hobbies</h2>
<OL>
<LI> Vedika </LI>
<UL>
<LI> Singing </LI>
<LI> Dance </LI>
</UL>
<LI> Riya </LI>
<UL>
<LI> Reading Books </LI>
<LI> Travelling to Historical Places </LI>
</UL>
</OL>
</body>
</html>
HTML Programs
18. Write html program to create an unordered list having names of two students. Add
ordered list of subjects they selected:
<!doctype html>
<html>
<head>
<title> Students subjects</title>
</head>
<body>
<h2> Student List with subjects</h2>
<UL>
<LI> Sanika</LI>
<OL>
<LI> IT</LI>
<LI> Maths</LI>
</OL>
<LI> Sachin</LI>
<OL>
<LI> English </LI>
<LI> PT </LI>
</OL>
</UL>
</body>
</html>
Write JavaScript code to print subtraction of 2 numbers.
1.
2 .Write JavaScript code to print addition of 2 numbers.
5 .Write JavaScript code to print addition, subtraction, multiplication & division of 2 numbers.
6 .Write JavaScript code to display area of circle, accept value from user.
12 Write JavaScript code to enter two values and display the largest.
17 .Write JavaScript code when user click on button, it will display sum of even numbers from 1
to 10.
18 .Write JavaScript code to print all odd numbers from 50 to 100.
19 .Write JavaScript code to print factorial of given no( 7 seven) on button click.
21 .Write JavaScript code to count length of accepted string after click on the button.
22 .Write JavaScript code to accept two dates and find the difference in those dates.
23 .Write JavaScript code to take a input of string and reverse the string in output.
25 Write JavaScript code to take a input of number and calculate cube of number.
<html>
<head>
</head>
<body>
<script>
diff=n2-n1;
</script>
</body>
</html>
2.Write JavaScript code to print addition of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head><body>
<script>
sum=n1+n2;
</script>
</body>
</html>
3.Write JavaScript code to print multiplication of 2 numbers.
<html><head>
</head>
<body>
<script>
prod=n1*n2;
</script>
</body>
</html>
4.Write JavaScript code to print division of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
q=n1/n2;
</script></body></html>
5.Write JavaScript code to print addition, subtraction,
multiplication & division of 2 numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
s=n1+n2;
d=n2-n1;
m=n1*n2;
q=n1/n2;
</script>
</body>
</html>
6.Write JavaScript code to display area of circle, accept value from
user.
<!Doctype html>
<html>
<body>
<form name="f1">
Enter Radius:
</form>
</body>
<script type="text/javascript">
function area()
var b,h,a;
r=parseInt(f1.n1.value);
a=3.14*r*r;
</script>
</html>
7. Write JavaScript code to print area of triangle.
<Doctype html>
<html>
<body>
<form name="f1">
Enter Base
Enter Hieght
</form>
</body>
<script type="text/javascript">
function area()
var b,h,a;
b=parseInt(f1.n1.value);
h=parseInt(f1.n2.value);
a=1/2*b*h;
</script>
</html>
8.Write JavaScript code to calculate the average of three numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<script>
avg=(n1+n2+n3)/3;
</script></html>
9.Write JavaScript code to print perimeter of rectangle.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
p=2*(length+breadth);
</script>
</body>
</html>
10.Write JavaScript code to print perimeter of trapezium.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>var a, b, c, d, p;
p=a+b+c+d;
</script>
</body>
</html>
11.Write JavaScript code to check whether the number is odd or
even.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n;
n=parseInt(prompt("Enter a number:"));
if(n%2==0)
alert("Number is even");
else
alert("Number is odd");
</script></body></html>
12. Write JavaScript code to enter two values and display the
largest.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
if(n1>n2)
else
</script></body></html>
13. Write JavaScript code to print multiplication table of 3.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n=3, i;
for(i=1;i<=10;i++)
</script></body></html>
14. Write JavaScript code to print numbers from 1 to 10.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>
var i;
for(i=1;i<=10;i++)
document.write("<br>"+i);
</script>
</body></html>
15. Write JavaScript code to print sum of 50 natural numbers.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var i, sum=0;
for(i=1;i<=50;i++)
{ document.write("<br>"+i);
sum=sum+i;
document.write("<br>Sum - "+sum);
</script>
</body></html>
16. Write JavaScript code to print all even numbers from 10 to 50.
<! DOCTYPE html>
<html>
<head>
</head>
<body><script>
var i;
for(i=10;i<=50;i++)
if(i%2==0)
document.write("<br>"+i);
</script></body></html>
17. Write JavaScript code when user click on button, it will display
sum of even numbers from 1 to 10.
<! DOCTYPE html>
<html>
<head>
<script>
function display_sum() {
var i, sum=0;
for(i=1;i<=10;i++)
if(i%2==0)
sum=sum+i;
</script></head>
<body>
<br><p id="disp"></p>
</body></html>
18.Write JavaScript code to print all odd numbers from 50 to 100.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var i;
for(i=50;i<=100;i++)
{ if(i%2!=0)
document.write("<br>"+i);
}</script></body></html>
19.Write JavaScript code to print factorial of given no.(7 seve) on
button click.
<! DOCTYPE html>
<html>
<head>
<script>
function display_factorial(num) {
var i, f = 1;
{ f=f*i;
</script></head>
<body>
<br><p id="disp"></p>
</body></html>
20.Write JavaScript code to print square of a accepted number.
<! DOCTYPE html>
<html>
<head>
</head>
<body>
<script>
var n, r;
n=parseInt(prompt("Enter a number:"));
r=n*n
</script>
</body>
</html>
21.Write JavaScript code to count length of accepted string after click on the
button.
<html>
<head>
<title>JS program</title>
<script>
function display_length() {
str = form1.str_box.value;
len = str.length;
</script>
</head>
<body>
<form name="form1">
</form><br>
<p id="disp"></p>
</body></html>
22.Write JavaScript code to accept two dates and find the difference
in those dates.
<!doctype html>
<html><head><title>JS program</title>
<script>
function display_diff() {
d1 = new Date(form1.date1.value);
d2 = new Date(form1.date2.value);
</script></head><body>
<form name="form1">
</form><br>
<p id="disp"></p>
</body>
</html>
23.Write JavaScript code to take a input of string and reverse the
string in output.
<html>
<head>
<script>
function display_reverse(str) {
var newstr;
newstr = str.split("").reverse().join("");
</script>
</head>
<body>
<script>
var s;
s = prompt("Input a string");
display_reverse(s);
</script></body></html>
24. Write JavaScript code to print factorial of accepted number.
<!Doctype html>
<html>
<body>
<form name="f1">
</form>
</body>
<script type="text/javascript">
function fact()
var a, f=1,i;
a=parseInt(f1.n1.value);
for(i=a;i>=1;i--)
f=f*i;
</script>
</html>
25.Write JavaScript code to take a input of number and calculate
cube of number.
<!doctype html>
<html>
<body>
<form name="f1">
Enter a Number
</form>
</body>
<script type="text/javascript">
function chk()
var n,c;
n=parseInt(f1.n1.value);
c=n*n*n;
</script>
</html>
26.Write a javascript code to display if accepted no. is prime no. or not.
<!doctype html>
<html><body>
<form name="f1">
Enter a Number
</form></body>
<script type="text/javascript">
function pr()
var a,p=1,i;
a=parseInt(f1.n1.value);
for(i=2;i<a;i++)
if(a%i==0)
p=0;
if(p==1)
else
</script>
</html>