SCWCD(310-083)

多选题Given: 11. 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}

题目
多选题
Given: 11. 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}

参考答案和解析
正确答案: E,A
解析: 暂无解析
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

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

  • A、${productID}
  • B、${param.productID}
  • C、${params.productID}
  • D、${params.productID[1]}
  • E、${paramValues.productID}
  • F、${paramValues.productID[0]}

正确答案:B,F

第2题:

Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

  • A、Every  tag must have at least one  tag.
  • B、A  tag can have many  tags.
  • C、A given  tag can apply to only one  tag.
  • D、A given  tag can contain from zero to many  tags.
  • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

正确答案:B,E

第3题:

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

第4题:

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

第5题:

Integer i = new Integer (42);  Long 1 = new Long (42);  Double d = new Double (42.0);   Which two expressions evaluate to True?()

  • A、 (i ==1)
  • B、 (i == d)
  • C、 (d == 1)
  • D、 (i.equals (d))
  • E、 (d.equals (i))
  • F、 (i.equals (42)

正确答案:D,E

第6题:

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]}

正确答案:A,C,E

第7题:

Which the three are valid declarations of a float?()

  • A、 float foo = -1;
  • B、 float foo = 1.0;
  • C、 float foo = 42el:
  • D、 float foo = 2.02f:
  • E、 float foo = 3.03d:

正确答案:A,D,F

第8题:

Which expressions will evaluate to true if preceded by the following code?()   String a = "hello";   String b = new String(a);   String c = a;   char[] d = { ’h’, ’e’, ’l’, ’l’, ’o’ };  

  • A、(a == "Hello")
  • B、(a == b)
  • C、(a == c)
  • D、a.equals(b)
  • E、a.equals(d)

正确答案:C,D

第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}

正确答案:B,F

第10题:

11. public interface Status {  12. /* insert code here */ int MY_VALUE = 10;  13. }  Which three are valid on line 12?()

  • A、 final
  • B、 static
  • C、 native
  • D、 public
  • E、 private
  • F、 abstract
  • G、 protected

正确答案:A,B,D

更多相关问题