Following quiz provides Multiple Choice Questions (MCQs) related to JSP Fundamentals. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Yes, jspInit() method can be overridden.
If you set the isThreadSafe option to false, the JSP engine makes sure that only one thread at a time is executing your JSP.
Q 3 - What JSP stands for?
JSP stands for Java Server Pages.
Q 4 - Which of the following is true about language attribute?
The language attribute indicates the programming language used in scripting the JSP page.
Q 5 - Where filters are defined?
Filters are defined in the deployment descriptor file web.xml and then mapped to either servlet or JSP names or URL patterns in your application's deployment descriptor.
Q 6 - Which of the following is true about import Attribute?
The import attribute serves the same function as, and behaves like, the Java import statement. The value for the import option is the name of the package you want to import.
Q 7 - Which of the following is true about include directive?
The include directive is used to includes a file during the translation phase. This directive tells the container to merge the content of other external files with the current JSP during the translation phase.
Q 8 - Which of the following step is taken by JSP container during Compilation phase?
The compilation process involves three steps: a) Parsing the JSP, b) Turning the JSP into a servlet, c) Compiling the servlet.
Q 9 - Which of the following is true about response.sendRedirect(url)?
sendRedirect sends HTTP temporary redirect response to the browser, and browser creates a new request to go the redirected page.
Q 10 - Which of the following is true about <c:choose> tag?
The <c:choose> works like a Java switch statement in that it lets you choose between a number of alternatives. Where the switch statement has case statements, the <c:choose> tag has <c:when> tags. A a switch statement has default clause to specify a default action and similar way <c:choose> has <otherwise> as default clause.