You are on page 1of 4

Q 1 - _jspService() method of HttpJspPage class should not be overridden.

A - True

B - False

Answer : A
Explaination
JSP container creates _jspService() methods so it should not be overridden.
Hide Answer

Q 2 - Which of the following is a server side technology?

A - html

B - jsp

C - javaScript

D - css

Answer : B
Explaination
jsp is a server side technology.
Hide Answer

Q 3 - All servlet classes are required to be mapped and configured in web.xml.

A - True

B - False

Answer : A
Explaination
Yes, all servlets are required to be mapped/configured in web.xml
Hide Answer

Q 4 - Which of the following attribute is used to mark a page as error processing page?

A - isErrorPage

B - errorPage

C - exception

D - exceptionPage

request. Hide Answer .Which of the following is true about autoFlush Attribute? A . D .getParameter() B . B .Both of the above.response. Answer : C Explaination The autoFlush attribute specifies whether buffered output should be flushed automatically when the buffer is filled.getParameterValues() D .The autoFlush attribute can specify that buffered output should be flushed automatically when the buffer is filled. or whether an exception should be raised to indicate buffer overflow. Show Answer Q 5 . for example check box selections? A .getParameterValues() method to get the value of a form parameter if the parameter appears more than once and returns multiple values.request. Show Answer Q 6 .Which of the following method can be used to read a multiple values with same name.getParameterValues() Answer : C Explaination You call request.None of the above.Answer : A Explaination <%@ page isErrorPage="true" %> Within jsp. C .response. using the above directive. indicate that it is an error-processing page.getParameter() C .The autoFlush attribute can specify that an exception should be raised to indicate buffer overflow.

Both of the above.How to pass information from JSP to included JSP? A . C . or declarations.JSP container will ignore the any scriptlets.None of the above.Using <%jsp:import> tag. expressions (non- EL).The jspDestroy() method is the JSP equivalent of the destroy method for servlets.Q 7 .Both of the above. C . B . B . D .What will happen if isScriptingEnabled attribute is set as false? A .The destruction phase of the JSP life cycle represents when a JSP is being removed from use by a container. C . Answer : C Explaination The destruction phase of the JSP life cycle represents when a JSP is being removed from use by a container.Using <%jsp:param> tag. Answer : A Explaination A translation-time error will be raised if the JSP uses any scriptlets.A translation-time error will be raised if the JSP uses any scriptlets. D . D . Show Answer Q 9 . or declarations similar to comments. expressions (non-EL). . B .None of the above.Which of the following is true about Cleanup phase in JSP life cycle? A .Using <%jsp:useBean> tag.The jspDestroy() method is the JSP equivalent of the destroy method for servlets. Hide Answer Q 8 . or declarations. expressions (non-EL).Using <%jsp:page> tag.

.it removes the data row from the database.It removes a variable from either a specified scope or the first scope where the variable is found D .It removes a item from a list B . Hide Answer Q 10 .None of the above.Answer : A Explaination Using <%jsp:param> tag you can pass information from JSP to included JSP.What is the use of <c:remove > tag? A . C . Answer : C Explaination The <c:remove > tag removes a variable from either a specified scope or the first scope where the variable is found (if no scope is specified).