学习网考试学习资料

Gzu521.com

2007年9月计算机二级VB模拟试题(10)及答案(2)

全国计算机等级考试   点击:次   发布时间:2007-9-16   【字体: 】   来源:Gzu521.com
贵州学习网—属于你的学习中心

(21) 当组合框的style属性设置为何值时,组合框称为下拉式列表框
a) 0        
b) 1
c) 2        
d) 3
正确答案:  c

(22) 下列程序段的执行的结果是
dim a(10) , b(10)
i=3
for j=1 to 5
   a(j) =j
   b(i) =2  i + j
next j
print b(i) ; a(i)
a) 113       
b) 315
c) 311       
d) 153
正确答案:  a

(23) 对窗体编写如下事件过程:
option base 1
private sub form_keypress(keyascii as integer)
   arr=array(12, 15, 18, 20, 24)
   m1=arr(1)
   m2=1
   if keyascii=12 then
   for i=2 to 5
      if arr(i) > m1 then
          m1=arr(i)
          m2=i
      end if
     next i
   end if
   print m1
   print m2
end sub
程序运行之后按回车键,输出结果为
a) 12       
   1     
b) 20
   2
c) 18       
   5       
d) 24
    12
正确答案:  a

(24) 在以下事件过程中,可以在用户按下鼠标右键时,显示一个上边框,以鼠标当前位置为中心的弹出式菜单,而且这个弹出式菜单还可以识别右键对菜单命令的选择,相应的选项是
a) private sub form_mouseup(button as integer, shift as integer, _
         x as single, y as single)
     if button=2 then
       popupmenu mnuedit, vbpopupmenucenteralign or _
          vbpopupmenurightbutton, x, y, mnueditopen
      end if
   end sub
b) private sub form_mouseup(button as integer, shift as integer, _
         x as single, y as single)
       if button=2 then
         popupmenu mnuedit,
       end if
  end sub
c) private sub form_mouseup(button as integer, shift as integer, _
         x as single, y as single)
     popupmenu mnuedit, vbpopupmenucenteralign or _
       vbpopupmenurightbutton
 end sub
d) private sub form_mouseup(button as integer , _
         shift as integer, x as single, y as single)
   if button=2 then
           popupmenu mnuedit, 2
     end if
   end sub
正确答案:  a

(25) 为了通过键盘访问主菜单项,可在菜单编辑器的"标题"选项中的某个字母前插入何字符,建立热键字母?
a) &        
b) #
c) *        
d) $
正确答案:  a

(26) 下列程序段的执行结果为
dim t(10)
for k=2 to 10
   t(k) =11 - k
next k
x=6
print t(2 + t(x) )
a) 2        
b) 3
c) 4        
d) 5
正确答案:  c

(27) 下列程序的执行结果为
a=10
b=20
if a <> b then a=a + b else b=b - a
print a, b
a) 2020       
b) 3020
c) 3040       
d) 1515
正确答案:  b

(28) 对话框在关闭之前,不能继续执行其他操作,这种对话框属于
a) 输入对话框     
b) 输出对话框
c) 模式(模态) 对话框    
d) 无模式对话框
正确答案:  c

(29) 下面叙述不正确的是
a) 对顺序文件中的数据操作只能按一定的顺序操作
b) 顺序文件结构简单
c) 顺序文件的数据以字符(ascii码) 形式存储
d) 能同时对顺序文件进行读写操作
正确答案:  d

上 一 页 下 一 页
文共4页:第 【1】 【2】 【3】 【4】

责任编辑:gzu521

IT认证分类
计算机软件水平考试
全国计算机等级考试
思科认证
微软认证
ORACLE/CIW认证
Linux认证
JAVA认证
其它认证
分类推荐信息
更多...
大类最新文章
更多...