Welcome to CHOOLS JSP ASSESSMENT (YOU HAVE ONLY 30 MINUTES TO COMPLETE THIS PART [20 Questions]) **** Wishing You All The Best **** Instructions : To start the quiz, please provide your name, email id and phone number. All questions are mandatory* Answering each question is required before going on to the next page of questions. Your response is subject to change at any time. After completed the quiz click the submit button. If, once the time is up, it will be automatically submitted. The report will be mailed to your email address after the quiz is finished. 1. Which JSP tag is used for handling exceptions? <error> <exception> <try- catch> <jsp:catch>2. In JSP, how can you declare a reusable fragment of code? <jsp:fragment> <jsp:code> <jsp:include> <jsp:scriptlet>3. Which JSP tag is used to include a file or resource at the request time? <jsp:include> <jsp:forward> <c:import> <include:file>4. What is the purpose of the directive in a JSP page? Java class Includes the content of another JSP file Defines a custom tag Configures session attributes5. Which JSP tag is used to output data to the client's web browser? <out> <c:out> <output> <write>6. What is the correct syntax for declaring a JSP variable with session scope? <jsp:sessionVar> <session:variable> <% session.setAttribute("name", value); %> <% page session.setAttribute("name", value); %>7. Which tag is used to define a custom JSP tag? <custom:tag> <define:tag> <jsp:custom> <taglib:tag>8. How do you include a Java code snippet in a JSP page? <jsp:code> <scriptlet> <java-code> <code>9. Which JSP tag is used to set the content type of the response? <set:content> <page:content> <jsp:contentType> <%@ page contentType="text/html;charset=UTF-8" %>10. How do you include external CSS in a JSP page? <style src="style.css"> <link rel="stylesheet" type="text/css" href="style.css"> <css include="style.css"> <jsp:style src="style.css">11. How do you access a session attribute in a JSP page? <% request.getSession().getAttribute("attributeName"); %> <% session.getAttribute("attributeName"); %> <% attribute.getAttribute("attributeName"); %> <% pageContext.getSession().getAttribute("attributeName"); %>12. What does JSP stand for? Java Standard Protocol Java Server Pages JavaScript Pages Java Server Protocols13. What is the purpose of the tag in JSP? Forwards the request to another JSP page or servlet Redirects the request to another URL Sends an HTTP error response Includes the content of another JSP page14. What is the purpose of the tag in JSP? Declares a Java class Includes a JavaScript code block Defines a custom JSP tag Embeds Java code in the page15. In JSP, what is the default scope of a variable declared using the syntax? Page scope Request scope Session scope Application scope16. What is the purpose of the directive in a JSP page? Defines the programming language for the page Includes a Java class in the page Specifies the output content type Imports a Java package17. Which JSP tag is used to display the value of a JavaBean property? <jsp:get> <jsp:display> <c:out> <bean:out>18. What is the purpose of the tag in JSP? Declares a JSP attribute Configures page-level attributes Defines a custom JSP tag Specifies the output content type19. sendRedirect() forward() redirectTo() include()20. Which attribute is used to specify the MIME type of the response in a JSP page? contentType responseType outputType pageType5 out of 4Time is Up!