Which sub-element is used to define a logical name of servlet in web deployment descriptor?
Select one:

PRJ103_PART2

Quiz
•
Other
•
University
•
Medium
Phạm Ngân
Used 1+ times
FREE Resource
130 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
a. All of the other choices
b. url-pattern
c. servlet-name
d. servlet-class
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these statements is true about the Filter implementation?
Select one:
a. The doFilter(request, response) method examines the request or response headers and also customises them as per requirement
b. All of the others
c. The Filter Interface must be implemented to create a filter class
d. The init() method is called by the servlet container many times to initialise the filter
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a scoped attribute cart exists only in a user's session.Choose the option taken the cart from session and assign it to the attribute.
Select one:
a. <c:set var="cart" value="${sessionScope[].cart}"/>
b. <c:set var="cart" value="${sessionContext.cart}"/>
c. <c:set var="cart" value="${session.cart}"/>
d. None of the others.
e. <c:set var="cart" value="${sessionScope.cart}"/>
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Given a web application in which the request parameter productID contains a product identifier. Which EL expression evaluates the value of the productID?
Select one:
a. ${productID}
b. None of the others
c. ${pageContext.request.productID}
d. ${param.productID}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which JSTL code snippet can be used to import content from another web resource?
Select one:
a. <c:import url="foo.jsp"/>
b. <c:import page="foo.jsp"/>
c. All of the others
d. <c:include url="foo.jsp"/>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is true about the Session Listeners?
Select one:
a. HttpSessionBindingListener must not register in web deployment descriptor
b. HttpSessionBindingListener must register in web deployment descriptor
c. None of the others
d. ServletContextListener must not register in web deployment descriptor
e. ServletContextAttributeListener must not register in web deployment descriptor
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement relating to Hidden form fields is incorrect?
Select one:
a. The session information can be extracted by the application by searching for Hidden form fields
b. Hidden form fields send information from one HTML page to another thereby maintaining the connection between the two pages
c. All of the others
d. The servlets or JSP page read the Hidden form fields using response.sendParameter
Create a free account and access millions of resources
Similar Resources on Quizizz
135 questions
TEOR MEKH 2 4AST'

Quiz
•
University
135 questions
Bệnh học bài 4+5

Quiz
•
University
125 questions
Name That Team | College Football

Quiz
•
3rd Grade - University
130 questions
Đề 4: Bệnh học - N hình ảnh

Quiz
•
University
131 questions
pec321

Quiz
•
University
134 questions
General Knowledge Quiz

Quiz
•
University
130 questions
PRJ301_PART1

Quiz
•
University
125 questions
Trắc nghiệm lập trình cơ sở C

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade