题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-17 22:39:35

[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型Type Books Name As String *10 TelNum As String *20End Type在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_ Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click() Dim B As Books Open "c:/Persotxt" For Output As #1 Name=InpuBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,Name,TelNum Close #1End Sub
B. Private Sub Command1_ Click() Dim B As Books Open "c:/Persotxt" For Input As #1 Name=InputBox(“输入姓名”) teLNum=InputBox(“输入电话号码”) Ptint #1,Name,TelNum Close #1End Sub
C. Private Sub Command1_ Click() Dim B As Books Open "c:/Persotxt" For Output As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Write #1,B Close #1End Sub
D. Private Sub Command1_ Click() Dim B As Books Open "c:/PersotxT" For Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1 Nam TelNum Close #1End Sub

更多"设在工程中有一个标准模块,其中定义了如下记录类型Type Books "的相关试题:

[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型
Type Books
Name As String *10
TelNum As String *20
End Type
在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_ Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click()
B. Private Sub Command1_ Click()
C. Private Sub Command1_ Click()
D. Private Sub Command1_ Click()
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String* 10 TelNum As String * 20 End Type 在窗体上画一个名为 Command1的命令按钮,要求当执行事件过程Command1 Click时, 在顺序文件Person.txt中写入一条记录。 下列能够完成该操作的事件过程是 ______。
A. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt" For Output As #1 Name = InputBox("输入姓名") TelNum = InputBox("输入电话号码") Write #1, Name, TelNum Close #1 End Sub
B. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt, For Input As # 1 Name = lnputBox("输入姓名") TelNum = InputBox("输入电话号码") Print #1, Name, TelNttm Close #1 End Sub
C. Private Sub Command1_Click( ) Dim B As Books Open "c:/Persotxt" For Output As #1 Name = InputBox("输入姓名") TelNum = InputBox("输入电话号码") Write # 1, B Close #1 End Sub
D. Private Sub Command1_Click( ) Dim B As Books Open"c:/Persotxt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1,Name,TelNum Close #1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String*10 TelNum As String*20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时,在顺序文件 Person.txt中写入一条记录。下列能够完成该操作的事件过程是
A. Private Sub Command1_Click( ) Dim B As Books Open”c:/PerSotxt"For Output As #1 Name=InpuB。x(“输入姓名”) TelNuln=InputBox(“输入电话号码”) Wdte#1.Name,TelNum Close#1 End Sub PIivate Sub Command1_C1ick() Dim B As BOOks OPen”c:/Persotxt"FOr lnput As #1 Name:InputBox(“输人姓名”) TelNum=InputBox(“输入电话号码”) Print#1,Name,TelNum C1ose#1 End Sub
B. Private Sub Command1_Chck( ) Dim B As Books Open”c:/Persoht”For Output As#1 Name=InputBox(“输入姓名”)
C. TelNum=InputBox(“输入电话号码”) Write#1,B Close#1 End Sub
D. Pnvate Sub Command1_Click( ) Open”c:/Persotxt"For lnput As #1 Name=InputBox(“输入姓名”) TalNum=InputBox(“输入电话号码”) Print,Name,TelNum Close#1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String * 10 TelNum As String * 20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时, 在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_Click() Dim B As Books Open"c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1. Nam TelNum Close #1 End Sub
C. Private Sub Command1_Click() Dim B As Books Open" c:/Perso txt" For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1, B Close #1 End Sub
D. Private Sub Command1_Click() Dim B As Books Open" c:/Perso txt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1, Name, TelNum Close #1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型 Type Books Name As String*10 TelNum As String*20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时, 在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是 ______。
A. Private Sub Command1_Click() Dim B As Books Open "c:/Persotxt"For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt" For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print #1,Name,TelNum Close #1 End Sub
C. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt"For Output As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Write#1,B Close #1 End Sub
D. Private Sub Command1_Click() Dim B As Books Open"c:/Persotxt"For Input As #1 Name=InputBox("输入姓名") TelNum=InputBox("输入电话号码") Print#1,Name,TelNum Close #1 End Sub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型: Type Books Name As String * 10 TelNum As String * 20 EndType 在窗体中添加一个名为Commandl的命令按钮,要求单击命令按钮时,在顺序文件 P1. txt中写入一条记录。下列能够完成该操作的程序段是 ( )
A. Private Sub Commandl_Click() Dim B As Books Open"d:/P1.txt"For Output As #1 Name=InputBox( "姓名") TelNum=InputBox("电话号码") Write #1, Name, TelNum Close #1 EndSub
B. Private Sub Commandl_Click() Dim B As Books Open" d:/Ptxt" For Input As Name=InputBox ("姓名") TelNum=InputBox ("电话号码") Print #1, Name, TelNum Close #1 EndSub
C. Private Sub Commandl_Click() Dim B As Books Open"d:/P1. txt"For Output As Name=InputBox("姓名") TelNum=InputBox ("电话号码") Write #1,B Close #1 EndSub
D. Private Sub Commandl Cliek() Open"d:/P1.txt" For Input As Name=InputBox("姓名") TelNum=InputBox ("电话号码") Print #1,Name,TelNum Close #1 EndSub
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型:Type Books Name As String *10 TelNum As String*20 End Type 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_ Click时,在顺序文件 Person.txt中写入一条记录。下列能够完成该操作的事件过程是______。
A. Private Sub Command1_ Click() Dim x As Books Open "C:///Perso txt" for Output As #1 Name=InputBox(“输入姓名”) TelNum=InPutBox(“输入电话号码”) Write #1,Name,TelNum Close #1 End Sub
B. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Input As #1 Name=InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1, Name, TelNum Close #1End Sub
C. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Output As #1 Name=InputBox(“输入姓名”) TelNum= InputBox(“输入电话号码”) Write #1,x Close #1End Sub
D. Private Sub Command1_ Click() Dim x As Books Open "c:/Perso txt" for Input As #1 Name= InputBox(“输入姓名”) TelNum=InputBox(“输入电话号码”) Print #1,Name,TeINum 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()
B. Private Sub Command1_Click()
C. Private Sub Command1_Click()
D. Private Sub Command1_Click()
[单项选择]设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single End Type 在窗体上画一个名为Connnand1的命令按钮,要求当执行事件过程Command1_Click时,在c:/的随机文件student..dat写入一条记录。下列能够完成该操作的事件过程是( )。
A. Sub Command1_C1ick() Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open" c:/student.dat" For input As # 1 len=len(student) Put # 1,record_no,student Close #1 End Sub
B. Sub Command1_Click( ) Dim student As studtype Dim record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:/student.dat" For random As #1 len=len(student) Put #1,record_no,student Close #1 End Sub
C. Sub Command1_Click() Dim student As studtype Dim record_no As integer record_no=1 With student .ino=12 .stmame="smith" .strsex="男" .smark=89 End With Open"c:/student.dat" For random As #1 len=len(student) Write #1,record_no,student Close #1 End Sub
D. Sub Command1_Click() Dim Student As studtype Dim Record_no As Integer record_no=1 With student .ino=12 .strname="smith" .strsex="男" .smark=89 End With Open"c:/student.dat"For output As #1 len=len(student) Put #1,record_no,student Close #1 End #1
[单项选择]设在工程中有一个标准模块,其中定义了如下记录类型: TyPe Record ID A3 Integer Name As String*20 End TyPe 在窗体中添加一个名为Command1的命令按钮,假设d:/F1.dat文件中含有5个用户自定义类型的记录。要求当执行事件过程Command1_Click时,随机访问该文件,并把文件中的第4条记录读出。下列能够完成该操作的程序段是
A. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:/F1.dat"For Random As#1 Len=Len(My Recor Position=4 Get#1,Position,Myrecord Close #1 End Sub
B. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:/F1.dat"For Random As #1 Len=Len(MyRecor Position=4 Put #1,Position,MyRecord Close#1 End Sub
C. Private Sub Command1_Click( ) Dim MyRecord As Record,Position Open"d:/F1.dar"For OutPut As #1 Len=Len(My Recor Position=4 Get #1,Position,MyRecord Close#1 End Sub
D. Private Sub Command1_Click( ) Dim MyRecord As record,Position Open"d:/F1.dat"For lnput As #1 Len=Len(MyRecor Position=4 Get #1,Position,MyRecord Close#1 End Sub

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码