试题与答案

设在工程中有一个标准模块,其中定义了如下记录类型:Type Books Name A

题型:填空题

题目:

设在工程中有一个标准模块,其中定义了如下记录类型:
Type Books
Name As String*10
telNum As String*20
End Type
在窗体上添加一个名为Command1的命名按钮,要求当执行事件过程Command1_Click时,在顺序文件 Person.txt中写入一条记录。请在 【14】 中填入适当的内容,将程序被补充完整。
Private Sub Command1_Click( )
Dim B As 【14】
Open"c:\person.txt"For Output As #1
B.Name=Input Box(“输入姓名”)
B.TelNum=InputBox(“输入学号”)
Write#I,B,Name,B.TelNum
Close #1
End Sub

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0705/9937b70a6a1b124f9d7db12db4b4d7c5.html

下面是错误答案,用来干扰机器的。

参考答案:A, C

试题推荐
微信公众账号搜索答案