c#的几个基础的选择判断题(不过是英文的)

来源:百度知道 编辑:UC知道 时间:2024/06/30 22:55:12
1.True or false: both instance properties and static properties are allowed?

1. False.

2. True.

2。True or false: a static method can access instance members?

1. False.

2. True.

3.True or false: it is considered good style to explicitly invoke the garbage collector whenever an object allocated on the heap goes out of scope?

1. False.

2. True.

4。Determining if two references refer to the same object should be done using:

1. The Equals method.

2. The == operator.

3. The Object.ReferenceEquals method.

5.True or false:In Exceptions, the catch and finally constructs may be associated with the same try block.

1. True.

2. False.

6.

我翻译一下:
1 实例属性和静态属性都是被允许访问的吗? true
2 一个静态方法可以访问实例的成员吗? false
3 明确的调用垃圾收集器收集当一个在堆里面已分配资源的对象但已经没有用了,这被认为是一个很好是方式 true
4 如果两个参数参考同一个对象应该使用如下方法 The Equals method.
5 在异常中,catch和finally结合起来处理try语句抛出的异常 true
英语也不是很好,但尽力了!!!

这个问题比较严重了!! 因为我看不懂是什么问题!! 不好意思如果你能翻译一下给我一个准确问题 我绝对能帮你!!!

11131