Which method in session tracking is used in a bit of information that is sent by a web server
to a browser and which can later be read back from that browser?
a. HttpSession
b. URL rewriting
c. Cookies
d. Hidden form fields correct answers C
What technique is used for the authentication mechanism in the servlet specification?
a. Role Based Authentication
b. Form Based Authentication
c. Both A & B
d. None of the above correct answers A
Which attribute specifies a JSP page that should process any exceptions thrown but not
caught in the current page?
a. The ErrorPage Attribute
b. The IsErrorPage Attribute
c. Both A & B
d. None of the above correct answers A
Which Error Handling in Java handles runtime errors with exceptions, If an exception is not
caught in your JSP or Servlet, Resin will use a special error page to send results back to the
browser, Resin uses a default error page unless you explicitly provide an error page yourself?
a. Client Request Time Processing Errors
b. Compilation Time Processing Errors
c. JSP Translation Time Processing Errors
d. None of the above correct answers A
The ASP and JSP technologies are quite similar in the way they support the creation of
Dynamic pages, using HTML templates, scripting code and components for business logic.
a. True
b. False correct answers A
Which can generate HTML dynamically on the client but can hardly interact with the web
server to perform complex tasks like database access and image processing etc. in JSP?
a. vs.Static HTML
b. vs.Server-Side Includes
c. vs.Pure Servlets
d. Vs.JavaScript correct answers D
In JSP Action tags which tags are used for bean development?
a. jsp:useBean
b. jsp:setPoperty
c. jsp:getProperty
d. All mentioned above correct answers D
Which two interfaces does the javax.servlet.jsp package have?
,a. JspPage
b. HttpJspPage
c. JspWriter
d. PageContext
e. Both A & B correct answers E
Which of the following is an advantage of the statement - Separation of business logic from
JSP ?
a. Custom Tags in JSP
b. JSP Standard Tag Library
c. All the above
d. None of the above correct answers A
JSPs eventually are compiled into Java servlets, you can do as much with JSPs as you can do
with Java servlets.
a. True
b. False correct answers A
How many jsp implicit objects are there and these objects are created by the web container
that are available to all the jsp pages?
a. 8
b. 9
c. 10
d. 7 correct answers B
JavaServer Pages often serve the same purpose as programs implemented using the Common
Gateway Interface (CGI)
a. True
b. False correct answers A
Which action tags are used in JSP for developing web application with Java Bean?
a. jsp:useBean
b. jsp:setProperty
c. jsp:getProperty
d. Both B & C correct answers D
Which technology do we mix our business logic with the presentation logic?
a. Servlet
b. JSP
c. Both A & B
d. None of the above correct answers A
Which is the Microsoft solution for providing dynamic Web content?
a. ASP
b. JSP
c. Both A & B
d. None of the above correct answers A
A bean encapsulates many objects into one object, so we can access this object from multiple
places.
, a. True
b. False correct answers A
Which tag is used to execute java source code in JSP?
a. Declaration Tag
b. Scriptlet tag
c. Expression tag
d. None of the above correct answers B
In JSP how many ways are there to perform exception handling?
a. 3
b. 2
c. 4
d. 5 correct answers B
In JSP page directive which attribute defines the MIME(Multipurpose Internet Mail
Extension) type of the HTTP response?
a. import
b. Content Type
c. Extends
d. Info correct answers B
A JSP page consists of which tags?
a. HTML tags
b. JSP tags
c. Both A & B
d. None of the above correct answers C
Which JSP Action tags is used to include the content of another resource, it may be jsp, html
or servlet?
a. jsp:include
b. jsp:forward
c. jsp:plugin
d. jsp:papam correct answers a. jsp:include
Which packages does a JSP API consist of?
a. javax.servlet.jsp
b. java.servlet
c. javax.servlet.jsp.tagext
d. Both A & C correct answers D
JSP's provide better facilities for separation of page code and template data by mean of Java
beans, EJBs and custom tag libraries
a. True
b. False correct answers A
Connection Pooling Class manages no of user requests for connections to improve the
performance.
a. True
b. False correct answers A