单选题
VB
2018-02-07
在窗体上画1个命令按钮,并编写如下事件过程:

运行程序,单击命令按钮,窗体上显示的内容为( )。
A.2 0 0
B.2 0 4
C.2 3 0
D.2 0 00 4 0 0 4 03 4 0 0 4 50 0 6 4 0 6 0 0 6 0 5 6
参考答案
B
答案解析
根据For循环中的If语句的条件n=m orn=4一m中的n=m首先可以得出a(1,1)=2,a(2,2)=4,a(3,3)=6,其次根据n=4一m的条件可以得出a(1,3)=4,a(2,2)=4,a(3,1)=4。而其他的元素值都为0。因此窗体上输出的三行分别是:2 04,0 4 0,4 0 6。
你可能感兴趣的试题
A.Print Mid(”VBProgram”,3,7)
B.Print Right(”VBProgram”,7)
C.Print Mid(”VBProgram”,3)
D.Print Left(”VBProgram”;7)
A.Label控件的Enabled属性与TextBox控件的Enabled属性
B.OpfionBraon控件的Value属性与CheckBox控件的Value属性
C.Commantt控件的Default属性与Command控件的Cancel属性
D.Command控件的Visible属性与Frame控件的Visible属性