填空题

下列程序的功能是:将数据1,2,…,8写入顺序文件Num.txt中,请补充完整。   Private Sub Form_Click()     Dim i As Integer     Open"Num.txt"For Output As #1     For i=1 To 8     【 】     Next i     Close #1   End Sub

【参考答案】

Print #1,i
<上一题 目录 下一题>
热门 试题

单项选择题
在窗体上画一个名称为Command1的命令按钮,然后编写如下通用过程和命令按钮的 事件过程:Private Function fun(ByVal m As Integer) If m Mod 2 = 0 Thenfun = 2 Else fun = 1 End If End FunctionPrivate Sub Command1_Click() Dim i As Integer, s As Integer s = 0 For i = 1 To 5s = s + fun(i) NextPrint sEnd Sub程序运行后,单击命令按钮,在窗体上显示的是______。
A.6
B.7
C.8
D.9
单项选择题
执行下列程序后,鼠标单击窗体,输出结果为( )。Private Sub Form_Click()Print“Click”;End SubPrivate Sub Form_MouseDown(Button As Integer,Shift_As Integer,X As Single,Y As Single)Print “Donw”End SubPrivate Sub Form_MouseUp(Button As Integer,Shift_As Integer,X As Single,Y As Single)Print“Up”End Sub
A. DownUpClick
B. ClickDownUp
C. DownClickUp
D. UpDownClick
相关试题
  • 关系数据库的关系演算语言是以【 】为基础...
  • 软件结构是以【 】为基础而组成的一种控制...
  • 用链表表示线性表的突出优点是【 】。
  • 【 】是一种信息隐蔽技术,目的在于将对象...
  • 软件工程研究的内容主要包括:【 】技术和...