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 cre

题目

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.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

In C language,(70)variables have to be defined outside of any function, this(71)actual storage for it.

A.internal

B.export

C.output

D.external


正确答案:D
解析:译文:C语言中,外部变量必须在所有函数体之外定义,并为之分配实际内存空间。

第2题:

Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?()  

  • A、Member variables of the outer instance are always accessible to inner instances, regardless of their      accessibility modifiers.
  • B、Member variables of the outer instance can never be referred to using only the variable name within     the inner instance.
  • C、More than one inner instance can be associated with the same outer instance.
  • D、All variables from the outer instance that should be accessible in the inner instance must be declared     final.
  • E、A class that is declared final cannot have any inner classes.

正确答案:A,C

第3题:

●In C language, (70) variables have to be defined outside of any function,this (71) actual storage for it.

(70) A.internal

B.export

C.output

D.external

(71) A.locates

B.allocates

C.looks for

D.finds


正确答案:D,B
【解析】译文:C语言中,外部变量必须在所有函数体之外定义,并为之分配实际内存空间。

第4题:

Which two statements are true regarding the creation of a default constructor?()   

  • A、 The default constructor initializes method variables.
  • B、 The default constructor invokes the no-parameter constructor of the superclass.
  • C、 The default constructor initializes the instance variables declared in the class.
  • D、 If a class lacks a no-parameter constructor,, but has other constructors, the compiler creates a default constructor.
  • E、 The compiler creates a default constructor only when there are no other constructors for the class.

正确答案:C,E

第5题:

In the Expression Editor panel of CRS Script Editor, why would you use the Java tab? ()

  • A、to execute a specified method of a Java class  
  • B、to reference a variable or invoke a method of a custom Java Object  
  • C、to pass variables between two different workflows  
  • D、to create an object for the purpose of executing methods on a remote computer  
  • E、to get a reference to the Contact and Session states  
  • F、to allow for arguments to be passed to a specified method

正确答案:A,B,E

第6题:

Which of the following statements about authentication responses and conditions is true? ()(Choose two.)

A. When a router receives a failure response, it stops querying authentication methods.

B. When a router receives an error response, it stops querying authentication methods.

C. If the router receives a failure response from an authentication method, it queries the next method.

D. The router does not differentiate between failure and error responses; the authentication process is always interrupted.

E. If it receives no response from the authentication method, a router will determine the error condition on its own; the router also has the option to proceed to the next method in a list if configured accordingly.


参考答案:A, E

第7题:

Which of the following statements about authentication responses and conditions is true? ()(Choosetwo.)

  • A、When a router receives a failure response, it stops querying authentication methods.
  • B、When a router receives an error response, it stops querying authentication methods.
  • C、If the router receives a failure response from an authentication method, it queries the next method.
  • D、The router does not differentiate between failure and error responses; the authentication process is always interrupted.
  • E、If it receives no response from the authentication method, a router will determine the error condition On its own; the router also has the option to proceed to the next method in a list if configured accordingly.

正确答案:A,E

第8题:

In C language, external variables have to be defined(54) function, this(55)actual storage for it.

A.in

B.out

C.inside

D.outside


正确答案:D

第9题:

Which three statements are true?()

  • A、 The default constructor initializes method variables.
  • B、 The default constructor has the same access as its class.
  • C、 The default constructor invoked the no-arg constructor of the superclass.
  • D、 If a class lacks a no-arg constructor, the compiler always creates a default constructor. 
  • E、 The compiler creates a default constructor only when there are no other constructors for the class.

正确答案:B,C,E

第10题:

Which two statements are true regarding the creation of a default constructor?() 

  • A、 The default constructor initializes method variables.
  • B、 The compiler always creates a default constructor for every class.
  • C、 The default constructor invokes the no-parameter constructor of the superclass.
  • D、 The default constructor initializes the instance variables declared in the class.
  • E、 When a class has only constructors with parameters, the compiler does not create a default constructor.

正确答案:D,E

更多相关问题