多选题Which of the following statements about variables and their scopes are true? ()AInstance variables are member variables of a class.BInstance variables are declared with the static keyword.CLocal variables defined inside a method are created when the me

题目
多选题
Which of the following statements about variables and their scopes are true? ()
A

Instance variables are member variables of a class.

B

Instance variables are declared with the static keyword.

C

Local variables defined inside a method are created when the method is executed.

D

Local variables must be initialized before they are used.


相似考题
更多“Which of the following statements about variables and their ”相关问题
  • 第1题:

    In the following statements about functional dependency, which one is incorrect?

    A.Ifthen X→X'.

    B.If X→Y andthen X→Y'.

    C.If X→Y andthen X'→Y.

    D.If X→Y and Y→Z, then X→Z.


    正确答案:C

  • 第2题:

    Which of the following statements about ORACLE is (are) correct?

    Ⅰ.ORACLE follows SQL standard

    Ⅱ.ORACLE database defines two logical types: table and view

    A.Ⅰonly

    B.Ⅱ only

    C.Ⅰ and Ⅱ

    D.none of the above


    正确答案:C

  • 第3题:

    which of the following statements is not true about the british media?

    A. They are mainly interested in making huge profits by publishing advertisements.

    B. They supply people with news,keeping them informed of what is happening in the world.

    C. They help shape British culture.

    D. They provide entertainment.


    参考答案:A

  • 第4题:

    Which of following statements about testing software with data is (are) true?

    Ⅰ.The primary purpose of such testing is to find errors.

    Ⅱ.Such testing can demonstrate the existence of errors but can not demonstrate the absence of errors.

    A.Neither

    B.Ⅰ only

    C.Ⅱ only

    D.Ⅰ and Ⅱ


    正确答案:B

  • 第5题:


    Which of the following statements about California is NOT TRUE?( )

    A.California is a sexually liberated state.
    B.California has a high abortion rate.
    C.About 40% of the pregnant teenagers chose to have an abortion.
    D.A recent poll showed that less than half of the respondents supported the amendment.

    答案:C
    解析:

  • 第6题:

    Which ONE of the following statements about Domino Enterprise server is true?()

    • A、Can host Active Server Pages Web sites
    • B、Can host PHP Web sites
    • C、Includes a DB2 server
    • D、Includes an integrated Web application server

    正确答案:D

  • 第7题:

    Which of the following statements about variables and scope are true?() 

    • A、 Local variables defined inside a method are destroyed when the method is exited.
    • B、 Local variables are also called automatic variables.
    • C、 Variables defined outside a method are created when the object is constructed.
    • D、 A method parameter variable continues to exist for as long as the object is needed in which the method is defined.

    正确答案:A,B,C

  • 第8题:

    单选题
    Which of the following statements is NOT true about the postal service?
    A

    American abortionists were not happy about it.

    B

    The stamp was invented in Britain.

    C

    It helped the independence of America.

    D

    In the 1840s it was the major means of national communications in Britain.


    正确答案: B
    解析:
    第五段指出“19世纪,邮政服务奠定了国内和国际交流的基石。邮票的出现、较低的价位和由发信人付费都对邮政服务的发展至关重要。在1840年英国使这些想法都成为了现实”,由此可知选项B(邮票是在英国发明的)和选项D(1840年邮政服务是英国国内交流的主要方式)都符合原文。从文章第六段提到的美国商人可通过邮政服务收集信息,邮政促进废奴思想的传播等可以看出postal service在美国获得独立方面起到了促进作用,因此选项C也正确。文章中并未提到“美国有权流产主义者”对其态度。

  • 第9题:

    单选题
    Which of the following statements about task design is incorrect?
    A

    Activities must have clear and attainable objectives.

    B

    Activities should be confined to the classroom context.

    C

    Activities must be relevant to students' life experiences.

    D

    Activities should help develop students' language ability.


    正确答案: A
    解析:

  • 第10题:

    单选题
    According to the passage, which of the following statements about the cell phone service at Yellowstone is TRUE?
    A

    It is limited to certain areas in the park.

    B

    It is available everywhere in the park.

    C

    It is not available in the park.

    D

    It is available to visitors at a fee.


    正确答案: B
    解析:
    由原文第二段中的“...cell phone service at Yellowstone is available in parts of the park with stores and campgrounds”可知,公园里只能在商店和宿营地才可以使用手机。即在公园里有限的特定区域才可以使用手机,因此A项正确。

  • 第11题:

    单选题
    Which of the following statements is true?
    A

    Scientists have solved the mystery about the fish killer.

    B

    More studies need to be made about the fish killer.

    C

    It is proved that the algae are reducing fish populations.

    D

    Humans have already been affected by the toxin.


    正确答案: C
    解析:
    推断题。从第五段提到的“To understand the killer algae further, scientists must…and determine….They also need to know….”,可知要对这种微生物有进一步的了解,还有更多的研究工作要做。因此选B。

  • 第12题:

    单选题
    Which of the following environment variables specifies a non-default location for the listener configuration file?()
    A

    LSN_ADMIN

    B

    TNS_ADMIN

    C

    ADMIN_TNS

    D

    TSN_ADMIN


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

  • 第13题:

    19 Which of the following statements about intangible assets in company financial statements are correct according

    to international accounting standards?

    1 Internally generated goodwill should not be capitalised.

    2 Purchased goodwill should normally be amortised through the income statement.

    3 Development expenditure must be capitalised if certain conditions are met.

    A 1 and 3 only

    B 1 and 2 only

    C 2 and 3 only

    D All three statements are correct


    正确答案:A

  • 第14题:

    Which of the following statements are true of collectivist culture?

    A、Disclosure of private feeling is distasteful.

    B、People are suspicious of outsiders.

    C、Uniformity is not highly thought of.

    D、there is a positive attitude about words of disagreement.


    参考答案:B

  • 第15题:

    Which of the following statements about The Scarlet Letter is NOT true?

    A.It explores man's never-ending search for the satisfaction of materialistic desires.

    B.It relates the conflicts between the society and the individual.

    C.It is about the effect of sin on the people involved and the society as a whole.

    D.It presents a p


    正确答案:B

  • 第16题:

    Which of the following statements about language is NOT true?

    A.Language is a system
    B.Language is symbol
    C.Animals also have language
    D.Language is arbitrary

    答案:C
    解析:
    本题考查语言的定义。
    本题要求选不正确的,C选项,动物也有语言,错误。语言是人类在交际中使用的一套任意的声音符号系统。动物没有语言,动物只是本能发出声音。综上,应选C。
    A选项,系统的,故排除。
    B选项,符号,故排除。
    D选项,任意的,故排除。
    故正确答案为C项。

  • 第17题:

    Which of the following statements is true about a router's eBGP peers that is not  also true about that same router's iBGP peers?()

    • A、The eBGP peer neighborship uses TCP
    • B、The eBGP peer uses port 180 (default)
    • C、The eBGP peer uses the same ASN as the local router
    • D、The eBGP peer updates its AS_Path PA before sending updates to  this router

    正确答案:D

  • 第18题:

    Krstin has created a page in the videos application .which one of the following statements about pages is not true ?()

    • A、pages are design elements
    • B、Pages can be full-text indexed 
    • C、pages  can be referenced by outlines or frames  
    • D、pages  can include text,graphics ,applets,and links

    正确答案:B

  • 第19题:

    单选题
    Which of the following statements about the golf club is NOT true?
    A

    It’s at the top of the cliff.

    B

    They were not allowed to be in the club.

    C

    They parked the car near the club.


    正确答案: A
    解析:
    根据there was a golf club at the top of the cliff that we weren’t allowed into可见A项和B项说法正确。文中只提到停放汽车,但没有提及停在哪儿。

  • 第20题:

    多选题
    Which of the following statements about variables and scope are true?()
    A

    Local variables defined inside a method are destroyed when the method is exited.

    B

    Local variables are also called automatic variables.

    C

    Variables defined outside a method are created when the object is constructed.

    D

    A method parameter variable continues to exist for as long as the object is needed in which the method is defined.


    正确答案: C,A
    解析: 本题是讨论变量的类型及作用域。

  • 第21题:

    多选题
    Which of the following statements about variables and their scopes are true? ()
    A

    Instance variables are member variables of a class.

    B

    Instance variables are declared with the static keyword.

    C

    Local variables defined inside a method are created when the method is executed.

    D

    Local variables must be initialized before they are used.


    正确答案: B,D
    解析: 类中有几种变量,分别是:局部变量(英文可以为:local/automatic/temporary/stack variable)是定义在方法里的变量;实例变量(英文为:instance variable)是在方法外而在类声明内定义的变量,有时也叫成员变量;类变量(英文为:class variable)是用关键字static声明的实例变量,他们的生存期分别是:局部变量在定义该变量的方法被调用时被创建,而在该方法退出后被撤销;实例变量在使用new Xxxx()创建该类的实例时被创建,而其生存期和该类的实例对象的生存期相同;类变量在该类被加载时被创建,不一定要用new Xxxx()创建,所有该类的实例对象共享该类变量,其生存期是类的生存期。任何变量在使用前都必须初始化,但是需要指出的是局部变量必须显式初始化,而实例变量不必,原始类型的实例变量在该类的构造方法被调用时为它分配的缺省的值,整型是0,布尔型是false,而浮点型是0.0f,引用类型(类类型)的实例变量的缺省值是null(没有进行实际的初始化,对它的使用将引起NullPointException),类变量的规则和实例变量一样,不同的是类变量的初始化是在类被加载时。

  • 第22题:

    单选题
    Which of the following statements about general cargoes is not correct?()
    A

    General cargoes are neither liquid nor solid bulk cargo

    B

    General cargoes are packaged hazardous cargoes

    C

    General cargoes are also called breakbulk cargoes

    D

    General cargoes are mostly carried on container ships now


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

  • 第23题:

    单选题
    Which of the following statements is NOT true about mass communication?
    A

    It can reach no further than human voice.

    B

    It can reach a large audience.

    C

    It is rapid and efficient.

    D

    It can be trusted.


    正确答案: B
    解析:
    最后一段指出思想传播的速度、距离和受众都发生了变化,大约200年前,人们所说的话并不能比其声音传播的更远,而非指的是mass communication(大众传媒)。

  • 第24题:

    单选题
    Which of the following statements about a lesson plan is inappropriate?
    A

    It is a teaching guide

    B

    It is a blueprint to be strictly followed

    C

    It takes into account syllabus and students

    D

    It describes in advance what and how to teach


    正确答案: A
    解析: