WTAD Sample Test Paper 4

WTAD Sample Test Paper 4

Que. 1 (1)List out advantages of JavaScript.
(2)Capturing user requests is traditionally done via a ______________.
(3)_____________ attribute of <BODY> tag is used to change the
default background color.
(4)List out methods and properties of Math Object in JavaScript.
(5)Write a java Script for validation of prime numberin textbox.
06
Que 2(a) List basics steps for querying databases. Explain in brief. 03
(b) How to access scoped variable using Expression Language with small
example.
04
OR
(b) Explain JSP Expression, JSP Scriptlets and JSP Declaration with
example.
03
Que 3. List all HTTP 1.1 Request Headers. Explain any five in detail. 06
OR
Que 3. List all HTTP 1.1 Response Headers. Explain any five in detail. 06
Que 4. What is Java Bean? How to use it? Explain with example. 06
OR
Que 4. What is MVC Architecture? List steps for implementing MVC
architecture? Write a simple program to explain MVCarchitecture.
06
Que 5. Develop a Servlet which looks for cookies for username and password,
and forwards to a home.jsp in case the cookies are valid and forwards to
login.jsp, in case the cookies are not found or thecookies are not valid.
06
OR
Que 5. Develop a program to perform the database driven operation like List all
records and insert new records. To perform the above operations create
one table named Employee.
EmpId Integer, Empname Varchar, Emp_Salary Numeric