0% found this document useful (0 votes)
38 views3 pages

Model Lab Question WT

The document contains questions about various Java and web development topics like cookies, sessions, JDBC, web services, validation, XML, databases, forms, and more. Code snippets or full programs are required to answer many of the questions.

Uploaded by

Savitha R
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)
38 views3 pages

Model Lab Question WT

The document contains questions about various Java and web development topics like cookies, sessions, JDBC, web services, validation, XML, databases, forms, and more. Code snippets or full programs are required to answer many of the questions.

Uploaded by

Savitha R
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/ 3

1.

Write a code for creating cookies with name of person and secret code at
the server, after getting these details from client using HTML form. How
these details it the server side using Http servlet are displayed ? (10)
2. Write a code to display the current and yesterday’s gold rate using
session object. (6)
3. Write a Java code for getting the details of the items to be purchased from
a client and to update the inventory of the shop after selling. Also bill should
be prepared for the client. Maintain the transaction table also just by
inserting these purchase item details at the shop use JDBC, for
transactions.
4. What are the two methods thread can be created in Java ? Explain them
each with an example code. Mention the different thread methods. (OR)
5. Explain the following with proper example : i) Exception handling ii)
Event handling iii) Call back methods iv) XML validation
6. Design an XML document to store information about a student in your
college. The information must include Name, College Name, Branch, Year of
joining and e-mail id. Create a CSS style sheet and use it to display the
document
7. Write an XML document to illustrate XSL, parameter entities, reference
entities, CDATA sections allowing different types of contents in the
document
8. Create a web service in Java environment to return the sum of two
integers with necessary deployment procedure.
9. Write the Servlet code for conversion of US dollars to Indian rupees and
explain the Servlet life cycle with its code
10.Develop a website for orphanage which takes care of orphanage
children.it should contain menu pages, submitting information, image using
tables, lists and CSS.
11.Create an XML HttpRequest to retrieve data from an XML file and display
the data in an HTML table. The data to be retrived is a collection of
stationary items stored in an XML file.
12.Develop a Book database that has a table Members with two columns
Members id and Name. Write a JDBC program that can query and print all
entries in the table members. Write down the steps for connecting with
database.
13.What are static and dynamic Web sites? Explain with examples. List
down the various steps in Web hosting? Explain each.
14.Explain forms in HTML5. Develop a Job application form using Text, text
area, label, checkbox, Ratio buttons, Buttons, Dropdown Menu items.
15.Write a servlet program to display the waiting list status, given the PNR
number of a train. Create a JSP to display the information at the client end.
16.Explain the features of XML path language.
17.Design an online shopping cart application using JSP or ASP, consider a
login validation page and one billing page for bill processing.
18.Explain in detail the steps involved in writing a web service.
19.Create a registration form using HTML with fields: FullName, UserName,
Email, State, Address and ZipCode. Write javascript code to perform the
following validation for the form:

• Check for Empty Field: Has the user left required field empty. If field
is empty return alert message.
• Check for Numbers: User entered number in the Contact field.
• Check for Alphabets: has the user entered characters in alphabets in
name field.
• Check for Numbers and letters: if a text input is all alphanumeric
characters (numbers and letters) in the message field.
• Check for Characters: has the user entered correct length for the
username field.
• Select for Drop Down List item : if a selection has been made from
HTML select input (the drop down selector).
• Email Validation: has the user entered valid email address.
20.create a JSP application to insert and then retrieve the following
employee details of a company from the database and display:
1. Employee ID
2. First Name
3. Last name
4. Age
21.Design a simple personal information system that gives you remainder
for each day. identity the inputs to be taken, processing to be done and the
outputs to be produced. What multimedia components can be added to this
application?
22.Explain the architecture of a generic system. If this system is to be used
for searching only images, which components would need to be changed and
how?
23. write a PHP code for the simple calculator.
24.write a PHP program to print out the sum of pairs of numbers of a given
Sorted array of positive integers which is equal to a given number.
25. Create a XML document that marks up various sports and their
descriptions. Use XSLT to tabulate neatly the elements and attributes of the
documents.

You might also like