Niit MCQ
Niit MCQ
Niit MCQ
(b) Consistency
(c) Isolation
(d) Distributed
(e) Durability.
Answers
Answer
1.
2.
E
ponent
Explanation
The format for EJB deployment descriptor files is XML.
EJB is a middleware, Scalable component architecture, Com
4.
5.
6.
7.
8.
9.
10.
Explanation
11.
12.
13.
E
All the approaches are used for state maintenance in Web
applications
14.
EJB.
15.
16.
17.
18.
19.
form
20.
21. Which method of the servlet is/are called several times in its life?
(a) init()
(b) doPost()
(c) destroy()
(d) Both (a) and (b) above
(e) Both (a) and (c) above.
22. Which EJB uses EJB-QL for query operations?
(a) BMP Entity Bean
(b) CMP Entity Bean
(c) Session Bean
(d) Message-Driven Bean
(e) MCP Entity Bean.
23. Which object is used to forward the request processing from one servlet to
another?
(a) ServeltContext
(b) ServletConfig
(c) RequestDispatcher
(d) ResponseDispatcher
(e) ResponseRedirect.
24. Which is not a valid scope for Java bean in JSP?
(a) Page
(b) Session
(c) Request
(d) Application
(e) Global.
25. Which of the following allows substitution of code to occur at the
translation time in a JSP page?
(a) <jsp:include> Tag
(b) <@ include> directive
(c) <@ page > directive
(d) Declaration block
(e) None of the above.
26. Which of the following property of Java Bean represents a single value?
(a) Simple property
(b) Boolean property
(c) Indexed property
(d) Both (a) and (b) above
(e) Both (b) and (c) above.
27. Which of the following is used to redirect the response from a servlet to a
JSP page?
(a) response.sendRedirect()
(b) request.sendRedirect()
(c) request.forward()
(d) response.forward()
(e) request.dispatch().
28. Which of the following is true for Java Bean?
Explanation
21.
22.
23.
C
Request Dispatcher is used to forward the request processing
from one servlet
to another.
24.
25.
B
translation
26.
27.
A
servlet to a
28.
29.
jsp:use bean tag is not used to execute the body of tag if any.
30.