网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

设在工程文件中有一个标准模块,其中定义了下列记录类型:

Type Books

Name As String*10

TelNum As String*20

End,Type

在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1 Click 时,在顺序文件Person.txt中写入一条Books类型的记录。下列能够完成该操作的事件过程是( )。

A.Private Sub Command1 Click( )

Dim B AS Books

Open"Person txt"For Output As#1

Name=InputBox(”输入姓名”)

relNum=lnputBox(”输入电话号码”)

Wlite#1 B Name,B TelNum

Ch,se#1

End Sub

B.Private Sub Command1 Click( )

Dim B AS Books

Open"Person txt"For Input As#1

>Name=InputBox("输入姓名")

TelNum=InputBox("输入电话号码")

Print#1,B.Name,B.TelNam

Close#1

End Sub

C.Private Sub Command1 Click( )

Dim BAS Books

Open"Person txt"For Output As#1

Name=InputBox("输入姓名")

TelNum=InputBox("输入电话号码")

Write#1,B

Close#1

End Sub

D.Private Sub Commandl Click( )

Open"Person txt"For Input As#1

Name=lnputBox("输入姓名")

TelNum=lnputBox("输入电话号码")

Prim#1 Name TelNum

Close#1

End Sub


参考答案

更多 “ 设在工程文件中有一个标准模块,其中定义了下列记录类型:Type BooksName As String*10TelNum As String*20End,Type在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1 Click 时,在顺序文件Person.txt中写入一条Books类型的记录。下列能够完成该操作的事件过程是( )。A.Private Sub Command1 Click( )Dim B AS BooksOpenPerson txtFor Output As#1Name=InputBox(”输入姓名”)relNum=lnputBox(”输入电话号码”)Wlite#1 B Name,B TelNumCh,se#1End SubB.Private Sub Command1 Click( )Dim B AS BooksOpenPerson txtFor Input As#1Name=InputBox(输入姓名)TelNum=InputBox(输入电话号码)Print#1,B.Name,B.TelNamClose#1End SubC.Private Sub Command1 Click( )Dim BAS BooksOpenPerson txtFor Output As#1Name=InputBox(输入姓名)TelNum=InputBox(输入电话号码)Write#1,BClose#1End SubD.Private Sub Commandl Click( )OpenPerson txtFor Input As#1Name=lnputBox(输入姓名)TelNum=lnputBox(输入电话号码)Prim#1 Name TelNumClose#1End Sub ” 相关考题
考题 假定在工程文件中有一个标准模块,其中定义了如下记录类型:Type BooksName As String*10TelNuin As String*20End Type要求在执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。将以下程序补充完整。Private Sub Command1_Clickk()DimB As Booksopen"c:\person.txt"For output As 1B.Name=InputBox("请输入姓名")B.TelNum=InputBox("请输入电话号码")write 1,______close 1End Sub

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

考题 设在工程文件中有一个标准模块,其中定义了下列记录类型: Type Books Name As String*10 TelNum As String*20 End,Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1 Click 时,在顺序文件Person.txt中写入一条Books类型的记录。下列能够完成该操作的事件过程是( )。A.Private Sub Command1 Click( ) Dim B AS Books Open"Person txt"For Output As#1 Name=InputBox(”输入姓名”) relNum=lnputBox(”输入电话号码”) Wlite#1 B Name,B TelNum Ch,se#1 End SubB.Private Sub Command1 Click( ) Dim B AS Books Open"Person txt"For Input As#1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print#1,B.Name,B.TelNam Close#1 End SubC.Private Sub Command1 Click( ) Dim BAS Books Open"Person txt"For Output As#1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write#1,B Close#1 End SubD.Private Sub Commandl Click( ) Open"Person txt"For Input As#1 Name=lnputBox("输入姓名") TelNum=lnputBox("输入电话号码") Prim#1 Name TelNum Close#1 End Sub

考题 以下叙述中错误的是 ______。A.一个工程中可以包含多个窗体文件B.在一个窗体文件中用Private定义的通用过程能被其他窗体调用C.在设计Visual Basic程序时,窗体、标准模块、类模块等需要分别保存为不同类型的磁盘文件D.全局变量必须在标准模块中定义

考题 假定已经定义了一个名为arr_type的PL/SQL表类型,那么怎样实例化一个arr_type类型的变量() A.v_arr arr_type;B.v_arr is arr_type;C.v_arr of arr_type;D.v_arr arr_type%type;

考题 下面定义PL/SQL记录的语法正确的是()。 A.TYPE 记录类型名 IS RECORDB.TYPE 记录类型名 RECORDC.RECORD 记录类型名D.TYPE RECORD 记录类型名

考题 以下叙述中错误的是________。A.在一个窗体文件中用Private定义的通用过程可以被其他窗体调用B.一个工程中可以包含多个窗体文件C.窗体和标准模块需要分别保存为不同类型的磁盘文件D.全局变量可以在标准模块中定义

考题 以下叙述中错误的是________。A.全局变量可以在标准模块中定义B.窗体和标准模块需要分别保存为不同类型的磁盘文件C.在一个窗体文件中用Private定义的通用过程可以被其他窗体调用D.一个工程中可以包含多个窗体文件

考题 在随机文件操作中,定义记录类型的语句()。A.Type…End TypeB.DimC.PrivateD.Public