
- JSP - Home
- JSP - Overview
- JSP - Environment Setup
- JSP - Architecture
- JSP - Lifecycle
- JSP - Syntax
- JSP - Directives
- JSP - Actions
- JSP - Implicit Objects
- JSP - Client Request
- JSP - Server Response
- JSP - Http Status Codes
- JSP - Form Processing
- JSP - Writing Filters
- JSP - Cookies Handling
- JSP - Session Tracking
- JSP - File Uploading
- JSP - Handling Date
- JSP - Page Redirect
- JSP - Hits Counter
- JSP - Auto Refresh
- JSP - Sending Email
- JSP - Standard Tag Library
- JSP - Database Access
- JSP - XML Data
- JSP - Java Beans
- JSP - Custom Tags
- JSP - Expression Language
- JSP - Exception Handling
- JSP - Debugging
- JSP - Security
- JSP - Internationalization
- JSP Useful Resources
- JSP - Questions and Answers
- JSP - Quick Guide
- JSP - Useful Resources
- JSP - Discussion
JSP Online Quiz
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.

Answer : A
Explaination
JSP container creates _jspService() methods so it should not be overridden.
Answer : B
Explaination
jsp is a server side technology.
Q 3 - Which is the methods of generated Servlet?
Answer : D
Explaination
All of the above methods get generated in generated servlet.
Q 4 - Which of the following is true about language attribute?
A - The language attribute indicates the programming language used in scripting the servlet.
B - The language attribute indicates the programming language used in scripting the html page.
C - The language attribute indicates the programming language used in scripting the JSP page.
Answer : C
Explaination
The language attribute indicates the programming language used in scripting the JSP page.
Q 5 - config is instance of which class?
A - javax.servlet.ServletContext
Answer : B
Explaination
The config object is an instantiation of javax.servlet.ServletConfig and is a direct wrapper around the ServletConfig object for the generated servlet.
Q 6 - What are cookies?
Answer : A
Explaination
Cookies are text files stored on the client computer and they are kept for various information tracking purpose.
Q 7 - Which of the following is true about include directive?
A - The include directive is used to include a file during the translation phase.
Answer : C
Explaination
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 is true about <jsp:forward> action?
A - The forward action terminates the action of the current page.
Answer : C
Explaination
The forward action terminates the action of the current page and forwards the request to another resource such as a static page, another JSP page, or a Java Servlet.
Q 9 - What is Internationalization?
A - Internationalization means creating international content on a website.
C - Internationalization refers to creating local content on a website.
Answer : B
Explaination
Internationalization means enabling a web site to provide different versions of content translated into the visitor's language or nationality.
Q 10 - What is the use of <c:catch> tag?
A - to catch any Throwable that occurs in its body and optionally exposes it.
Answer : A
Explaination
The <c:catch> tag catches any Throwable that occurs in its body and optionally exposes it. Simply it is used for error handling and to deal more gracefully with the problem.