
Java Web - Session4
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Hard
academy rikkei
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thẻ <c:out> trong JSTL có chức năng chính là gì?
Gán giá trị cho biến
In giá trị của biến ra trình duyệt một cách an toàn
Kiểm tra điều kiện
Định dạng số thập phân
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong cấu trúc layout dùng <jsp:include>, file nào thường chứa phần nội dung thay đổi theo từng trang?
home.jsp
footer.jsp
menu.jsp
header.jsp
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tránh lỗi NullPointerException, lập trình viên nên làm gì trước khi truy cập thuộc tính của đối tượng trong JSP?
Gọi toString()
Dùng EL để ép kiểu
Kiểm tra null bằng <c:if> và ${not empty ...}
Dùng JavaScript kiểm tra
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thẻ JSTL nào được dùng để lặp qua danh sách?
<c:loop>
<c:repeat>
<c:forEach>
<c:each>
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lợi ích của JSTL trong phát triển JSP là gì?
Tăng tốc độ truy cập cơ sở dữ liệu
Giúp viết code Java logic ngay trong JSP dễ hơn
Giúp tách biệt giao diện và logic, mã ngắn gọn hơn
Bắt buộc phải dùng trong mọi dự án
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn mã nào sẽ hiển thị “Chào admin” nếu biến role bằng "admin"?
<c:if test="role == admin">Chào admin</c:if>
<c:if test="${role == 'admin'}">Chào admin</c:if>
${if role == 'admin'}Chào admin
<if test="${role == 'admin'}">Chào admin</if>
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong EL, biểu thức ${empty list} trả về true khi nào?
Khi list không phải là List
Khi list chứa null
Khi list là null hoặc rỗng
Khi list có ít hơn 3 phần tử
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
EXAM PL 900 - 5 HERRAMIENTAS
Quiz
•
Professional Development
10 questions
PYTHON QUIZ
Quiz
•
Professional Development
10 questions
Hackers vs Empresas
Quiz
•
Professional Development
10 questions
Legal Training - Personal Data Assessement
Quiz
•
Professional Development
15 questions
Opda-KPPA
Quiz
•
Professional Development
19 questions
Quiz on Lambda Expressions and Functional Interfaces
Quiz
•
Professional Development
10 questions
Câu hỏi trắc nghiệm về Gamemaker
Quiz
•
Professional Development
10 questions
MiniGame_KTNB_KLB_15042025
Quiz
•
Professional Development
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
