多选题Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()Arequest.getHeader (“X-Retries”)Brequest.getIntHeader (“X-Retries”)Crequest.getRequestHeader (“x-Retries”)Drequest.getHead

题目
多选题
Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()
A

request.getHeader (“X-Retries”)

B

request.getIntHeader (“X-Retries”)

C

request.getRequestHeader (“x-Retries”)

D

request.getHeaders (“X-Retries”).get (0)

E

re request.getRequest Headers (“X-Retries”). Get (0)


相似考题
更多“多选题Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()Arequest.getHeader (“X-Retries”)Brequest.getIntHeader (“X-Retries”)Crequest.getRequestHeader (“x-Retries”)Drequest.getHead”相关问题
  • 第1题:

    Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()

    • A、 Error
    • B、 Exception
    • C、 Throwable
    • D、 Request error
    • E、 Request exception

    正确答案:B

  • 第2题:

    For an HttpServlet Response response, which two create a custom header()

    • A、 response.set Header (“X-MyHeader”. “34”):
    • B、 response.addHeader (“X-MyHeader”. “34”):
    • C、 response. Set Header (new Http Header (“X-MyHeader”. “34”)):
    • D、 response.addHeader(new Http Header (“X-MyHeader”. “34”)):
    • E、 response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):
    • F、 response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):

    正确答案:A,B

  • 第3题:

    Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()

    • A、HttpSession session = request.getSession();
    • B、HttpSession session = request.getSession(id);
    • C、HttpSession session = request.getSession(true);
    • D、HttpSession session = request.getSession(false);
    • E、HttpSession session = request.getSession("jsessionid");

    正确答案:A,C,D

  • 第4题:

    Server load balancing (SLB) is the process of deciding to which server a load-balancing device should send a client request for service. Which predictors are supported on ACE in order to select the best server to fulfill a client request? ()

    • A、 Hash address: Selects the server by using a hash value based on either the source or destination IP address, or both
    • B、 Hash URL: Selects the server by using a hash value based on the requested URL
    • C、 Hash MAC.Selects the server by using a hash value based on either the source or destination MAC address, or both
    • D、 Hash header: Selects the server by using a hash value based on the HTTP header name
    • E、 Hash IP: Selects the server using a hash value based on the IP address

    正确答案:A,B,D

  • 第5题:

    Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here26. } Which should you insert at line 25 to properly invoke the next filter in the chain,or the target servlet if thereare no more filters?()

    • A、chain.forward(request, response);
    • B、chain.doFilter(request, response);
    • C、request.forward(request, response);
    • D、request.doFilter(request, response);

    正确答案:B

  • 第6题:

    Given: 10.public void service(ServletRequest request, 11.ServletResponse response) { 12.ServletInputStream sis = 13.// insert code here 14.} Which retrieves the binary input stream on line 13?()

    • A、request.getWriter();
    • B、request.getReader();
    • C、request.getInputStream();
    • D、request.getResourceAsStream();

    正确答案:C

  • 第7题:

    Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()

    • A、 request.getHeader (“X-Retries”)
    • B、 request.getIntHeader (“X-Retries”)
    • C、 request.getRequestHeader (“x-Retries”)
    • D、 request.getHeaders (“X-Retries”).get (0)
    • E、 re request.getRequest Headers (“X-Retries”). Get (0)

    正确答案:A,B

  • 第8题:

    多选题
    Server load balancing (SLB) is the process of deciding to which server a load-balancing device should send a client request for service. Which predictors are supported on ACE in order to select the best server to fulfill a client request? ()
    A

    Hash address: Selects the server by using a hash value based on either the source or destination IP address, or both

    B

    Hash URL: Selects the server by using a hash value based on the requested URL

    C

    Hash MAC.Selects the server by using a hash value based on either the source or destination MAC address, or both

    D

    Hash header: Selects the server by using a hash value based on the HTTP header name

    E

    Hash IP: Selects the server using a hash value based on the IP address


    正确答案: D,B
    解析: 暂无解析

  • 第9题:

    多选题
    Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()
    A

    ${product ID}

    B

    ${param.productID}

    C

    ${params.productID}

    D

    ${params.productID[1]}

    E

    ${paramvalues.productID}

    F

    ${paramValues.productID[0]}

    G

    ${pageContext.request.productID}


    正确答案: F,D
    解析: 暂无解析

  • 第10题:

    多选题
    Given an HttpServletRequest request: 22.String id = request.getParameter("jsessionid"); 23.// insert code here 24.String name = (String) session.getAttribute("name"); Which three can be placed at line 23 to retrieve anexisting HttpSession object?()
    A

    HttpSession session = request.getSession();

    B

    HttpSession session = request.getSession(id);

    C

    HttpSession session = request.getSession(true);

    D

    HttpSession session = request.getSession(false);

    E

    HttpSession session = request.getSession(jsessionid);


    正确答案: A,D
    解析: 暂无解析

  • 第11题:

    多选题
    Assume the scoped attribute priority does NOT yet exist. Which two create and set new request-scoped attribute priority to the value “medium”?()
    A

     ${priority = ‘medium’ } 

    B

    ${requestScope[ ‘priority’ ] = ‘medium’ }

    C

    <c:set var=priority” value=”medium” />

    D

    <c:set var=”priority” scope=”request”>medium</C://set>

    E

    <c:set var=”priority” value=”medium” scope=”request” />

    F

    <c:set property=”priority” scope=”request”>medium</c:set>

    G

    <c:set property=”priority” value=”medium” scope=”request” />


    正确答案: B,E
    解析: 暂无解析

  • 第12题:

    多选题
    Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()
    A

    Request.getHeader(X-Retries)

    B

    Request.getIntHeader(X-Retries)

    C

    Request.getRequestHeader(X-Retries)

    D

    Request.getHeaders(X-Retries).get(0)

    E

    Request.getRequestHeaders(X-Retries).get(0)


    正确答案: A,C
    解析: 暂无解析

  • 第13题:

    Given an HttpServlet Request request and Http Servlet Response response, which sets a cookie “username” with the value “joe” in a servlet.?()

    • A、 request.add Cookie (“username”. “joe”)
    • B、 request.set Cookie (“username, “joe”)
    • C、 response.add Cookie (username”, “joe”))
    • D、 request.add Header (new Cookie (“username”, “joe”))
    • E、 request.add Cookie (new Cookie (“username”, “joe”))
    • F、 response.add Cookie (new Cookie (“username”, “joe”))
    • G、 response.add Header (new Cookie (“username”, “joe”))

    正确答案:F

  • 第14题:

    Given: 6.<% int[] nums = {42, 420, 4200}; 7.request.setAttribute("foo", nums); %> Which two successfully translate and result in a value of true?()

    • A、${true or false}
    • B、${requestScope[foo][0] > 500}
    • C、${requestScope[’foo’][1] = 420}
    • D、${(requestScope[’foo’][0] lt 50) && (3 gt 2)}

    正确答案:A,D

  • 第15题:

    Given a header in an HTTP request:X-Retries:4 Which two retrieve the value of the header from a given HttpServletRequest request?()

    • A、Request.getHeader("X-Retries")
    • B、Request.getIntHeader("X-Retries")
    • C、Request.getRequestHeader("X-Retries")
    • D、Request.getHeaders("X-Retries").get(0)
    • E、Request.getRequestHeaders("X-Retries").get(0)

    正确答案:A,B

  • 第16题:

    Given a web application in which the request parameter product ID contains a product identifier.Which two EL expressions evaluate the value of the product ID?()

    • A、 ${product ID}
    • B、 ${param.productID}
    • C、 ${params.productID}
    • D、 ${params.productID[1]}
    • E、 ${paramvalues.productID}
    • F、 ${paramValues.productID[0]}
    • G、 ${pageContext.request.productID}

    正确答案:B,F

  • 第17题:

    Given an HttpServletRequest request and HttpServletResponse response,which sets a cookie "username"with the value "joe" in a servlet?()

    • A、request.addCookie("username", "joe")
    • B、request.setCookie("username", "joe")
    • C、response.addCookie("username", "joe")
    • D、request.addHeader(new Cookie("username", "joe"))
    • E、request.addCookie(new Cookie("username", "joe"))
    • F、response.addCookie(new Cookie("username", "joe"))

    正确答案:F

  • 第18题:

    Which retrieves all cookies sent in a given HttpSErvletRequest request?()

    • A、 request.getCookies()
    • B、 request.getAttributes()
    • C、 request.getSession ().getCookies()
    • D、 request.getSession (). GetAttributes()

    正确答案:A

  • 第19题:

    多选题
    For an HttpServlet Response response, which two create a custom header()
    A

    response.set Header (“X-MyHeader”. “34”):

    B

    response.addHeader (“X-MyHeader”. “34”):

    C

    response. Set Header (new Http Header (“X-MyHeader”. “34”)):

    D

    response.addHeader(new Http Header (“X-MyHeader”. “34”)):

    E

    response. addHeader (new Servlet Header (“X-MyHeader”. “34”)):

    F

    response. setHeader (new Servlet Header (“X-MyHeader”, “34”)):


    正确答案: F,C
    解析: 暂无解析

  • 第20题:

    单选题
    Given a JSP error page, which implicit object refers to the uncaught Throwable that resulted in th epage being invoked?()
    A

     Error

    B

     Exception

    C

     Throwable

    D

     Request error

    E

     Request exception


    正确答案: B
    解析: 暂无解析

  • 第21题:

    多选题
    Which two of these parameters are used to determine a forwarding equivalence class?()
    A

    IP prefix

    B

    Layer 2 circuit

    C

    RSVP request from CE for bandwidth reservation

    D

    BGP MED value


    正确答案: B,C
    解析: 暂无解析

  • 第22题:

    单选题
    Which retrieves all cookies sent in a given HttpSErvletRequest request?()
    A

     request.getCookies()

    B

     request.getAttributes()

    C

     request.getSession ().getCookies()

    D

     request.getSession (). GetAttributes()


    正确答案: C
    解析: 暂无解析

  • 第23题:

    多选题
    Given a header in an HTTP request: X-Retries:4  Which two retrieve the value of the header from a given ServletRequest request? ()
    A

    request.getHeader (“X-Retries”)

    B

    request.getIntHeader (“X-Retries”)

    C

    request.getRequestHeader (“x-Retries”)

    D

    request.getHeaders (“X-Retries”).get (0)

    E

    re request.getRequest Headers (“X-Retries”). Get (0)


    正确答案: E,A
    解析: 暂无解析

  • 第24题:

    单选题
    Given a Filter class definition with this method: 21.public void doFilter(ServletRequest request, 22.ServletResponse response, 23.FilterChain chain) 24.throws ServletException, IOException { 25.// insert code here 26.} Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if thereare no more filters?()
    A

    chain.forward(request, response);

    B

    chain.doFilter(request, response);

    C

    request.forward(request, response);

    D

    request.doFilter(request, response);


    正确答案: A
    解析: 暂无解析