41.) In a JSP page, how can you access the value of a request parameter named “username”?
A) ${request.getParameter(“username”)}
B) ${request.username}
C) ${param.username}
D) ${session.username}
42.) Which object in JSP is used to represent the current user session?
A) <session>
B) <userSession>
C) <HttpSession>
D) <sessionObject>
43.) How can you handle exceptions in a JSP page?
A) By using the <try> and <catch> elements.
B) By wrapping code in <exception> tags.
C) By using the <%@ page errorPage=”error.jsp” %> directive.
D) By using the <throw> statement.
44.) What is the purpose of the /WEB-INF directory in a web application?
A) To store JavaScript files.
B) To define custom tags.
C)To package JSP files.
D) To hide resources from direct client access.
45.) In a typical JSP-Servlet web application, where is the business logic often implemented?
A) In JSP pages.
B) In custom tags.
C) In JavaBeans.
D) In JSP expressions.
46.) Which feature of an Integrated Development Environment (IDE) helps you identify and correct coding errors in real-time as you type?
A) Code completion.
B) Debugging tools.
C) Syntax highlighting.
D) Project management.
47.) Which development tool is commonly used for version control in software development projects?
A) Web browser.
B) Text editor.
C) Integrated Development Environment (IDE).
D) Version control system (e.g., Git).
48.) What is the purpose of code completion in an Integrated Development Environment (IDE)?
A) To automatically write code for you.
B) To suggest code templates and provide context-aware suggestions.
C) To debug code.
D) To deploy web applications.
49.) Which tool is commonly used for deploying JSP web applications to a web server?
A) Text editor.
B) Database management system.
C) Integrated Development Environment (IDE).
D) Build tools like Apache Maven.
50.) What is the primary purpose of JSP development frameworks like Apache Struts and Spring MVC?
A) To provide integrated development environments for JSP.
B) To create custom tags for JSP.
C) To simplify and streamline the development of JSP-based web applications.
D) To define custom error pages in JSP.