题目内容
(请给出正确答案)
[单选题]
下面代码的运行结果是()。defhello_world():print('ST',end='*')defthree_hello():foriinrange(3):hello_world()three_hello()
A.STSTST*
B.STST
C.ST*
D.***
答案
查看答案
A.STSTST*
B.STST
C.ST*
D.***
第2题
A. 5,4
B. 6,4
C. 5,6
D. 6,6
第3题
A.编译通过,但出现运行时错误
B.编译错误
C.正常运行,输出s=null
D.正常运行,输出s=
第5题
A.res.data
B.value
C.res
D.data
第6题
A.12345678910
B.1234567890
C.0123456789
D.Notice提示信息
第7题
A.X1=5X2=7
B.X1=5X2=5
C.X1=7X2=7
D.X1=7X2=5
第8题
A.正确运行,输出:A
B.编译时发生错误
C.正确运行,输出:B
D.运行时引发异常
第9题
A.x=3,6
B.x=3,4
C.x=5,4
D.编译错误
第10题
分析下面的C#代码,该程序的运行结果是()。classCheck{staticvoidMain(stringDargs){
intx,a=6,b=7;x=(a++)+b++;Console.Write("x="+x);Console.Write(",a="+a);Console.Write(",b="+b);}}
A.打印输出x=15,a=7,b=8
B.打印输出x=15,a=6,b=7
C.打印输出x=13,a=7,b=8
D.打印输出x=13,a=6,b=7