Page: 4
Unit-1: The Servlet Technology Model
Q12 .You need to create a servlet filter that stores all request headers to a database for all requests to the web application's home page "/index.jsp". Which HttpServletRequest method allows you to retrieve all of the request headers? A. String[] getHeaderNames() B. String[] getRequestHeaders() C. java.util.Iterator getHeaderNames() D. java.util.Iterator getRequestHeaders() E. java.util.Enumeration getHeaderNames() F. java.util.Enumeration getRequestHeaders() Q13. Click the Task button. Given a request from mybox.example.com, with an IP address of 10.0.1.11 on port 33086, place theappropriate ServletRequest methods onto their corresponding return values. 
Q: 14 Your web application requires the ability to load and remove web files dynamically to the web container's file system. Which two HTTP methods are used to perform these actions? (Choose two.) A. PUT B. POST C. SEND D. DELETE E. REMOVE F. DESTROY Q15. Which retrieves all cookies sent in a given HttpServletRequest request? A. request.getCookies() B. request.getAttributes() C. request.getSession().getCookies() D. request.getSession().getAttributes() Q16. Click the Task button. Given a servlet mapped to /control, place the correct URI segment returned as a String on the corresponding HttpServletRequest method call for the URI: /myapp/control/processorder.  Q17. A web browser need NOT always perform a complete request for a particular page that it suspects might NOT have changed. The HTTP specification provides a mechanism for the browser to retrieve only a partial response from the web server; this response includes information, such as the Last-Modified date but NOT the body of the page. Which HTTP method will the browser use to retrieve such a partial response? A. GET B. ASK C. SEND D. HEAD E. TRACE F. OPTIONS
Get Answers For All Questions
Page: 4
1
2
3
4
5
6
7
8
9
|