mumbai university question
papers internet programming
iv sem may-june 2010
(1) Attempt any five questions.
(2) Assume suitable data wherever necessary.
(3) Figures to right indicates full marks.
[Total Marks: 100
1. (a) What is CSS ? Explain the variqus ways to add the presentation sty\e to HTML 10
page with the help of suitable-.~’Xamples?
(b) With the help of suitable exampJescompare and contrast the use of <div> and 10
2. (a) Create a web page with the functionality of EMI (Equated Monthly Instalment) 10
calculate. The page should have four text fields and two buttons named calculate
and clear. Out of the four text fields, three are to accept data Le. principle, interest
rate and loan term in number of months, and the fourth one to give out result, the
EM!. EMI can be calculated as R = P(r/(1 – 1/(1 + rr’)) where R-> EMI ;
P -> principle; r-> rate of interest and n-> loan terms in months.
(b) Construct a form with two text fields: one for user name and one for password. 10
When a submit button is clicked, the form is submitted to the echo program if
validation is successful.Otherwise,the user is alerted and the form is not submitted.
The validation is as follows ~
. Both user name and password must be four to eight characters in length.
. The user name must be composed only of alphanumeric characters
(a-z, A-Z, 0-9). The user name must begin with an alphabetic character.
. The password must adhere to the same constrains as the user name with
the exception that it may also contain the underscore and hyphen, but not as the
3. (a) The file called xyz.jsp is available in the document directory of the web server. 10
Explain with the help of diagram the activities take-place when the request for the / F
xyz.jsp is made for the first time.
(b) A table nam~d IITitles’ is available in the database and there are five entries ‘in. 10
table.Write”a;’;JiSPpage to displaythe table upon requestedthis JSP page. .
I title_id ,”, titl’~_name I price I quantity I
(a) Explain the various validation controls in ASP. NET. Also explain the validation 10
(b) Write an ASP page to allow the user to enter his/her age (numeric value between 10
1 and 99). Apply proper validations and generate required error messages in case.
The field is mandatory.
w w w . s t u p i d s i d . c o m