单项选择题

在窗体上没有进行任何属性设置,然后编写如下事件过程,则程序运行结果是( )。
Private Sub Form_Load()
For i=1 To 10
sum=sum+i
Next i
Print "Sum=";sum
End Sub

A.在窗体上输出55
B.在窗体上输出sum=55
C.出错
D.窗体上不输出
<上一题 目录 下一题>
热门 试题

单项选择题
数据库的故障恢复一般是由( )来执行恢复。
A.电脑用户
B.数据库恢复机制
C.数据库管理员
D.系统普通用户
单项选择题
要求当鼠标在图片框Picture1中移动时,立即在图片中显示鼠标的位置坐标。下面能正确实现上述功能的事件过程是( )。
A.Private Sub Picture1_MouseMove(Button As Integer,Shift As integer,XAs Single,Y As Single)
Picture1.Print X,Y
EndSub
B.Private Sub Picture1_MouseMove(Button As Integer,Shift As Integer,XAs Single,Y As Single)
Print X,Y
EndSub
C.Private Sub Picture1_MouseDown(Button As Integer,Shift As Integer,XAs Single,Y As Single)
Picture.Print X,Y
End Sub
D.Private Sub Form_MouseMove(Button As Integer Shift As Integer,XAs Single,Y As Single)
Picture1.Print X,Y
End Sub
相关试题
  • 有如下的一个函数过程: Function fn(By...
  • 下面程序运行时,若输入“Visual Basic P...
  • 单击命令按钮时,下列程序段的执行结果为(...
  • 一个工程中包含两个名称分别为Form1、Form...
  • 在窗体上画两个名称分别为Hscroll1、Hscro...