Professional Documents
Culture Documents
MCA 401 Advanced Java Question Paper
MCA 401 Advanced Java Question Paper
A
Options
Generic Servlet is an abstract class
A
Options
This is an abstract class
A
Options
Application, out
A
Options
cookie.setAgeMax(int seconds)
A
Options
jspInit
Q6. Which class can handle any type of request so that it is protocol-independent?
A
Options
GenericServlet
Q7. How many ServletContext objects are available for an entire web application ?
A
Options
Only one
Q8. A servlet maintains session in
A
Options
Servlet Container
A
Options
servlet context
Q10. Which of the following JSP variables are not available within a JSP expression.
A
Options
out
A
Options
URL rewriting, using session object, using response object, using hidden fields
A
Options
They are instantiated every time a request is made.
Q13. What is the possible way of communication between applet and servlet
A
Options
HTTP Communication(Text-based and object-based)
Q14. If you were to add an instance field in the JSP, which element would you use
A
Options
expression( <%=%>
A
Options
Declaration
Q17. Which method shows the client what the server is receiving ?
A
Options
goGet
A
Options
config-param
Q19. The < % return; % > simply aborts the processing of JSP?
A
Options
1
Q20. Which of the following can be used to store client side user state information while avoiding any imapct due to the
A
Options
Cookies
Department of Computer App
April Sessional - 2020
MCA
config, exception
cookie.setAgeMax(float seconds)
jspDestroy
ent?
HttpServlet
ion ?
Servlet context
servlet Container
ession.
session
URL rewriting, using session object, using cookies, using hidden fields
Socket Communication
use
declaration( <%!%>
Scriptlet
B
<%!directive%>
doOption
context-param
B
false
tion while avoiding any imapct due to the users web browser configuration ?
URL rewriting
partment of Computer Application
April Sessional - 2020
MCA
page, pageContext
cookie.setMaxAge(float seconds)
_jspService
Both A & B
request
URL rewriting, using servlet object, using response object, using cookies
RMI Communication
Expression
C
<%directive%>
doTrace
init-param
C
can't say
Http Sessions
Semester:
Generic Servlet implements Servlet Interface and over-rides life cycle method.
All of these
cookie.setMaxAge(int seconds)
jspService
httpsession
URL rewriting, using request object, using response object, using session object
Comment
D
<%=directive%>
doPost
All of these
D
None of the above
Hidden tags
IV
Mark:20
Ans
C
Ans
Ans
Ans
Ans
Ans
Ans
A
Ans
Ans
Ans
Ans
Ans
Ans
Ans
Ans
B
Ans
Ans
Ans
Ans
Ans