You are on page 1of 8

UNITWISE IMPORTANT QUESTIONS

UNIT I
.

1. Design a Student Information site form using all the tags in HTML showing
a) Registration
b) Time table
2. Design a site for e-voting which includes
a) Voter Registration
b) Details of candidates with symbols
c) Submit vote
3. Design a Catalogue Page using all types of Cascading Style sheets.
4. Create an Image-map for Indian states showing the details correspondingly on hover.
5. What is box type model in CSS? Implement it on a web page for weather forecast?
6. How do you use links? Show the different types of links used along with the styles which
can be used on them
7. Add a table to your web page. Try different formatting options-how does the table look if
it doesnt have a border, for instance?
8. a) How does Java Script create HTML pages on the fly?
b) Create an HTML page which includes a simple form. Write a script to extract the data
from the form when the submit button is clicked. Display the extracted data in a new
document.
9. Write a Script that outputs HTML Text to display an HTML Table of the binary equivalent
of the decimal number in the page 1 to 256.
10. Write a script that outputs an HTML document of square, oval, diamond, arrow using

asterisks(*).
11. Write a Script Program that finds the smallest element of several elements. Assume that the
first value read specifies the number of values to be input from the user.
12. Write a script to create a new browser window and display some text in that window. Put
your script inside a suitable HTML page and test it.
13. Define an Object. Explain the various objects that are used in the java script.

14. a) What data types does Java Script use?


b) Explain the control statements in Java script with examples.
15. a) Java Script is event driven. What are events? What events can Java Script handle?
b) Explain functions in Java script.

UNIT II
1. a) Create an XML document which holds a diary of appointments. You should include day,
date and time of

events, and details of each event and of other people who may be

involved. Load the XML file into a parser such as Microsoft Internet Explorer 5 to check if it
is well formed.
b) Create a Document Type Definition for your diary.
2. Create an xml document for Library? Use XSLT to implement multiple styles on the
document.
3. a) Write an XML schema that provides tabulated information related to expected height(in
cms) and weight(in kgs) for both male and female separately for the age groups starting
with 5-10 years, 10-15 years, 15-20 years, and so on.
b) Give the merits and demerits of DTDs in XML.
4. Design an XML schema for hospital information management. Include every feature available
with schema.
5. What is XSL? Give a simple XSL Example.
6. Differentiate between XML and HTML.
7. Write short notes on following:
a) XML parsers

b) XSL

8. Explain Document Object Model(DOM) and DOM Methods?


9. Define applet? Define applet? Explain about the creating an applet.
10. What is the difference between applet and applications?
11. Explain about the life cycle of an applet? Write short notes on JComponent.
12. Explain about the container with an example. Explain about the icons &labels.with example.
13. What is the difference between applet and JApplet .
14. Write a short notes on Icons and labels. What is the difference between AWT and Swings.

15. Explain about the swing components. Explain about the JFrame with an example.

UNIT III
1. Take the Tick Tock Bean available in BDK, build an application which controls the Colors Bean. Develop the
necessary code to exhibit the bound properties of java beans with the above mentioned beans.
2. Write about the following beans with an example:
a)

Event Monitor Bean

b) Button Beans
c)

Tick Tock Beans

3. What is a Java bean? Java bean is a reusable platform-neutral software component-justify this statement.
4.

a)

Write a note on EJBs?

b) Explain the significance of Enterprise Java Beans in the present day backend business code.
5.

What is a Servlet? Explain lifecycle of a Servlet. Illustrate with an example program.

6.

Explain the following given interfaces and their usage:


a)

Applet Initializer

b) BeanInfo

c) Customizer

d) Design mode.

7.

Explain reading and setting properties using Java Bean components in JSP pages

8.

a)

Explain the following given classes and their usage:

i.

Parameter Descriptor

b) Property Change Event

c) Property Editor Manager

iv. Property Editor Support. d) Write about EJB.


9.. a)

What is a Bean Box ? Write the about Bean Box.

b) Demonstrate with a suitable example the connecting of beans with events in the Bean Box.
10. a)

What is MIME? What is meant by MIME types of file? Which is the method that can return the MIME
type of file?

b) Explain the interface that enables Servlet to log events and access information about their environment.
c)
11. a)

How to start a web browser and request a Servlet.


Create a Servlet that displays the current date and time.

b) Make a Comparison of JSDK and Apache Tomcat.

12. a)

Create a HTML form with three input fields first name, last name and e-mail. Pass these values to a
Servlet. In the Servlet, verify all input fields are not null and display them back to client.

b) Give the signature of a method which is used to read bytes from the stream for a Servlet. Explain its usage
13. Write a HTML that shows the following list:
C,
C++,
JAVA,
C#.
Define a form that contains a select element and submit button. If the user selects the java and press submit
the web page displays The selected Language is Java. Write a Servlet program using Http Servlet and do
Get method
14. a)

Write a program to demonstrate URL redirecting.

b) Explain session tracking using Http Session.


15. a). Explain the method of reading the names and values of parameters that are included in a client
request. Illustrate with an example program.
b) Discuss the methods defined by Servlet Request interface.

UNIT IV
1.

a)

Write a note on Custom-tag libraries.

b) Discuss about usage of Java Bean Component in JSP.


2.

Develop a JSP for a news channel to conduct public opinion poll on any topic. Users will respond through
yes/no answer. Later display the results in percentages.

3.

a)

Develop a JSP to demonstrate content inclusion at translation time.

b) What is a Scriptlet? Explain.


4.

a)

Develop a JSP to accept users first name and then welcome the user by name.

b) Discuss about JSTL.


5.

a)

Discuss about the Dynamic content.

b) List the methods in Request object.

6.

a)

Develop a JSP to detect the web browser.

b) Discuss the time and scope of a variable.


7.

Explain the mechanism to include resources dynamically and to forward request to other JSPs?

8.

Create a login form for a mail server and JSP to validate and to perform appropriate actions.

9.

a)

Write a JSP that handles empty form values.

b) Give a detail note on JSP action used for Java Bean manipulation.
10. Explain the anatomy of a JSP page.
11. Java server pages simplify the delivery of dynamic web content. Justify this statement with a help of
example program.
12. a)

Write a JSP to output any string ten times.

b) Give a note on Testing Tomcat Server.


13. a)

Develop a JSP to accept users first name and then welcome the user by name.

b) Discuss about Javax.servlet.jsp.tagext package.


14. a)

Develop a JSP to keep track number of users and display a message You are nth visitor where n is the
number of the user.

b) Write a detail note on JSP escape sequences.


15. Develop a JSP for a news channel to conduct public opinion poll on any topic. Users will respond through
yes/no answer. Later display the results in percentages.

UNIT V
1.

a)

Which is the biggest scope provided by JSP? Explain it.

b) Develop a JSP which uses two Beans in different scopes


2.

Explain with a suitable example how JSP deals with runtime errors.

3.

a)

Write a JSP that handles empty form values.

b). Give a detail note on JSP action used for Java Bean manipulation.
4.

How declaring a Bean in a JSP page. Explain with example.

5.

Explain session tracking in JSP.

6.

Explain JSP expressions with examples

7.

Perform insert, delete, update, retrieve operations into database using forms of student information system

8.

Perform insert, delete, and update operations into database using forms of e - voting system

9. Write a program that lists all books and authors for those books from technical library database. [Assume
database schema].
10. Perform insert, delete, update, retrieve operations using connection pooling.
11. Write a note on:
a)

Native - API, partly JAVA driver

b) CreateStatement method
c)

Primary Key

d)

CachedRowset.

12. Perform database operations using callable statement.


13. Write a JDBC program to give grace marks to students if they have excellence in more than 3
subjects but failed in 1 subject. Getting more than 80 marks is excellent
14. List and explain the steps involved in a basic JDBC program.
15. Write short notes on following:
a)

Pure Java driver

b) Driver Manager
c)

SQL query

d) Order by clause.

M. TECH. WEB TECHNOLOGIES-R13 Regulations


JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
M. Tech I Year I Sem. (Web Technologies)
ADVANCED JAVA & WEB PROGRAMMING
Objectives:
To learn the basics of java Console and GUI based programming
To introduce XML and processing of XML Data with Java
To introduce Server side programming with Java Servlets and JSP
To introduce Client side scripting with Javascript and AJAX.
UNIT I
HTML Common tags- List, Tables, images, forms, Frames; Cascading Style sheets;
Introduction to Java Scripts, Objects in Java Script, Dynamic HTML with Java Script, CSS
UNIT II
XML: Document type definition, XML Schemas, Document Object model, Presenting XML,
Using XML
Processors: DOM and SAX
Review of Applets, Class, Event Handling, AWT Programming.
Introduction to Swing: JApplet, Handling Swing Controls like Icons Labels Buttons Text
Boxes
Combo Boxes Tabbed Pains Scroll Pains Trees Tables Differences between AWT
Controls
& Swing Controls Developing a Home page using Applet & Swing.
UNIT III
Java Beans: Introduction to Java Beans, Advantages of Java Beans, BDK Introspection, Using
Bound
properties, Bean Info Interface, Constrained properties Persistence, Customizes, Java Beans API.
Web servers: Tomcat Server installation & Testing.
Introduction to Servelets: Lifecycle of a Serverlet, JSDK The Servelet API, The javax.servelet
Package, Reading Servelet parameters, Reading Initialization parameters.
UNIT IV
More on Servlets: The javax.servelet HTTP package, Handling Http Request & Responses,
Using
Cookies-Session Tracking, Security Issues.
Introduction to JSP: The Problem with Servelet. The Anatomy of a JSP Page, JSP Processing.
JSP
Application Design with MVC architecture. AJAX.
UNIT V
JSP Application Development: Generating Dynamic Content, Using Scripting Elements

Implicit JSP Objects, Conditional Processing Displaying Values Using an Expression to Set an
Attribute, Declaring Variables and Methods Error Handling and Debugging Sharing Data
Between
JSP pages, Requests, and Users Passing Control and Date between Pages Sharing Session and
Application Data Memory Usage Considerations
Database Access Database Programming using JDBC Studying Javax.sql.* package Accessing a
Database from a JSP Page Application Specific Database Actions Deploying JAVA Beans in a
JSP
Page
TEXT BOOKS:
1. Web Programming, building internet applications, Chris Bates 2nd edition,
WILEY Dreamtech (UNIT 1,2)
2. The complete Reference Java 2 Fifth Edition, Patrick Naughton and Herbert Schildt., TMH
(Chapters: 25) (UNIT 2,3)
3. Java Server Pages Hans Bergsten, SPD OReilly (UNITs 3,4,5)
REFERENCE BOOKS:
1. Programming world wide web-Sebesta, Pearson
2. Core SERVLETS ANDJAVASERVER PAGES VOLUME 1: CORE
TECHNOLOGIES, Marty Hall and Larry Brown Pearson
3. Internet and World Wide Web How to program, Dietel and Nieto PHI/Pearson.
4. Jakarta Struts Cookbook, Bill Siggelkow, S P D OReilly for chap 8.
5. Murachs beginning JAVA JDK 5, Murach, SPD
6. An Introduction to web Design and Programming Wang-Thomson
7. Professional Java Server Programming, S.Allamaraju and othersApress (dreamtech).
8. Java Server Programming ,Ivan Bayross and others, The X Team,SPD
9. Web Warrior Guide to Web Programming -Bai/Ekedaw-Thomas
10. Beginning Web Programming-Jon Duckett WROX.
11. Java Server Pages, Pekowsky, Pearson.
12. Java Script, D.Flanagan, OReilly,SPD.

You might also like