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 tag is used to define a custom JSP tag? <custom:tag> <define:tag> <jsp:custom> <taglib:tag>2. How do you iterate over a collection in JSP? <for> <loop> <c:forEach> <jsp:iterate>3. What is the purpose of the tag in JSP? Embeds a Java applet in the page Includes an external JavaScript file Configures browser plugins Defines a custom JSP tag4. Which attribute is used to specify the MIME type of the response in a JSP page? contentType responseType outputType pageType5. Which implicit object represents the HTTP request in JSP? request response session application6. Which method is used to redirect a client to another page in JSP? sendRedirect() forward() redirectTo() include()7. Which directive is used to import a Java class in JSP? <include> <import> <jsp:import> <page:import>8. 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">9. Which JSP tag is used for handling exceptions? <error> <exception> <try- catch> <jsp:catch>10. In JSP, what is the default scope of a variable declared using the syntax? Page scope Request scope Session scope Application scope11. 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 package12. Which JSP tag is used to include a file or resource at the request time? <jsp:include> <jsp:forward> <c:import> <include:file>13. Which JSP tag is used to display the value of a JavaBean property? <jsp:get> <jsp:display> <c:out> <bean:out>14. 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 type15. How do you retrieve a parameter passed in the URL in a JSP page? request.getParameter("paramName") page.getParameter("paramName") param.getParameter("paramName") jsp.getParameter("paramName")16. What is the purpose of the tag in JSP? Creates a new JavaBean instance or retrieves an existing one Declares a JavaBean class Declares a JavaBean class Configures session attributes17. In JSP, what is the purpose of the tag? Declares a JavaBean Imports a Java class Defines a custom tag Sets a session attribute18. What is the purpose of the tag in JSP? Specifies the programming language for the page Configures page-level attributes Imports a Java class Defines a custom JSP tag19. sendRedirect() forward() redirectTo() include()20. How can you include static content (like HTML) in a JSP page? <jsp:static> <jsp:include> <jsp:content> <static:include>5 out of 4Time is Up!