Preview

Advance Excel and Mis Training in Delh

Good Essays
Open Document
Open Document
2086 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Advance Excel and Mis Training in Delh
DURATION :
Test Pattern:

Paper1: 40 J2EE Questions (50 minutes)

Paper2: 40 JAVA Questions (50 minutes)

All questions are multiple-choice !

-------------------------------------------------------------------

J2EE PAPER:

-------------------------------------------------------------------

1. What exception is thrown when Servlet initialization fails ?

(a) IOException

(b) ServletException

(c) RemoteException

ANS: (b)

-------------------------------------------------------------------

2. How can a Servlet call a JSP error page ?

(a) This capability is not supported.

(b) When the servlet throws the exception, it will automatically be caught by the calling JSP page.

(c) The servlet needs to forward the request to the specific error page URL. The exception is passed along as an attribute named "javax.servlet.jsp.jspException".

(d) The servlet needs to redirect the response to the specific error page, saving the exception off in a cookie.

ANS: (c)

-------------------------------------------------------------------

3. What is the key difference between using a and HttpServletResponse.sendRedirect()?

(a) forward executes on the client while sendRedirect() executes on the server.

(b) forward executes on the server while sendRedirect() executes on the client.

(c) The two methods perform identically.

ANS: (b)

-------------------------------------------------------------------

4. Why beans are used in J2EE architecture in stead of writing all the code in JSPs ?

(a) Allows separation of roles between web developers and application developers

(b) Allows integration with Content Management tools

ANS: (a)

-------------------------------------------------------------------

5. Why DB connections are not written directly in JSPs ?

(a) Response is slow

(b) Not a standard J2EE architecture

(c) Load Balancing is not possible

(d) All the above

(e) Both (b) and (c)

ANS: I

You May Also Find These Documents Helpful

Related Topics