niusouti.com
参考答案和解析
正确答案:A
更多“()标签检查cookie、header、name、paramet”相关问题
  • 第1题:

    GivenawebapplicationinwhichthecookieuserNameisexpectedtocontainthenameoftheuser.Which ELexpressionevaluatestothatusername?()

    A.${userName}

    B.${cookie.userName}

    C.${cookie.user.name}

    D.${cookies.userName[0]}


    参考答案:B

  • 第2题:

    以下哪些是语义化标签?()

    A、div

    B、span

    C、article

    D、header


    答案:CD

  • 第3题:

    在窗体上添加标签Label1后,标签控件默认的名称Name为:( )

    A、Label1

    B、Label

    C、Text

    D、Text1


    正确答案:A

  • 第4题:

    以下哪些选项属于SCL文件头Header的子节点()

    • A、id
    • B、name Structure
    • C、revision
    • D、Access Point

    正确答案:A,B,C

  • 第5题:

    html页面中有一个ul,id为“menulist”,name为“mymenu”,这个ul标签中有五个li标签,通过()可以获得这个ul标签中的五个li元素。


    正确答案:getElementsByTagName()

  • 第6题:

    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()

    • A、${userName}
    • B、${cookie.userName}
    • C、${cookie.user.name}
    • D、${cookies.userName[0]}

    正确答案:B

  • 第7题:

    新创建的标签默认标题为Label1,为了修改标签的标题,应设置标签的属性是()

    • A、Name属性
    • B、FontName属性
    • C、Froecolor属性
    • D、Caption属性

    正确答案:D

  • 第8题:

    说明HTML中标签〈header〉的作用。


    正确答案:对主页的介绍,〈header〉标签定义文档的页眉(介绍信息)。

  • 第9题:

    单选题
    下面哪个方法设置MIME类型?()
    A

    setHeader(String headerName,String headerValue)

    B

    setContentType(String mimeType)

    C

    setContentLength(int length)

    D

    addCookie(Cookie c)

    E

    addHeader(String name,String value)


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

  • 第10题:

    单选题
    ()标签检查cookie、header、name、parameter或property属性之一指定的变量是否在应用的范围内。
    A

    messagePresent

    B

    messageNotPresent

    C

    present

    D

    notPresent


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

  • 第11题:

    单选题
    You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?()
    A

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:include>

    B

    <jsp:import page=’/WEB-INF/jsp/header.jsp’><jsp:param name=’pageName’ value=’Welcome Page’ /> </jsp:import>

    C

    <jsp:include page=’/WEB-INF/jsp/header.jsp’><jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:include>

    D

    <jsp:import page=’/WEB-INF/jsp/header.jsp’>. <jsp:attribute name=’pageName’ value=’Welcome Page’ /> . </jsp:import>


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

  • 第12题:

    单选题
    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?()
    A

    ${userName}

    B

    ${cookie.userName}

    C

    ${cookie.user.name}

    D

    ${cookies.userName[0]}


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

  • 第13题:

    在页面中创建标签可以方便超链接在本页面中跳转,假设标签名为“test”,正确的超链接语句是______。

    A.<a href="test"></a>

    B.<a href="#test"></a>

    C.<a name="test"></a>

    D.<a name="#test"></a>


    正确答案:B
    解析:本题考查HTML基础知识。
      a name="">/a>标记对要结合a href="">/a>标记对使用才有效果,用name结合 href来实现在同一文档中不同内容之间的链接,这对于某些信息量很大的页面来说是很有用的,可以方便地找到对应信息。
      a name="">/a>标记对用来在HTML文档中创建一个标签(即做一个记号),属性 name是不可缺少的,它的值即是标签名,例如:
      a name="标签名">此处创建了一个标签/a>
      创建标签是为了在HTML文档中创建一些链接,以便能够找到同一文档中有标签的地方。要找到标签所在地,就必须使用a href="">/a>标记对。例如要找到“标签名”这个标签,就要编写如下代码:
      a href="#标签名">单击此处将使浏览器跳到"标签名"处/a>

  • 第14题:

    Jsp中有如下代码:< %Cookie c = new Cookie( “name” , “admin ” );c.setMaxAge(10000);response.addCookie(c);% >以下哪句代码可以正确显示”admin”

    A.${cookie.name}

    B.${cookie.name.value}

    C.${name}

    D.${name.value}


    正确答案:B

  • 第15题:

    NAME LABEL是指()。

    • A、座位号
    • B、行李标签
    • C、姓名标签
    • D、登机牌

    正确答案:C

  • 第16题:

    属于标签属性的有()。

    • A、action
    • B、type
    • C、value
    • D、name

    正确答案:B,C,D

  • 第17题:

    在下列选项中,正确创建并实现写入cookie的语句分别是()。 

    • A、 Cookie cookie = new Cookie( String key, Object value );
    • B、 Cookie cookie = new Cookie();
    • C、 response.add(cookie );
    • D、 response.addCookie(cookie);

    正确答案:A,D

  • 第18题:

    下面哪句代码能获得硬盘上所有的Cookie?()

    • A、Cookie cookie[]=request.getCookies()
    • B、Cookie cookie[]=request.addCookies()
    • C、response.addCookie(cookie)
    • D、Cookie c=new cookie(“name”,“value”)
    • E、以上选项都不能

    正确答案:A

  • 第19题:

    给input标签修改value的值操作正确的是()。

    • A、.val
    • B、.value
    • C、.color
    • D、.name

    正确答案:B

  • 第20题:

    多选题
    在下列选项中,正确创建并实现写入cookie的语句分别是()。
    A

    Cookie cookie = new Cookie( String key, Object value );

    B

    Cookie cookie = new Cookie();

    C

    response.add(cookie );

    D

    response.addCookie(cookie);


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

  • 第21题:

    单选题
    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”))


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

  • 第22题:

    单选题
    ()cookie、name、parameter或property属性之一指定的变量是否大于value属性指定的常量值logic。
    A

    greaterThan

    B

    greaterEqual

    C

    greater

    D

    parameter


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

  • 第23题:

    单选题
    Your web application views all have the same header, which includes the  tag in the  elementof the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put itinto a single JSP called /WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you havedecided to use a variable called pageTitle to parameterize this in the header JSP, like this: 10.${param.pageTitle} Which JSP code snippet should you use in your main view JSPs to insert the header and pass thepageTitle variable?()
    A

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:insert>

    B

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    C

    <jsp:include file=’/WEB-INF/jsp/header.jsp’>. ${pageTitle=’Welcome Page’}. </jsp:include>

    D

    <jsp:insert page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:insert>

    E

    <jsp:include page=’/WEB-INF/jsp/header.jsp’>. <jsp:param name=’pageTitle’ value=’Welcome Page’ /> . </jsp:include>


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

  • 第24题:

    单选题
    下面哪句代码能获得硬盘上所有的Cookie?()
    A

    Cookie cookie[]=request.getCookies()

    B

    Cookie cookie[]=request.addCookies()

    C

    response.addCookie(cookie)

    D

    Cookie c=new cookie(“name”,“value”)

    E

    以上选项都不能


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