Вы находитесь на странице: 1из 7

Paper1:

CS506 today paper 11 o'clock today 01-09-2018:()share by someone).


1. Describe remaining features of JSF? (3 features were given to me) (5 marks)
2. How do Request-response incorporate with servlet ? Explain with the help of diagram (5 marks)

Answer:

3. Find the problems in the code. The subject code (cs506) was sending request to forward
dispatcher http. (Code was given to me) (5 marks)
4. J2EE related question. (3 marks)
5. Which application layer you would use if you want to access [login, authentication, DBAccess] and
want to store this information? (3 marks)

6. Which approach is suitable ? (3 marks)


(Mostly questions were from application, response request and servlet)

Paper2:

Cs506
1:MVC model1 with diagram
Answer:
2:System. gc() we call this method manually or not
Answer:

3:Which Java technologies used for client side and server side validation
Answer:

4:What make servlets more efficient then CGI


Answer:
5:write statement to add value hash map object session data

6:Write syntax of java method that will set thread priority to minimum using pre define
constant
Answer:
Thread.setPriority(Priority value);

7:Code to search cookies named amazon from the available and disply messege

paper3:

Mine CS506 Today's Paper.


Total questions=50
MCQs=40
Short questions of 3 marks=5
Long questions of 5 marks=5.
MCQs were all from past Moaaz and Waqar's file. few 2,3 were new from handouts.
Subjective:

Why post method is good then get method? 3 Marks.


Answer:
Write the java technologies that used for client side validation and server side validation. 3
Marks.
Answer:

How to improve the constructor and main method() ? 3 Marks.


Answer:

main() method is the entry point for any program in java. This is the method which is
invoked by the JVM to execute the program.
Every class including abstract classes has a constructor. Even if you don't declare one
explicitly, compiler will add a default constructor. The main() method has to belong to
some public class (which will always have a constructor). Yes generally it is preferable to
design another class which has all the programming logic and just instantiate this class
in the main class i.e. the one with main() method in it.
But you can also have a class with main method which creates object of its own class
(because you cannot access instance members from static methods).

Relate the following elements with JSP. 3 Marks.


1. Scriptlet
2. Expression
Answer:
How we can say that a client has used which method to send a request? 3 marks.
Answer:

JSF 3 features were given write remaining features. 5 Marks.


How to send a cookie to a browser also read the coming cookie in browser. (write coding). 5
marks.
Answer:

How to request-response is incorporated in servlet? Explain each with the help of diagram. 5
Marks.
Write a simple code that write following in text file. 5 Marks.
Web design and development
CS506
Answer:

To simplify code in JSP expressions and scriptlets, you are supplied with eight implicit
objects three of them are given write remaining objects name. 5 Marks.
1. Response
2. Request
3. Out

Вам также может понравиться