0% found this document useful (0 votes)
4 views1 page

WT Exam

The document outlines a series of programming tasks across multiple sets, including creating HTML pages with JavaScript for number conversion, implementing web applications in PHP, Servlets, and JSP for cookie management, text analysis, and user validation. Additional tasks involve XML document handling with Java for user information retrieval and building simple calculator applications. Each set emphasizes different programming concepts and technologies for web development.

Uploaded by

mulakalapallin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

WT Exam

The document outlines a series of programming tasks across multiple sets, including creating HTML pages with JavaScript for number conversion, implementing web applications in PHP, Servlets, and JSP for cookie management, text analysis, and user validation. Additional tasks involve XML document handling with Java for user information retrieval and building simple calculator applications. Each set emphasizes different programming concepts and technologies for web development.

Uploaded by

mulakalapallin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SET 1

1. Write an HTML page including any required Javascript that takes a number from one text field in the
range of 0 to 999 and shows it in another text field in words. If the number is out of range, it should show
―out of range‖ and if it is not a number, it should show ―not a number‖ message in the result box.
2. Implement the following web application using (a)PHP, (b) Servlets and (c) JSP
A web application that lists all cookies stored in the browser on clicking ―List Cookies‖ button. Add
cookies if necessary

SET 2

1. Write an HTML page that has one input, which can take multi-line text and a submit button. Once the
user clicks the submit button, it should show the number of characters, words and lines in the text entered
using an alert message. Words are separated with white space and lines are separated with new line
character.
2. Implement the following web application using (a)PHP, (b) Servlets and (c) JSP
A simple calculator web application that takes two numbers and an operator (+, -, /, * and %) from an
HTML page and returns the result page with the operation performed on the operands.

SET 3

1. Create an XML document that contains 10 users information. Write a Java program, which takes User Id
as input and returns the user details by taking the user information from the XML document using (a)
DOM Parser and (b) SAX parser

SET 4

1. Write an HTML page that contains a selection box with a list of 5 countries. When the user selects a
country, its capital should be printed next to the list. Add CSS to customize the properties of the font of
the capital (color, bold and font size).
2. Implement the following web application using (a)PHP, (b) Servlets and (c) JSP
A web application takes a name as input and on submit it shows a hello page where is taken from the
request. It shows the start time at the right top corner of the page and provides a logout button. On clicking
this button, it should show a logout page with Thank You message with the duration of usage (hint: Use
session to store name and time).

SET 5

1. Implement the following web applications using (a)PHP, (b) Servlets and (c) JSP
a. A user validation web application, where the user submits the login name and password to the server.
The name and password are checked against the data already available in Database and if the data
matches, a successful login page is returned. Otherwise a failure message is shown to the user.
b. A web application that takes name and age from an HTML page. If the age is less than 18, it should send
a page with ―Hello , you are not authorized to visit this site‖ message, where should be replaced with
the entered name. Otherwise it should send ―Welcome to this site‖ message.

SET 6

1. Create an XML document that contains 10 users information. Write a Java program, which takes User Id
as input and returns the user details by taking the user information from the XML document using (a)
DOM Parser
2. Implement the following web applications using (a)PHP, (b) Servlets and (c) JSP
A simple calculator web application that takes two numbers and an operator (+, -, /, * and %) from an
HTML page and returns the result page with the operation performed on the operands.

You might also like