JSP MCQs - Final1
JSP MCQs - Final1
Which of the followings 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) 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
22. 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
23. 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 stores available on website.
d. Both a & c
24. How can we create drop-down menus, list boxes, radio buttons and check
boxes in JSF by using?
a. The HTML Custom Actions // JSP
b. The Core Custom Actions
c. None
28. Which of the implicit variable of JSP pages that may be used to access all
the other implicit object?
a. Context
b. PageContext
c. Page
d. Object
29. What are the main advantages of using an O/R framework over JDBC?
a. Using O/R you have a lot of queries and updates.
b. Better performance
c. Scalability and high availability
d. Above b & c
31. Choose the correct anawers related to Hibernate ?(Choose all 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 relational database.
c. Hibernate is a database
d. Above a & b
33. 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
34. Which of the following method would you require in removing a servlet
instance permanently form a servlet container?
a. doDelete()
b. destroy()
c. delete()
d. remove()
35. The Internationalization and Formatting tag library provides actions that
allow you to control the – settings for your JSP pages
a. Date
b. Locale
c. Time
42. 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
45. Which of the following are the basic deployment technique? (choose two)
a. Expanded directory format
b. JAR
c. WAR
d. Class
e. Both a & c
46. 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
48. 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
50. 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
51. 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>
56. 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
57. Which of the following ways you can terminate session? (choose two)
a. Session.invalidate()
b. Session.destroy()
c. Session.timeout
d. Logout
62. 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}”%>