单项选择题
向顺序文件Temp.txt中写入1,2,3这3个数。在程序中加入以下语句的哪一项可以使程序功能完整。
Private Sub Command1_Click()
Open "c:\Temp.txt",Output As#1
For i=0 To 3
Next
Close #1
End Sub
A) Print #1,Temp.txt B) Get #1,i
C) Print #1,i D) Unit #1,i
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
单击命令按钮时,下列程序的执行结果是 Private Sub Command1_Click() BT 4 End Sub Private Sub BT(x As Integer) x=x*2+1 If x<6 Then Call BT(x) End If x=x*2 Print x; End Sub A) 15 B) 16 C) 17 D) 18
单击命令按钮时,下列程序的执行结果是
Private Sub Command1_Click()
BT 4
End Sub
Private Sub BT(x As Integer)
x=x*2+1
If x<6 Then
Call BT(x)
End If
x=x*2
Print x;
End Sub
A) 15 B) 16
C) 17 D) 18
点击查看答案&解析
单项选择题
下面有一段程序代码,如果从键盘上输入 Computer ,则在文本框内显示的内容是 Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii>=65 And KeyAscii<=122 Then KeyAscii=42 End If End Sub A) Computer B) 什么都没有 C) ******** D) 程序出错
下面有一段程序代码,如果从键盘上输入"Computer",则在文本框内显示的内容是
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii>=65 And KeyAscii<=122 Then
KeyAscii=42
End If
End Sub
A) Computer B) 什么都没有
C) ******** D) 程序出错
点击查看答案&解析
相关试题
已知数组A(4,4),各个元素在运行程序...
下列程序计算Sn的值。Sn=a+aa+aaa+…+...
组合框有3种不同的类型,这3种类型是下拉...
有如下事件过程: Private Sub Form_Ac...
下列程序段的执行结果为______。 Di...