- Học kỳ
- SU2026
- Thời Gian
- 9/8/26
- Loại tài liệu
- FE
- Mã Đề
- PRJ301_SU26_RE_701850
PRJ301_SU26_RE_701850
PRJ301 SU26 Final Exam Multiple Choice Questions
This document contains a set of multiple choice questions related to Java web development, servlets, JSP, and JSTL. Each question presents a programming concept or configuration scenario with four possible answer choices. It serves as a study or assessment material for the PRJ301 course.PRJ301 SU26 Final Exam Multiple Choice Questions
Question 1
(Choose 1 answer)
See the extract from web.xml of web application "mywebapp" on server named mywebserver, runs on port 8081:
<servlet-mapping>
<servlet-name>ServletA</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletB</servlet-name>
<url-pattern>/bservlet.html</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletC</servlet-name>
<url-pattern>*.servletC</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ServletD</servlet-name>
<url-pattern>/dservlet/*</url-pattern>
</servlet-mapping>
Given that a user enters the following into thier browser, which (if any) of the mapped servlets will execute?
(Choose one.)
You do not have permission to view link Đăng nhập hoặc Đăng ký.A. ServletA
B. ServletB
C. ServletC
D. ServletD
Question 2
(Choose 1 answer)
What are the implications of maintaining user roles and permissions within the session object?
A. This method is both secure and efficient, providing immediate retrieval of authorization details
B. It is often considered unsafe because there is a risk that someone could change the session information, which could lead to unauthorized access to higher privileges..
C. Advisable to reduce the frequency of database queries, hence optimizing performance.
D. There are no identified disadvantages; this technique is widely endorsed for managing access controls
Question 3
(Choose 1 answer)
Which method is called when a servlet is being removed from service?
A. destroy()
B. stop()
C. end()
D. dispose()
Question 4
(Choose 1 answer)
What does the var attribute in the <fmt:message> tag define?
A. The name of the internationalization bundle
B. The variable to store the formatted message
C. The message key to look up in the resource bundle
D. The scope of the message variable
Question 5
(Choose 1 answer)
Which of the following is a valid example of a JSP declaration?
A. <%@ page language="java" %>
B. <%! private int count = 0; %>
C. <%= "Hello World" %>
D. <% int x = 10; %>
Đính kèm
-
PRJ301 SU26 FE RE_001.webp34.7 KB · Lượt xem: 53 -
PRJ301 SU26 FE RE_002.webp54.4 KB · Lượt xem: 46 -
PRJ301 SU26 FE RE_003.webp49.4 KB · Lượt xem: 37 -
PRJ301 SU26 FE RE_004.webp41 KB · Lượt xem: 38 -
PRJ301 SU26 FE RE_005.webp41.2 KB · Lượt xem: 33 -
PRJ301 SU26 FE RE_006.webp36.2 KB · Lượt xem: 36 -
PRJ301 SU26 FE RE_007.webp37.3 KB · Lượt xem: 32 -
PRJ301 SU26 FE RE_008.webp42 KB · Lượt xem: 32 -
PRJ301 SU26 FE RE_009.webp111.7 KB · Lượt xem: 32 -
PRJ301 SU26 FE RE_010.webp54 KB · Lượt xem: 32 -
PRJ301 SU26 FE RE_011.webp84.8 KB · Lượt xem: 31 -
PRJ301 SU26 FE RE_012.webp59.4 KB · Lượt xem: 31 -
PRJ301 SU26 FE RE_013.webp107.6 KB · Lượt xem: 29 -
PRJ301 SU26 FE RE_014.webp60.6 KB · Lượt xem: 29 -
PRJ301 SU26 FE RE_015.webp41.9 KB · Lượt xem: 27 -
PRJ301 SU26 FE RE_016.webp40.3 KB · Lượt xem: 29 -
PRJ301 SU26 FE RE_017.webp38.2 KB · Lượt xem: 28 -
PRJ301 SU26 FE RE_018.webp37.9 KB · Lượt xem: 25 -
PRJ301 SU26 FE RE_019.webp50.9 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_020.webp47.2 KB · Lượt xem: 26 -
PRJ301 SU26 FE RE_021.webp62.4 KB · Lượt xem: 25 -
PRJ301 SU26 FE RE_022.webp51.4 KB · Lượt xem: 21 -
PRJ301 SU26 FE RE_023.webp50.1 KB · Lượt xem: 24 -
PRJ301 SU26 FE RE_024.webp40.4 KB · Lượt xem: 26 -
PRJ301 SU26 FE RE_025.webp37.6 KB · Lượt xem: 29 -
PRJ301 SU26 FE RE_026.webp43.3 KB · Lượt xem: 26 -
PRJ301 SU26 FE RE_027.webp79.6 KB · Lượt xem: 26 -
PRJ301 SU26 FE RE_028.webp43.1 KB · Lượt xem: 33 -
PRJ301 SU26 FE RE_029.webp85.5 KB · Lượt xem: 32 -
PRJ301 SU26 FE RE_030.webp50.8 KB · Lượt xem: 25 -
PRJ301 SU26 FE RE_031.webp36.4 KB · Lượt xem: 24 -
PRJ301 SU26 FE RE_032.webp59.1 KB · Lượt xem: 25 -
PRJ301 SU26 FE RE_033.webp50 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_034.webp56.4 KB · Lượt xem: 22 -
PRJ301 SU26 FE RE_035.webp58.3 KB · Lượt xem: 21 -
PRJ301 SU26 FE RE_036.webp44.1 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_037.webp81.3 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_038.webp51.3 KB · Lượt xem: 19 -
PRJ301 SU26 FE RE_039.webp35.6 KB · Lượt xem: 18 -
PRJ301 SU26 FE RE_040.webp39.3 KB · Lượt xem: 21 -
PRJ301 SU26 FE RE_041.webp48.7 KB · Lượt xem: 22 -
PRJ301 SU26 FE RE_042.webp40.8 KB · Lượt xem: 22 -
PRJ301 SU26 FE RE_043.webp48.3 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_044.webp44.2 KB · Lượt xem: 24 -
PRJ301 SU26 FE RE_045.webp41.4 KB · Lượt xem: 25 -
PRJ301 SU26 FE RE_046.webp37.3 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_047.webp47.4 KB · Lượt xem: 23 -
PRJ301 SU26 FE RE_048.webp50.8 KB · Lượt xem: 24 -
PRJ301 SU26 FE RE_049.webp63.6 KB · Lượt xem: 20 -
PRJ301 SU26 FE RE_050.webp47.7 KB · Lượt xem: 52
Sửa lần cuối:


