Professional Documents
Culture Documents
Review Questions and Review Comments
Review Questions and Review Comments
10. Create a HTML document that displays a table of basketball scores at national games in
which the team names have their respective team colors. The score of the leading/winning
team should appear larger and in a different font than the losing team. Use CSS.
11. What are the different types of lists in HTML? Explain how these lists are created in HTML
with suitable examples.
21. What are style sheets? How they are useful explain with example.
24. List the various tags in HTML with simple example for web pages
UINT 2
Q. 1 Create a javascript which has event handlers for the buttons \red", \blue", \green", \yellow"
and \orange" which must produce messages stating the chosen favorite color. The event
handler must be implemented as a function, whose name must be assigned to the onclick
attribute of the radio button elements. The chosen color must be sent to the event handler as
a parameter.
Q. 3 Write a javascript to display the amount given to the cash teller in a bank in words. (Eg. For the
given amount Rs.1523/-, output should be ONE FIVE TWO THREE)
Q. 4 Write a javascript that reads six integers and displays the largest and smallest integers from
the given integers.
Q. 6 Write a javascript to validate a form consisting of a username. Also navigate to another web
page after validation.
Q. 7 Write a script that reads an integer and determines and displays whether it is an odd or even
number.
Q. 8 Write a script that inputs several lines of text and a search character to determine the number
of occurrences of the character in the text
Q. 9 Write a javascript which asks the user to enter two integers, obtains the numbers from the
user and outputs HTML text that displays the larger number followed by the words\LARGER
NUMBER" in an information message dialog. If the numbers are equal, output HTML text as \
EQUAL NUMBERS".
Q. 10 Write a script that inputs a line of text, tokenizes it with String method split and displays the
tokens in reverse order.
Q. 14 Consider a suitable data entry form and validate it using java script at client side.
Q. 15 Write Java script to validate a form consisting of Name, Age, Address, EmaillD, . hobby
(checkbox), Gender (radiobutton),country(Dropdown menu).
Q. 16 Write a code to take opinion poll on "Voters age should be 16 & above?", With polling options
(a). YES (b). NO. (c). Don't Care. ,Also calculate final statistics after each hour.
Q. 19 Write JavaScript code to display message "Happy New Year 2009" in status bar.
Q. 20 What is client side processing and scripting? Explain its need with example.
Q. 21 Explain at least 5 java script Objects, its properties, methods,' event Handlers.
Q. 22 Write a JavaScript code which return's today's date including date, month and year.
Q. 25 Draw the hierarchy of Java Script built in objects and explain each one briefly.
Q. 27 Give Document object Model of Javascript. Explain any two objects in detail.
UINT 3
Q. 1 Explain the method of reading the names and values of parameters that are included in a
client request. Illustrate with an example program.
Q.2 Why are servlets plat-from independent? Describe the lifestyle of a servlet.
Q. 5 Write a servlet that greets the user by name Accept the username through a HTML page. Trace
the program execution.
Q. 7 Write a servlet that generates HTML page and explain the process of generation of HTML
page.
Q. 10 Write a simple servlet that accepts the user's age, and displays a message according to the
following rules :-
Use javascript to ensure that the users enters a number, and display the message from the
servlet.
Q12. Describe the servlet architecture and the various interfaces invoked by the servlet Container.
13 What is XML ?
15 What are the strengths of XML technology? Also list the limitations of using XML.
16 What are the strengths of XML technology ? Explain the need for XML.
20 What are XML schemas? How are they better than DTDs ?
21 Find out and explain how XML and AJAX are related
22 Draw and explain how AJAX works with the help of suitable example
23 What is use of XMLHttp Request Object? Explain its use with help of simple javascript code.
24 List and explain different values of readystate and status property of the HTTPRequestObject.
25 Explain with simple example the XMLHttp Request Object. List and explain different values of
readystate and status property of the HTTPRequest object.
Q. 1 Explain the mechanism to include resources dynamically and to forward request to other JSPs?
Q. 2 JSP separates the presentation from the business logic. Substantiate this statement with
suitable JSP program.
Q. 3 Write a normal JSP program to display current time and date.
Q. 4 Write an JSP program to accept Login id and password, after verifing password accept the
following data First Name, Middle Name, last Name, Date of Birth, Sex, Qualification, and Age.
Q. 6 Write JSP program to accept user name and password store it in database. Do necessary
validation.
Q. 10 Java server pages simplify the delivery of dynamic web content. Justify this statement with a
help of example program.
Q. 13 Write a program in JSP to validate the data entered in the form containing the,attributes such
as Name, age and emailaddress.
Q. 14 Write a program in JSP to validate the data entered to book railway reservation tickets
containing attributes such as Name, Gender, Age, Lower (or) Upper/middleberth etc.
Q. 15 Discuss about implicit JSP objects in detail. Explain the scope of every JSP implicit object.
Q. 17 Develop a JSP to display one of three pages based on the user choice. Collect the choice from
the user in a form of a web page.
Q18 Develop a JSP to accept users first name and then welcome the user by name.
Q. 1 How do you create cookie in PHP? Give difference between session and cookie with
example.
Q. 7 What is PHP? Write a PHP program to find whether entered year is leap year or not.
Q. 10 What are the different types of arrays in PHP? Explain with example to process the arrays in
PHP.
Q. 11 What are cookies? Explain the cookies handling in PHP with proper example.
Q 19 Write PHP code for database connectivity. Apply insert and delete operation with proper
example.
Q20 Write a PHP program to insert data in table. And also display data on browser with proper
tabular format.