itgle.com

Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?()A.Line4ofclassTargetcanbechangedtoreturni++;B.Line2ofclassTargetcanbechangedtoprivateinti=1;C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){D.Line2ofclassTargetcanbechangedtoprivateIntegeri=

题目
Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?()

A.Line4ofclassTargetcanbechangedtoreturni++;

B.Line2ofclassTargetcanbechangedtoprivateinti=1;

C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){

D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;


相似考题
参考答案和解析
参考答案:D
更多“Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?() ”相关问题
  • 第1题:

    Given:What can directly access and change the value of the variable name?()

    A. any class

    B. only the Target class

    C. any class in the test package

    D. any class that extends Target


    参考答案:C

  • 第2题:

    [A] set [B] exact [C] given [D] placed


    正确答案:A

  • 第3题:

    ___ more care, the flowers might have grown much better than now.

    A.Having given

    B.Giving

    C.To give

    D.Given

    答案:D
    解析:
    本题主要考查非谓语动词用法,题目意为“如果之前能多关心一些,这些花很可能会比现在长势好的多。”
      过去分词given+词,表示假设的情况,表示假设的情况,相当于一个条件句“If they had been given...”,非真实条件句,当从句的主语与主句的主语相同时,可以改为非谓语(现在分词或过去分词)的省略形式,但不能用完成时态。本句中主语是花,关怀是人给予花的,所以选择过去分词表示被动语态。
      

  • 第4题:

    He was() from his position as the president of the university.

    A、moved

    B、removed

    C、awarded

    D、given


    参考答案:B

  • 第5题:

    There was a very interesting remark in a book by an Englishman that I read recently( )what he thought was a reason for this American characteristic.

    A.giving
    B.gave
    C.to give
    D.given

    答案:A
    解析:
    该题考查非谓语动词。其中介词短语by an Englishman与定语从句that I read recently都做定语修饰book。可见空格处应填一分词做定语修饰remark,而what he thought...characteristic做分词的宾语,其中he thought为插入语。由此排除B,C选项.根据句意,remark与give应是主动关系,故排除选项D.答案为A。