Given: 11.<% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "b"); 14.map.put("b", "c"); 15.map.put("c", "d"); %> 16.<%-- insert code here --%> Which three EL expressions, inserted at line 16, are valid a

题目

Given: 11.<% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "b"); 14.map.put("b", "c"); 15.map.put("c", "d"); %> 16.<%-- insert code here --%> Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()

  • A、${map.c}
  • B、${map[c]}
  • C、${map["c"]}
  • D、${map.map.b}
  • E、${map[map.b]}

相似考题
更多“Given: 11.<% java.util.Map”相关问题
  • 第1题:

    Given:10. interface Data { public void load(); }11. abstract class Info { public abstract void load(); }Which class correctly uses the Data interface and Info class?()()

    A.

    B.

    C.

    D.

    E.

    F.


    参考答案:A

  • 第2题:

    以下临床情况中,可诊断为糖尿病的有( )

    A、具有糖尿病症状,FPG>7.0mmol/L

    B、OGTT血糖峰值>11. 1mmol/L

    C、OGTT 2h血糖>11. 1mmol/L

    D、具有临床症状,随机血糖>11. 1mmol/L

    E、HbAlc≥6.5%


    参考答案:ABCDE

  • 第3题:

    证件资料页上出现“Middle name”时,在录入时应()。

    • A、添加至“Given name”的前面
    • B、添加至“Given name”的后面
    • C、添加至“Given name”的中间
    • D、不予录入

    正确答案:B

  • 第4题:

    Given: 11.<% 12.request.setAttribute("vals", new String[]{"1","2","3","4"}); 13.request.setAttribute("index", "2"); 14.%> 15.<%-- insert code here --%> Which three EL expressions, inserted at line 15,are valid and evaluate to "3"?()

    • A、${vals.2}
    • B、${vals["2"]}
    • C、${vals.index}
    • D、${vals[index]}
    • E、${vals}[index]
    • F、${vals[vals[index-1]]}

    正确答案:B,D,F

  • 第5题:

    Why does IS-IS use the SPF algorithm?()

    • A、to determine the pseudonode ID
    • B、to determine the next hop to a given destination
    • C、to determine the complete path to a given destination
    • D、to determine the number of routers present in a given area

    正确答案:B

  • 第6题:

    多选题
    Given the JSP code: 10. 11. 12. 13.Hello, ${customer.title} ${customer.lastName}, welcome 14.to Squeaky Beans, Inc. 15.16.  Which three types of JSP code are used?()
    A

    Java code

    B

    Template text

    C

    Scripting code

    D

    Standard action

    E

    Expression language


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

  • 第7题:

    多选题
    Given:   11. // insert code here   12. private N min, max;   13. public N getMin() { return min; }   14. public N getMax() { return max; }   15. public void add(N added) {   16. if (min == null || added.doubleValue()  max.doubleValue())  19. max = added;   20. }   21. }   Which two, inserted at line 11, will allow the code to compile?()
    A

    A

    B

    B

    C

    C

    D

    D

    E

    E

    F

    F


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

  • 第8题:

    多选题
    Given: 11. 12.catalog 13./catalogTemplate.jsp 14.10 15. Which two are true?()
    A

    Line 13 is not valid for a servlet declaration.

    B

    Line 14 is not valid for a servlet declaration.

    C

    One instance of the servlet will be loaded at startup.

    D

    Ten instances of the servlet will be loaded at startup.

    E

    The servlet will be referenced by the name catalog in mappings.


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

  • 第9题:

    单选题
    Given: 5.public class MyTagHandler extends TagSupport { 6.public int doStartTag() throws JspException { 7.try { 8.// insert code here 9.} catch(Exception ex) { /* handle exception */ } 10.return super.doStartTag(); 11.}...42. } Which code snippet, inserted at line 8,causes the value foo to be output?()
    A

    JspWriter w = pageContext.getOut();

    B

    print(foo);

    C

    JspWriter w = pageContext.getWriter();

    D

    JspWriter w = new JspWriter(pageContext.getWriter()); . w.print(foo);


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

  • 第10题:

    单选题
    Given a method that must ensure that its parameter is not null: 11. public void someMethod(Object value) { 12. // check for null value ... 20. System.out.println(value.getClass()); 21. } What inserted at line 12, is the appropriate way to handle a null value?()
    A

    assert value == null;

    B

    assert value != null, value is null;

    C

    if (value == null) { throw new AssertionException(value is null); }

    D

    if (value == null) { throw new IllegalArgumentException(value is null); }


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

  • 第11题:

    单选题
    Given:   11. public static void main(String[] args) {   12. Object obj = new int[] { 1, 2, 3 };   13. int[] someArray = (int[])obj;   14. for (int i : someArray) System.out.print(i + " ");   15. }   What is the result? ()
    A

     Compilation fails because of an error in line 13.

    B

     A ClassCastException is thrown at runtime.

    C

     1 2 3

    D

     Compilation fails because of an error in line 14.

    E

     Compilation fails because of an error in line 12.


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

  • 第12题:

    单选题
    Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()
    A

     An exception is thrown at runtime.

    B

     1

    C

     4

    D

     Compilation fails.

    E

     0


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

  • 第13题:

    Given:11.//insertcodehere12.&e

    Given:

    11.//insertcodehere

    12.privateNmin,max;

    13.publicNgetMin(){returnmin;}

    14.publicNgetMax(){returnmax;}

    15.publicvoidadd(Nadded){

    16.if(min==null||added.doubleValue()<min.doubleValue())

    17.min=added;

    18.if(max==null||added.doubleValue()>max.doubleValue())

    19.max=added;

    20.}

    21.}

    Whichtwo,insertedatline11,willallowthecodetocompile?()


    参考答案:B, D

  • 第14题:

    11.工作地点,哪些设备必须停电?


    答案:
    解析:
    答:(1)检修的设备;(2)与工作人员在进行工作中正常活动范围的距离小于表3规定的设备;(3)在35KV及以下的设备处工作,安全距离虽大于表3规定,但小于表1规定,同时又无绝缘挡板、俺去遮拦措施的设备;(4)带电部分在工作人员后面、两侧、上下,且无可靠安全措施的设备;(5)其他需要停电的设备。(见《变电安规》7.2.1)

  • 第15题:

    What is the Cisco IOS default behavior for switching from the shared tree to the shortest path tree in PIM-SM operations?()

    • A、immediately after receiving the first packet on the shared tree for a given (S,G)
    • B、after receiving over 1 kb/s traffic onthe shared tree for a given (S,G)
    • C、10 seconds after receiving the first packet on the shared tree for a given (S,G)
    • D、30 seconds after receiving the first packet on the shared tree for a given (S,G)
    • E、after receiving over 10 kb/s traffic onthe shared tree for a given (S,G)

    正确答案:A

  • 第16题:

    Given:   11. String test = "This is a test";   12. String[] tokens = test.split("/s");   13. System.out.println(tokens.length);   What is the result?()

    • A、 An exception is thrown at runtime.
    • B、 1
    • C、 4
    • D、 Compilation fails.
    • E、 0

    正确答案:D

  • 第17题:

    Given: 11.<% java.util.Map map = new java.util.HashMap(); 12.request.setAttribute("map", map); 13.map.put("a", "true"); 14.map.put("b", "false"); 15.map.put("c", "42"); %> Which three EL expressions are valid and evaluate to true?()

    • A、${not map.c}
    • B、${map.d or map.a}
    • C、${map.a and map.d}
    • D、${map.false or map.true}
    • E、${map.a and map.b or map.a}

    正确答案:A,B,E

  • 第18题:

    单选题
    The TPC curve,one of the hydrostatic curves in a vessel’s plans,gives the number of tons().
    A

    necessary to change the angle of list 1°at a given draft

    B

    necessary to change trim 1 cm at a given draft

    C

    pressure per square cm on the vessel's hull at a given draft

    D

    necessary to further immerse the vessel 1 cm at a given draft


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

  • 第19题:

    多选题
    Given: 11. 16. Which three EL expressions, inserted at line 16, are valid and evaluate to "d"?()
    A

    ${map.c}

    B

    ${map[c]}

    C

    ${map[c]}

    D

    ${map.map.b}

    E

    ${map[map.b]}


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

  • 第20题:

    单选题
    ETA/PILOT REVERTING means () .
    A

    ETA pilot station has been given

    B

    ETA pilot station will be given afterwards

    C

    ETA pilot station was not given

    D

    ETA pilot station is given


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

  • 第21题:

    单选题
    A refrigerant with oil in solution has a ().
    A

    higher boiling temperature for a given pressure than does a pure refrigerant

    B

    lower boiling temperature for a given pressure than does a pure refrigerant

    C

    boiling pressure equal to that of a pure refrigerant at a given pressure

    D

    boiling point will not be affected by entrained oil


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

  • 第22题:

    单选题
    Why does IS-IS use the SPF algorithm?()
    A

    to determine the pseudonode ID

    B

    to determine the next hop to a given destination

    C

    to determine the complete path to a given destination

    D

    to determine the number of routers present in a given area


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

  • 第23题:

    单选题
    What is the Cisco IOS default behavior for switching from the shared tree to the shortest path tree in PIM-SM operations?()
    A

    immediately after receiving the first packet on the shared tree for a given (S,G)

    B

    after receiving over 1 kb/s traffic onthe shared tree for a given (S,G)

    C

    10 seconds after receiving the first packet on the shared tree for a given (S,G)

    D

    30 seconds after receiving the first packet on the shared tree for a given (S,G)

    E

    after receiving over 10 kb/s traffic onthe shared tree for a given (S,G)


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