Sie sind auf Seite 1von 8

ANNA UNIVERSITY: CHENNAI 600 025

B.E/B.Tech. DEGREE EXAMINATIONS, APR / MAY - 2014


Regulations 2008
Sixth Semester
(B.Tech Information Technology)
IT2357 Web Technology Lab
Time: 3 Hours

Maximum Marks: 100

1) (a) Create a web page which includes an embedded map and display the related information
about the place when a hot spot is clicked on the map.
(b) Write a script that calculates the squares and cubes of the numbers from 0 to 10 and
display the resulting values in an HTML table as below:
Number

Square

Cube

27

16

64

25

125

36

216

49

343

64

512

81

729

10

100

1000

2) (a) Create a web page that describes an unordered list of at least four books. The bullet for
each book must be a small image hot spot. When you click the picture all the related
information about the book must be shown.
(b) Write a script that calculates the square and cube of numbers from 5 to 15 using alert
dialog.

3) (a) Create a web page using frame sets that containing inline and internal style sheets and
make it link to the external style sheets. Include information about a company providing
Tours and Travels.
(b) Write a script that inputs a telephone number as a string in the form (044) 555-5555. The
script should use string method split to extract the area code as a token and the last four digits
of the phone number as a token. Display the area code in one text field and the seven-digit
phone number in another text field.

4) (a) Create and test a web document that describes nested ordered lists of cars. The outer list
must have three entries, namely compact, midsize and sports. Inside each of these three lists
there must be two sub-lists of body styles. The compact and midsize car sub-lists are two
doors and four doors; the sports car sub-lists are coupe and convertible. Each body-style sublist must have at least three entries, each of which is the make and model of a particular car
that fits the category. Use appropriate colors to differentiate each list of cars. Use inline,
internal and external style sheets
(b) Write a script that reads an integer and display whether it is odd or even.

5) (a) A local university has asked you to create an DHTML document that allows
prospective students to provide feedback about their campus visit. Your DHTML
document should contain a form with text boxes for a name, address and e-mail.
Provide checkboxes that allow prospective students to indicate what they liked
most about the campus. The checkboxes should include: students, location,
campus, atmosphere, and sports. Also, provide radio buttons that ask the
prospective students how they became interested in the university. Options should
include: friends, television, Internet and other. In addition, provide a text area for
additional comments, a submit button and a reset button.
(b) Write a script that reads a five-digit integer and determines whether it is a palindrome or not.

6) (a) Write an applet program to display four checkboxes, labeled Tacos, Chalupas,
Burritos and Nachos. Besides each checkbox there must a text box labeled
quantity. Add event handling functions to get input from user in a text box. The
program must compute the cost of the order, assume the cost of each item as Rs.
100 for Tacos, Rs. 50 for Chalupas, Rs. 150 for Burritos and Nachos cost Rs. 125.
(b) Write a script that asks the user to enter two integers and displays the larger number
followed by the words is larger in an information message dialog. If the numbers are
equal, display the message These numbers are equal.

7) (a) Create an applet with two collections of six radio buttons, labeled Red, Green,
Blue, Yellow, Magenta and Cyan. The first collection must be labeled
Foreground; the second must be labeled Background. These buttons must be
implemented to control the foreground and background colors of the display, so
that the foreground color can be seen. Include few geometric shapes and texts
(b)Write a script that inputs three integers from the user and displays the sum, average, and
product of the numbers in an alert dialog.

8) (a) Create an applet program to display three concentric circles. Below the picture
must appear the text Concentric circles. The circles must be red and the text
must be blue.
(b) Write a script that inputs from the user the radius of a circle and displays the circles
diameter, circumference and area. [Hint: Use 3.14159 for , diameter = 2r, circumference =
2r, area = r2].

9) (a) Create an interactive applet application for a purchase order of cheese slices.
The order form should contain name and address of the purchaser, type of cheese
should be mozzarella, parmesan, cheddar produced from cow, goat, sheep, and
buffalo milk. Use check boxes to select one or more cheese types and milk type.
Order the cheese either using Visa or Master card
(b) Write a script that reads five integers and display the largest integer and the smallest
integer in the group.

10) (a) Write a JAVA program the invokes a servlet from an HTML document that
gets user name from a text box and have four checkboxes for a purchase order of
electronic items like calculator which cost Rs. 1,000, television costs Rs. 25,000,
laptop costs Rs.45,000 and a mobile phone costs Rs. 9,900. Use radio buttons to
make the order through online using either Visa or Master card. Calculate the total
cost of ordered items.
(b) Write a script that finds the smallest of several integers. Assume that the first value read
specifies the number of values to be input from the user.

11) (a) Write a JAVA program that invokes a servlet from an applet for getting two
inputs from a text box and displays the product of two numbers.
(b) Write a script that finds the factorial of a given number n from the user.
12) (a) Create an XML document that marks up the nutrition facts for a package of
Butter Cookies. A package of Butter Cookies has a serving size of 1 package and
the following nutritional value per serving: 260 calories, 100 fat calories, 11
grams of fat, 2 grams of saturated fat, 5 milligrams of cholesterol, 210 milligrams
of sodium, 36 grams of total carbohydrates, 2 grams of fiber, 15 grams of sugar
and 5 grams of protein.
(b) Write a script that finds the smallest of several integers. Assume that the first value read
specifies the number of values to be input from the user.

13) (a) Write an XSL style sheet for an XML document consisting of details about the
shopping cart purchase list with 50gms of Badam, 100gms of Cashew nuts,
150gms of coffee powder, 250gms of salt, 500gms of Dhal, 750 liter of oil and
1000gms of sugar and displays the document about shopping cart information in
an HTML table.
(b) Write a script that calculates the sum of integers from 1 to 10 and displays the result.
14) a)Write an XSLT document that transforms the XML document consisting of information
about the employees in a manufacturing company as given below. Construct the document
into an HTML sorted list by name.
Name

Job

Department

Deitel

Chief Engineer

Engineering

Jessica

Designer

Design

Mark

Project Coordinator

Marketing

John

Administrator

Engineering

Carter

Accountant

Finance

Rose

Programmer

Technical Support

(b) Write a script that gets two numbers as input from the user and calculate the product of two
numbers.
15) (a) Write a program in Java to connect with a database that has information about the car.
The database should contain brand name of the car, color, mileage, and year of
manufacturing. You are supposed to perform a query on the database to retrieve only the cars
which are manufactured after 2010 and display the result in a web page.
(b) Write a script that gets two numbers as input from the user as length and breadth.
Calculate the area of the rectangle.
6

16) (a) Create a JSP and JDBC based online-examination. Prepare the questions of your choice.
The students should enter their name and register number before answering the questions.
The online exam should contain at least five questions. Each question should be of multiple
choices. The choice of selection should use radio buttons, for each correct answer one mark
should be awarded. After attempting all questions, proceed with submit button. After clicking
the submit button, display the result with register number, name of the student and marks
obtained in a HTML form.
(b) Write a JavaScript that use a simple function to search the word Web in the string
Programming the World Wide Web.

17) (a) Write a Java program to create a JSP and Database connectivity for displaying student
mark list. Assume that the student information is available in the database. The database
should contain register number, name of the student, mark1, mark2, mark3 and result.
Display the result in the web page after getting the input as register number from the user.
(b) Write a JavaScript that use a simple function to search the word Mining in the string
Data Warehouse and Data Mining and retrieve the position of the word.

18) (a) Develop an application using Ajax program for displaying the message Hello Ajax
World. Use button and enable click event to display the message and name the button as
Get Message.
(b) Write a script that gets two numbers as input from the user. Calculate the sum of the two
numbers.
7

19) (a) Develop an Ajax application to display the text entered in the text field in a web page
with a Welcome message. (eg: Welcome Anna University). Also display the current date
and time of the server on the page.
(b) Write a Java Script to compute your age when you enter the year of birth. Enter the year
in a text box and display the age on the web page when the button compute is clicked.

20) (a) Create two web services- a travel agent and train service and the travel agent is searching
for a train. Implement the scenario.
(b) Write a script that gets two numbers as input from user and print the greater of two
numbers

Das könnte Ihnen auch gefallen