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 implicit object represents the HTTP request in JSP? request response session application2. How can you include static content (like HTML) in a JSP page? <jsp:static> <jsp:include> <jsp:content> <static:include>3. 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); %>4. Which JSP tag is used to output data to the client's web browser? <out> <c:out> <output> <write>5. In JSP, what is the purpose of the tag? Declares a JavaBean Imports a Java class Defines a custom tag Sets a session attribute6. 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 page7. Which tag is used to iterate over a collection in JSP? <c:for> <c:forEach> <jsp:loop> <jsp:iterate>8. 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")9. Which tag is used to include content dynamically in a JSP page based on a condition? <jsp:if> <c:choose> <choose> <if:condition>10. What is the correct syntax for expressing scriptlet comments in JSP? <!-- Comment --> /* Comment */ <%-- Comment --%> // Comment11. 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 tag12. Which method is used to redirect a client to another page in JSP? sendRedirect() forward() redirectTo() include()13. 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 package14. Which JSP tag is used for handling exceptions? <error> <exception> <try- catch> <jsp:catch>15. 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 attributes16. What is the purpose of the tag in JSP? Includes the content of another JSP page during translation time Imports a Java class Configures session attributes Defines a custom JSP tag17. Which JSP tag is used to include a file or resource at the request time? <jsp:include> <jsp:forward> <c:import> <include:file>18. What does JSP stand for? Java Standard Protocol Java Server Pages JavaScript Pages Java Server Protocols19. 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")20. What is the purpose of the directive in JSP? Imports a Java class for the entire JSP page Declares a page-level attribute Defines a custom JSP tag Configures the session5 out of 4Time is Up!