打印本文 打印本文  关闭窗口 关闭窗口  
三级Visual Basic笔试样题(二)
作者:佚名  文章来源:不详  点击数  更新时间:2007/12/21 18:26:09  文章录入:杜斌  责任编辑:杜斌

private sub formm_load()

text1 text=''

text2 text=''

end sub

程序运行后,在第一个文本框(text1)和第二个文本框(text2)中分别输入123和321,然后单击命令按钮,则输出结果为    。

a) 444     b) 321123   c) 123321   d) 132231

(16)阅读下面的程序段:

for i=1 to 3

for j=1 to i

for k=j to 3

a=a+1

next k

next j

next i

执行上面的三重循环后,a 的值为   。

a) 3    b) 9     c) 14     d) 21

(17)在窗体上画一个文本框(其中name属性为text1),然后编写如下事件过程:

private sub form_load()

ttext1.text=''>

text1.setfocus

for i=1 to 10

sum=sum+i

next i

text1.text=sum

end sub

上述程序的运行结果是   。

a) 在文本框text1中输出55

b) 在文本框text1中输出0

c) 出错

d) 在文本框text1中输出不定值

打印本文 打印本文  关闭窗口 关闭窗口