Dear Ranchers;
Following are some of question in whch i have a query...In each question i have specified my answer with my understanding and also mentioned my doubt on individual question...
Queston 1.>>
A session can be invalidated by which of the following:
Please select three correct answers
A. After a default period of inactivity, say 30 minutes
B.Client side user closes the browser
C.After a specified period of inactivity, say 10 minutes
D.Client side user machine crashes
E.Explicitly invalidate a session through method calls
In this question my answer is A, D, E
and given anser is : A,C,E
Let me know what should i attempt for this type of question in exam
Queston 2.>>
.Based on the following information, please construct the full path for the
servlet.
Please select one correct answer
docbase = c:/temp/
context path = /test
alias name = MyMail
servlet-name = com.jiris.common.util.MailServlet
url-pattern = /mail/*
A.c:/temp/mail/com/jiris/common/util/MailServlet.class
B.c:/temp/test/com/jiris/common/util/MailServlet.class
C.c:/temp/mail/test/com/jiris/common/util/MailServlet.class
D.c:/temp/test/mail/com/jiris/common/util/MailServlet.class
My ANS : C
Given ans : B
In thiswhy answer is been consider as B ...url-param will not taken in to care...?
Question 3. >>
In which directory you will most likely find the file myBaseUtil.jar?
A. example/WEB-INF
B. example/lib
C. example/WEB-INF/lib
D. example/WEB-INF/classes
E. example/META-INF/lib
given ANS : C
my ans: c e....
in this; If answer can't be E then please explain for this...
Question 4.>
Consider the following contents for two
JSP files:
In file companyhome.jsp:
<html><body>
Welcome to ABC Corp!
<%@ page errorPage="simpleerrorhandler.jsp" %>
<%@ include file="companynews.jsp" %>
</body></html>
In file companynews.jsp:
<%@ page errorPage="advancederrorhandler.jsp" %>
<h3>Todays News</h3>
Which of the following statements are correct?
Select 1 correct option
A.When companyhome.jsp is requested, the output will contain "welcome..." as well as "Todays News"
B.companyhome.jsp will not compile
C.companynews.jsp will not compile
D.Both the files will compile but will throw an exception at runtime.
E.None of these
Given ANS : B
My Ans : D OR B
Please let me know which one would be the corect answer for this question.
Would appreciate if somebody help me out on specified query..
Thanks & Regards;
Brijesh