Progress Test 1 - Attempt Review
Progress Test 1 - Attempt Review
Question 1
Correct
Which components are required to use in JSP page after custom tag implemented?
a. Custom taglib class that extends from tagext, tags file, declaration in both web.xml and JSP files
b. Custom taglib class that extends from JSTL, tld file, declaration in context.xml file
d. Custom taglib class that extends from tagext, tld file, declaration in web deployment descriptor
The correct answer is: Custom taglib class that extends from tagext, tld file, declaration in web deployment descriptor
Question 2
Correct
b. It invokes the next filter in the chain, or if the calling filter is the last filter in the chain, it invokes the resource at the end of the
chain.
d. It does nothing.
The correct answer is: It invokes the next filter in the chain, or if the calling filter is the last filter in the chain, it invokes the resource at the
end of the chain.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 1/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 3
Correct
In the request life cycle of Struts 2, which component invokes the Interceptors to apply the common functionalities?
a. ActionServlet
b. FilterDispatcher
c. ActionMapping
d. ActionInvocation
Question 4
Correct
a. java.sql.Date
b. java.util.Time
c. java.util.Date
d. java.sql.Time
Question 5
Correct
a. TCP
b. PPP
c. IP
d. UDP
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 2/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 6
Correct
b. Authentication Filters
c. Logging Filters
Question 7
Correct
b. The controller transmits the request, and selects a view for presenting data to the user.
d. The view represents the user interface component of the data model
The correct answer is: It is applied for little applications only, not for substantial applications
Question 8
Correct
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 3/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 9
Correct
When we are sending data in URL in get method, how to separate path and parameter?
a. By Comma
b. By underscore
c. By Semicolon
d. By question mark
Question 10
Correct
a. execute()
b. executeResult()
c. executeUpdate()
d. executeQuery()
Question 11
Correct
_______ are small pieces of information that are deposited on the client by the server.
a. Cookie
b. Directive
c. Scriptlet
d. Session
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 4/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 12
Correct
a. doPost()
b. doOptions()
c. doInit()
d. doGet()
Question 13
Incorrect
The correct answer is: When you remove the application from server
Question 14
Correct
a. _jspDestroy()
b. _jspService()
c. _jspBuild()
d. _jspInit()
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 5/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 15
Correct
a. <c:out value="${number}"></c:out>
b. <c:out value="number"></c:out>
c. <c: value="${number}"></c:>
d. <c:out "${number}"></c:out>
Question 16
Correct
b. HTTP OPTIONS request for communication options available on the request/response chain
d. HTTP DELETE method request for the Server to delete the resource
The correct answer is: A POST request append data to the end of the URL.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 6/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 17
Correct
a. TLD files can declare both Simple and Classic tags, but TLD files are NOT used to declare Tag files.
b. TLD files may be placed in the META-INF directory of the WAR file.
c. TLD files are used to configure JSP environment attributes, such as scripting-invalid.
The correct answer is: TLD files may be placed in any subdirectory of WEB-INF.
Question 18
Correct
a. Driver
b. Connection
c. Statement
d. ResultSet
Question 19
Correct
What object will represent the output stream for the JSP page?
a. response
b. out
c. dispatch
d. writer
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 7/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 20
Correct
Given a web application in which the request parameter productID contains a product identifier. Which two EL expressions evaluate the
value of the productID? (Choose two.)
a. ${params.productID}
b. ${productID}
c. ${param.productID}
d. ${paramValues.productID[0]}
e. ${paramValues.productID}
f. ${params.productID[1]}
${paramValues.productID[0]}
Question 21
Correct
a. Uses include method, the control retains with the current Servlet and it just includes the processing done by the calling of Servlet or
the JSP
b. provides the facility of dispatching the request to another resource it may be html, servlet or jsp
d. uses forward method, the control is transferred to the next Servlet or JSP the application is calling
The correct answer is: Uses getRequestDispatcher() method to return the forward/include object
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 8/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 22
Correct
A ________has a name, a single value, and optional attributes such as a comment, path and domain qualifiers, a maximum age, and a version
number
a. cookie
b. session
c. response
d. request
Question 23
Correct
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 9/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 24
Incorrect
Question 25
Correct
a. accessibility
b. authentication
c. configuration
d. logging in
Question 26
Correct
a. PreparedStatement.
c. ParameterizedStatement.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 10/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 27
Correct
Which interface is chosen to be extended by many tag handlers to create a custom tag?
a. BodyTagSupport
b. Tag
c. TagSupport
d. IterationTag
e. BodyTag
Question 28
Correct
Which implicit object is supported in jsp page to access pageScope, requestScope, sessionScope, applicationScope?
a. pageContext object
b. context object
c. scope object
d. application object
Question 29
Correct
a. Interceptors
c. Actions
d. EJB
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 11/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 30
Correct
Suppose we have the servlet “NewServlet” with the code to retrieve the value of parameter “gender” from the input.html
Please choose the correct HTML code from the input.html for the “gender”. Choose TWO:
c.
Gender: <input type="password" name="gender" value="male" checked />Male
<input type="password" name="gender" value="female" />Female
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 12/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 31
Correct
c. Uses JSTL.
Question 32
Correct
In web application, these tasks such as authentication-blocking of requests, data compression, logging and auditing are performed by
a. servlet config
b. servlet context
c. servlet filter
d. servlet container
Question 33
Correct
b. It does nothing.
d. It invokes the next filter in the chain, or if the calling filter is the last filter in the chain, it invokes the resource at the end of the
chain.
The correct answer is: It invokes the next filter in the chain, or if the calling filter is the last filter in the chain, it invokes the resource at the
end of the chain.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 13/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 34
Correct
What http method send by browser that gives the server what user data typed in the form?
a. post
b. put
c. delete
d. head
Question 35
Correct
a. JDBC provides a standard API for tool/database developers and makes it possible to write database applications using a pure Java
API.
c. The combination of Java and JDBC lets a programmer write it once and run it anywhere.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 14/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 36
Correct
a. <sql:setDatabase>
b. <sql:setConnection>
c. <sql:setDataSource>
d. <sql:setDataBase>
Question 37
Correct
HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 15/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 38
Incorrect
Which among the following components acts as a Controller in Struts 2 framework? Choose TWO answer.
a. ActionMapper
b. FilterDispatcher
c. Configuration Manager
d. Interceptors
Interceptors
Question 39
Correct
In the request life cycle of Struts 2, which component invokes the Interceptors to apply the common functionalities?
a. ActionServlet
b. FilterDispatcher
c. ActionInvocation
d. ActionMapping
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 16/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 40
Correct
Which HTTP method is used when user press the “Login” button from the browser?
a. GET
b. POST
c. SEND
d. PUT
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 17/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 41
Correct
<ul>
<li>Java [3 * $10] = $[3*10]</li>
</ul>
<ul>
<li>Java [3 * $10] = {3*10}</li>
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 18/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 42
Incorrect
Which following methods of HttpServlet class stores a resource under the request URL?
a. doPost
b. doPut
c. doTrace
d. doHead
e. doDelete
f. doGet
Question 43
Correct
Suppose we write the Servlet “EditServlet” to delete the student based on “id” using delete(id) method and then display the list in
“display.jsp”. Please try to fill the *Position1*, *Position2* and *Position3* to make the code complete.
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 19/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 44
Correct
a. Session= “true”
b. isErrorPage= “false”
c. isErrorPage= “true”
d. Session= “false”
Question 45
Correct
a. page
b. taglib
c. include
d. export
Question 46
Correct
Which method we must override in the extend ActionSupport class to provide the implementation of validation in Struts 2?
a. input() method
c. validate() method
d. checkParams() method
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 20/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 47
Correct
Consider the following HTML page code, which method can be used in subjectServlet to retrieve the value of “language” parameter, when
the form is submitted.
a.
String java = request.getParameterValues("Java");
String cs = request.getParameterValues("C#");
String cs = request.getParameterValues("cs");
Question 48
Correct
a. getParameter()
b. request.getParameter()
c. request.getString()
d. request.getparameter()
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 21/22
7/15/2021 Progress Test 1 - SE1502: Attempt review
Question 49
Correct
What type of servlets use these methods such as doGet(), doPost(),doHead, doDelete(), doTrace()?
a. GenereicServlets
b. HttpServlets
c. RequestServlets
d. ConfigServlets
Question 50
Incorrect
Which of the following components is used by application to work with database server?
a. Connection
b. DriverManager
c. JDBC driver
d. Statement
https://lmsdn.fpt.edu.vn/mod/quiz/review.php?attempt=30548&cmid=8727&showall=1 22/22