SCWCD : JSP directives Mock Exam Practice Questions
Questions no -1
What is the default value of session Attribute in JSP ?
options
A)<%@ page session="true" %>
B)<%@ page session="false" %>
C)<%@ page session="yes" %>
D)<%@ page session="no" %>
Correct answer is : A
Explanations : <%@ page session="true" %> is the default value.
Questions no -2
A JSP page does not contain page attribute and trying to acccess exception implicit valiable.
options
A)exception implicit avaliable not available in the JSP page.
B)exception implicit avaliable is available in the JSP page.
C)No relation between isErrorPage attribute and exception implicit variable.
D)None of the above
Correct answer is : A
Explanations : exception implicit valiable not available in all JSP pages. Need to add page attribute
to the JSP to avaliable exception implicit in the JSP page.
|