11.) When should you use the <jsp:forward> action in a JSP page?
A) To include external JavaScript files.
B) To include content from another file.
C) To forward the request to another resource.
D) To display the result of a Java expression.
12.) What is the purpose of the <jsp:useBean> action in JSP?
A) To create or retrieve a JavaBean object.
B) To define custom tag libraries.
C) To include external resources.
D) To specify error handling settings.
13.) In JSP, what does the <jsp:setProperty> action do?
A) It sets properties of JavaBean objects.
B) It includes external JavaScript files.
C) It defines custom tags.
D) It redirects the request to another URL.
14.) What is the purpose of the <jsp:getProperty> action in JSP?
A) To forward the request to another resource.
B) To include content from another resource at runtime.
C) To get properties of JavaBean objects.
D) To define custom functions.
15.) What is Expression Language (EL) in JSP used for?
A) To define custom tags.
B) To embed JavaScript code.
C) To evaluate and display dynamic data within a JSP page.
D) To create session objects.
16.) Which symbol is used to enclose EL expressions in JSP?
A) {{ … }}
B) ${ … }
C) << … >>
D) @@ … @@
17.) What can you access using EL expressions in JSP?
A) Server-side database tables.
B) Client-side JavaScript functions.
C) JavaBean properties, request parameters, and other objects.
D) External CSS styles.
18.) What are custom tags in JSP used for?
A) To define page-specific settings.
B) To include external resources.
C) To create reusable components or functions.
D) To specify error messages.
19.) Which mechanism is used to define custom tags in JSP?
A) <%@ taglib … %>
B) <%@ include … %>
C) <%@ page … %>
D) <% … %>
20.) What is the purpose of the <custom:myTag> syntax in JSP?
A) To define a custom tag library.
B) To include external resources.
C) To declare a custom tag.
D) To create a JavaBean object.