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

private sub commandl_click () 
dim a as integer 
a =2 
for i =1 to 3 
print f(a) 
next i 
end sub 
运行上面的程序,单击命令按钮,输出结果为   。 
a) 4    b) 4     c) 4     d) 4 
4     5       6      7 
4     6       8      9 
(25)阅读程序: 
sub subp(b() as integer) 
for i =1 to 4 
b(i)=2*i 
next i 
end sub 

private sub commandl_click() 
dim a(1 to 4)as integer 
a (1)=5 
a (2)=6 
a (3)=7 
a (4)=8 
subp a () 
for i =1 to 4 
print a(i) 
next i 
end sub 
运行上面的程序,单击命令按钮,输出结果为   。 
a)2    b)5     c)10    d)出错 
4     6       12 
6     7       14 
8     8       16 
(26)下列不能打开菜单编辑器的操作是   。 
a)按ctrl+e 
b)单击工具栏中的“菜单编辑器”按钮 
c)执行“工具”菜单中的“菜单编辑器”命令 
d)按shift + alt + m 
打印本文 打印本文  关闭窗口 关闭窗口