A.falsetruefalse
B.falsetruetrue
C.falsefalsetrue
D.truetruefalse
第2题
(1,2,3,4)) print(demo(1,2,d=3))
第3题
A.publicDemo(){};
B.privateDemo(){};
C.Demo(intage){};
D.Stringname(){};
第4题
A.hello
B.hellohello
C.hellohellohello
D.hellohello抛出异常
第7题
分析下面的C#代码,该程序的运行结果是()。classExample{staticstrings1;staticstring
s2;staticvoidMain(stringDargs){s2=s1+s2;Console.WriteLine(s2);}}
A.代码编译失败
B.运行时错误,抛出NullPointerException异常
C.打印输出nullnull
D.代码编译成功,打印输出内容为空白行
第8题
;Console.WriteLine("s="+s);}}
A.无内容输出
B.代码编译失败
C.打印输出null
D.打印输出s=null
第9题
分析下面的C#代码,该程序的运行结果是()。classExample{staticvoidMain(stringQ
args){Console.WriteLine("/Looklikeacomment");}}
A.LookslikeA.comment
B./LookslikeA.comment
C.没有输出任何内容
D.编译错误
第10题
A.输出lisa
B.输出null
C.输出name
D.编译失败,无法从静态上下文中引用非静态变量name
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!