阅读下面的程序,填写程序中缺少的部分,并把程序的输出结果写出来;
classTest{
staticvoidShowArrayInfo(int[]student){
for(inti=0;i
Console.Write(student[i]++);
Console.Write(“”);
}
}
staticvoidMain(){
int[]student=newint[]{1,2,3,4,5};
ShowArrayInfo(student);
Console.Write(“/n”);
ShowArrayInfo(student);
}
}
输出结果:
第2题
A.8
B.2
C.6
D.4
第3题
A.程序执行,但没有任何输出
B.程序输出finally
C.程序编译时出错,提示缺少catch
D.程序编译时出错,提示finally语句无法访问到
第4题
A.12
B.123
C.12345
D.0
第5题
A.####
B.****
C.####****
D.有语法错误,无输出结果
第6题
阅读下列程序并写出程序运行结果。
Private Sub Form_Click()
Dim x As Integer
Static y As Integer
x = x + 2
y = y + 3
Form1.Print "x="; x, "y="; y
End Sub
写出程序运行时连续单击三次窗体后,Form1上的输出结果。
第7题
执行下面的程序时,从键盘上输入A的值为10,写出程序输出结果。 INPUT TO A IF A=10 S=0 ENDIF S=1 S
第8题
A.编译时报错,程序无法运行
B.编译无错,运行正常,输出 3 , 5
C.编译无错,运行时报错
D.编译时报警告错,但运行正常,输出 3 , 5
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!