ScreenShotTypedQuestion 15.01.24 Correctupdate
ScreenShotTypedQuestion 15.01.24 Correctupdate
a) Transform
b) Allow
c) Select
d) View
3. Which of the following are the data access technology? (Choose two)
a) frameworks
b) JSTL
c) EJB
d) RMI
e) A&C
5. Which of the following are JSP Action tags are used for bean development?
a) Jsp:useBean
b) Jsp:setProperty
c) jsp:getProparty
d) All of the above
8. Which are the correct about Model 1 Architecture? (choose all that are applicable--
a) Quick and simple
b) Page centric
c) Complex
d) Not page centric
e) Above a & b
10.Which of the following are the basic deployment technique? (choose two…
11.Which tag provide a generic way to access URL-based resources that can be either included or
processed ?
a) <c:import>
b) <c:url>
c) <c:param>
15. Which are the correct about Model 1 Architecture?(choose all that are applicable)
17. Which package is used that you have no longer to manage database connection
parameters in your code?
a) Java.sql.DriverManager
b) Org.git.mm.mysql.Driver
c) Javax.sql.DataSource
d) None
a) True
b) False
a) Init()
b) Service()
c) Destroy()
d) All of the above
21.. Which of the following Layer Architecture keep separate Business Objects form Data Access
Objects?
a) One-Layer Architecture
b) Two-Layer Architecture
c) Three--Layer Architecture
d) All of the above
A.K
1. Which of the following is a server side technology?
A. html
B. Jsp
C. javaScript
D. css
2. How you create various kinds of input elements by JSF
A. <h:inputSecret >
B. <f:inputText>
C. <f:inputTextarea>
11. Which of the following configuration file controls flows through the application in JSF?
A. web.xml
B. faces-config.xml
C. None
12. To define Faces Servlet on web.xml
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>blank </servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
the value of blank
A. javax.faces.webapp.ext.FacesServlet
B. javax.faces.webapp.FacesServlet
C. javax.faces.webapp.servlet.FacesServlet
13. How can you create drop-down menus,list boxes, radio buttons, and check boxes in JSF by using
A. The HTML Custom Actions
B. The Core Custom Actions.
C. None
MILON……………..
1. Which of the following two JAR files is required for JSTL implementation?
A).commons-collections.jar
B).x.tld
C).standard.jar
D).jstl.jar
E).above c,d
3. Which of the following two mechanisms are used to make EJB persistence to the data storage?
A).Container-managed persistence
B).Object-model persistence
C).Bean-managed persistence
D).Both A & C
9.Evaluate the following JSP script and select the right option----------
1.<%--inside code here--%>
2.
3.
4.Today is: <%= new Date()%>
5.
6.
What needs to go on line 1?
a. <%@ page import =”#{java.util.Date}”%>
b. <%@ import class=”#{java.util.Date}”%>
c. <%@include file=”#{java.util.Date}”%>
d. <%@ include class=”#{java.util.Date}”%>
12. Which two HTTP methods are used to process data in a Servlet?
A).doGet
B).doPut
C).doPost
D).doSubmit
E).both A & C are correct
16. Which of the following Layer Architecture keep separate Business Objects from Data Access Objects?
A).One-Layer Architecture
B).Two-Layer Architecture
C).Three-Layer Architecture
D).All the above
19. Which of the following properties provide an easy facility for internationalising and customising the pages for JSF?
A).JavaBean
B).Tag library.
C).Message Bundles
D).None
22. Which package is used that you have no longer to manage database connection parameters in your code?
A).java.sql.DriverManager
B).org.gjt.mm.mysql.Driver
C).javax.sql.DataSource
D).None
kamal…………………
1.doGet(), doPost(),doHead, doDelete() belongs to what type of servlet?
a.HttpServlets
b.Generic Servlets
c.All of the above
d. None of the above
7. Which of the following technologies is best used when a great deal of programmatic control is required?
a. JSP
b. Servlet
c.JSF
d.None
15. Which of the following statements are true regarding RSS Newsreader?
a. RSS is a XML based format.
b.RSS is a text based format.
c. It represents the current news stories available on the website.
d. Both A & C
18. Hibernate is used to simplify to interact with the database
a.True
b. False
20. Which is the basic deployment folder in the web container of Tomcat?
a.lib
b. WEB-INF
c. wabapps
22. Which of the following are the basic deployment techniques? (Choose two)
a.Expanded directory format
b.JAR
c. WAR
d.Class
e. both A & C are correct
1. Which of the implicit variable of JSP pages that may be used to access all the other implicit
objects?
a.context
b.Page
c.pageContext
d. object
9. Which of the implicit variable of JSP pages that may be used to access all the other implicit objects?
a.context
b.Page
c.pageContext
AZME—
10. Imagine that as part of serving a client request, a controlling servlet has caused some business logic to query a database
and retrieve a result set. The data retrieved is then used to populate a collection of objects.
For the above scenario which standard tag we will use?
A. <c:forTokens>
B. <cchoose>
C. <c:forEach>
11. The Servlet interface has licycle methods the following
A. Init()
B. Service
C. Destroy()
D. all of the above
12. Which XML attribute allows us to specify XPath expressions?
A. Transform
B. Allow
C. Select
D. View
13. Which of the following two JAR files required for JSTL implementation?
A. commons-collections.jar
B. x.tld
C. standard.jar
D. jstl.jar
E. above c,d
14. Which is the basic deployment folder in web container of Tomcat?
A. lib
B. WEB-INF
C. wabapps
15. Which of the following ways you can terminate session? (choose two))
A. session.invalidate()
B. session.destroy()
C. session-timeout
D. Both A & C
16. When the web container cannot find a file requested in the web application, it will show the status code.
A. 408
B. 500
C. 404
D. 504
Z O B A E R. . . . . .
1. Choose the correct life cycle phases of JSP?
a. start, runable, not runable and destroy.
b. initializing, servicing and processing and finalization
c. translation, initialization, execution and finalization
2. Which of the following are the data access technology? (Choose two)
a. frameworks
b. JSTL
c. EJB
d. RMI
e. a & c
5. Which of the following technology is best used when a great deal of programmatic control is required?
a.JSP Servlet
b.JSF
c.None
12. The XML transformation actions provided by the JSTL are designed to apply
an XSLT stylesheet to an XML document
a.xml is a style doc
b.xslt is main doc
c.xslt is style doc
MAMIN
5. Which of the followings two mechanisms are used to make EJB persistence to the data storage? Container-managed
persistence
a) Container-managed persistence
b) Object-model persistence
c) Bean-managed persistence
d) A &C
15. Which of the following is a reserved word and so can't be used as an EL identifier?
A. empty
B. erase
C. error
D. evoke
16. Which of the following method would you require in removing a servlet instance permanently from a servlet container?
A. doDelete()
B. destroy()
C. delete()
D. remove()
Sajjad….
1. Which of the following are JSP Action tags are used for bean
development?
A. jsp:useBean
B. jsp:setProperty
C. jsp:getProperty
D. All of the above
4. Which of the following properties provide an easy facility for internationalizing and customizing the pages for JSF?
A. JavaBean
B. Tag library.
C. Message Bundles
D. None
7. Which tag provide a generic way to access URL-based resources that can be either included or processed.
A. <c:import>
B. <c:url>
C. <c:param>
8. Which of the following configuration file is responsible for Hibernet connection?
A. context.xml
B. hibernet.cfg.xml
C. *.hbm.xml
9. Which of the following attribute is used to have uncaught run-time exceptions automatically forwarded to an error
processing page?
A. error
B. errorPage
C. exception
D. exceptionPage
10. Which two HTTP methods are used to process from data in a Servlet?
A. doGet
B. doPut
C. doPost
D. doSubmit
E. both A & C are correct
19. Which of the following JSP Action tags is used to include the content of another resource?
A. Jsp:plugin
B. Jsp:papam
C. Jsp:include
D. Sp:forward
20. Where do you put your JAR file under the WEB-INF folder when the JAR file contains all the custom tags that you
created?
A. WEB-INF\classes
B. WEB-INF\lib
C. WEB-INF\common
D. WEB-INF\tlds
21. Which of the following are the advantages of JavaServer Pages?
A. Reusability
B. Readability
C. Maintainability
D. All of the above
1. Which of the following are the data access technology? (Choose two)
a) frameworks
b) JSTL
c) EJB
d) RMI
e.A & C
2. Which of the following technology is best used when a great deal of programmatic control is required?
a) JSP
b) Servlet
c) JSF
d) None
7. Which of the following two JAR files are required for JSTL implementation?
a) commons-collections.jar
b) x.tld
c)standard.jar
d) jstl.jar
d) Both c and d
8. Which of the following files is a deployment descriptor?
a) WEB_INF
b) web.xml
c) jsp-config.xml
d) TLD
9. Which of the implicit variables of JSP pages may be used to access all the other implicit objects?
a) context
b) Page
c) pageContext
d) object
15. Which two HTTP methods are used to process form data in a Servlet?
a) doGet, doPut
b) doPost
c) doSubmit
d) Both a and c
18. Choose the correct answers related to Hibernate? (Choose all that are applicable)
a) Hibernate is an object-relational mapping (ORM) library for the Java language
b) Hibernate provides a mapping for object-oriented domain model to a traditional relation
c) Hibernate is a database
d) a & b
22. The `<c:forEach>` action is probably one of the most useful actions provided by the JSTL that enables its body content
to be processed a number of times. The `item` attribute is not taking reference of:
a) Array
b) dataSource
c) A string of comma-separated values
d) None of the above
23. What type of programming is JSP?
a) Server
b) Client
25. Which of the following are the basic deployment techniques? (Choose two)
a) Expand
b) JAR
c) WAR
d) Class
e) both a & c