
PRJ301 FPT kì 4
Authored by Le HCM)
Instructional Technology
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
70 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements are correct about the status of the Http response? Select the one correct answer
A. A status of 200 to 299 signifies that the request was successful.
B. A status of 300 to 399 is informational messages.
C. A status of 400 to 499 indicates an error in the server
D. A status of 500 to 599 indicates an error in the client.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Servlet methods are executed automatically.
A. True
B. False
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want the same servlet to handle both GET and POST and to take the same action for each, you can simply have doGet call doPost, or vice versa.
A. True
B. False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When a web server responds to a request from a browser or other Web client the response typically consists of: (Choose one)
A. a status line, some response headers, a blank line, and the document
B. a status line, a blank line, and the document
C. a blank line, a status line, some response headers and the document
D. a status line, some response headers, and the document
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these is legal return type of the doStartTag method defined in a class that extends TagSupport class?
A. EVAL_PAGE
B. EVAL_BODY
C. EVAL_PAGE_INCLUDE
D. EVAL_BODY_INCLUDE
E. SKIP_PAGE
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Classes HttpServlet and GenericServlet implement the ___ interface.
A. Servlet
B. Http
C. HttpServletRequest
D. HttpServletResponse
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
You have to send a gif image to the client as a response to a request. Which of the following calls will you have to make?
A. response.setContentType("image/gif");
B. response.setType("application/gif");
C. response.setContentType("application/bin");
D. response.setType("image/gif");
Access all questions and much more by creating a free account
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?