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)

题目

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
更多“Which expressions wil”相关问题
  • 第1题:

    We hope that you wil look()the cause of the defective goods.


    正确答案:about

  • 第2题:

    Which statement is false?() 

    • A、 custom URL categories cannot contain IP addresses
    • B、 custom URL categories cannot override predefined URL categories
    • C、 custom URL categories can contain domain names
    • D、 custom URL categories can use regular expressions

    正确答案:A

  • 第3题:

    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

  • 第4题:

    Given the following two AS path regular expressions: "65000+ (65001|65002)" "65000(65001|65002){0,}" Which AS path matches both regular expressions?()

    • A、65000 65001 65002
    • B、65000 65002
    • C、65001 65000
    • D、65001 65002

    正确答案:B

  • 第5题:

    多选题
    If x=6y, then which of the following expressions is a multiple of x? (Select all such expressions.)
    A

    3y

    B

    12y

    C

    30y


    正确答案: C,B
    解析:
    根据题目中已知的数量关系可知,x必须是6的倍数,选项B和C均符合要求。

  • 第6题:

    多选题
    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
    解析: 暂无解析

  • 第7题:

    单选题
    In the expression an, n is an even power. Which of the following expressions does not have even power?
    A

    an +l

    B

    a2n

    C

    an+2

    D

    a3n

    E

    an+4


    正确答案: D
    解析:
    Because n is an even power, n + 1 is an odd power. That means an+1 has an odd power. The powers in the other choices are even.

  • 第8题:

    多选题
    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
    解析: 暂无解析

  • 第9题:

    单选题
    If a=3b=2c, then 6a is equal to which of the following expressions?Ⅰ. 12cⅡ. 6b+8cⅢ. 2b+10c
    A

    Ⅰ and II only

    B

    Ⅰ, Ⅱ and Ⅲ

    C

    Ⅰ only

    D

    Ⅲ only

    E

    None


    正确答案: E
    解析:
    Determine whether each Roman numeral expression is equal to 6a.
    Ⅰ. Since 12c=6(2c)=6a, Statement Ⅰ is true.
    Ⅱ. Since 6b+8c=2(3b)+4(2c)=2a+4a=6a, Statement Ⅱ is true.
    Ⅲ. Since 2b+10c=2b+5(2c)=2b+5(3b)=17b≠6a, Statement Ⅲ is false.

  • 第10题:

    单选题
    Given the following two AS path regular expressions: "65000+ (65001|65002)" "65000(65001|65002){0,}" Which AS path matches both regular expressions?()
    A

    65000 65001 65002

    B

    65000 65002

    C

    65001 65000

    D

    65001 65002


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

  • 第11题:

    多选题
    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)


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

  • 第12题:

    单选题
    Which of the following cannot be used as a way to show the stress pattern of words, phrases, and sentences?
    A

    Facial expressions.

    B

    Gestures.

    C

    Voices.

    D

    The blackboard.


    正确答案: B
    解析:

  • 第13题:

    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

  • 第14题:

    Which of the following statements is TRUE about the reorgvg command?()

    • A、No logical volumes wil be moved if write-verify is set to yes.
    • B、No action will be performed if it cannot fulfill the allocation requirements.
    • C、Physical partitions of a logical volume will be moved if the logical volume's relocatable flag is set to "no".
    • D、Physical partitions will be moved as close as possible to the positions specified, if the allocation requirements cannot be fulfilled.

    正确答案:D

  • 第15题:

    Given the two AS path regular expressions:  "65000+ (65001|65002)"  "65000+ (65001|65002){0,}"  Which AS path matches both expressions?()

    • A、65000 65001 65002
    • B、65000 65002
    • C、65001 65000
    • D、65001 65002

    正确答案:B

  • 第16题:

    Which statement is true regarding the COALESCE function?()

    • A、It can have a maximum of five expressions in a list 
    • B、It returns the highest NOT NULL value in the list for all rows 
    • C、It requires that all expressions in the list must be of the same data type 
    • D、It requires that at least one of the expressions in the list must have a NOT NULL value

    正确答案:C

  • 第17题:

    多选题
    If x and y are both positive even integers, which of the following expressions must be even? (Select all such expressions.)
    A

    xy

    B

    (x+1)y

    C

    x(y+1)


    正确答案: B,A
    解析:
    由于题目中x和y是变量,可以根据题干给出的条件给x, y设定符合条件的数值,代入各选项,看结果是否符合题干要求,即可得出答案。

  • 第18题:

    单选题
    Given the two AS path regular expressions:  "65000+ (65001|65002)"  "65000+ (65001|65002){0,}"  Which AS path matches both expressions?()
    A

    65000 65001 65002

    B

    65000 65002

    C

    65001 65000

    D

    65001 65002


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

  • 第19题:

    多选题
    Which three logical expressions evaluate to true?()
    A

    (a = = c)

    B

    (d = = c)

    C

    (b = = d)

    D

    (a = = b)

    E

    (b = = c)

    F

    (d == 10.0)


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

  • 第20题:

    单选题
    Which expressions are correct to declare an array of 10 String objects? ()
    A

     char str[];

    B

     char str[][];

    C

     String str[];

    D

     String str[10];


    正确答案: A
    解析: 严格来说这个题目没有给出一个正确的答案,唯一比较正确的是c,而完全满足题目要求的应该是:String str[]=new String[10]; 注意答案d的形式是不对的,这和c++也是不同的。

  • 第21题:

    多选题
    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]}


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

  • 第22题:

    多选题
    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]}


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

  • 第23题:

    单选题
    Which of the following is a communicative task?
    A

    Reading aloud the dialogue on page 24.

    B

    Writing a party invitation to your friends.

    C

    Translating the first paragraph into Chinese.

    D

    Making sentences with the expressions given.


    正确答案: A
    解析:

  • 第24题:

    单选题
    Which statement is true regarding the COALESCE function?()
    A

    It can have a maximum of five expressions in a list 

    B

    It returns the highest NOT NULL value in the list for all rows 

    C

    It requires that all expressions in the list must be of the same data type 

    D

    It requires that at least one of the expressions in the list must have a NOT NULL value


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