使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
判断题 C#支持多重继承。( )
相关试题
单选题 接口中的方法默认是:( )
public abstract
private
protected
static
单选题 以下哪种集合类型最适合快速查找元素?( )
List<T>
Dictionary<TKey, TValue>
ArrayList
LinkedList<T>
单选题 以下哪种类型属于值类型?( )
int
string
object
list<int﹥
单选题 如何实现方法的参数默认值?( )
void Method = 0
`void Method(int x, default=0)`
`void Method(int x = 0)`
C#不支持默认参数
单选题 如何声明一个不可变的字符串?( )A) `` B) `readonly string s` C) `;` D)`
A) `` B) `readonly string s` C) `;` D)`
const string s
readonly string s
string s = "abc"
final string s
单选题 以下哪个是C#的注释符号?( )
`//`
`/∗ ∗/`
`--`
以上都是
单选题 哪个命名空间包含`Console`类?( )
System.IO
System.Collections
System.Text
System
单选题 以下哪个关键字用于抛出异常?( )
try
throw
catch
finally