首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
假定在工程文件中有一个标准模块,其中定义了如下记录类型: Type Books Name As String*10 TelNum AS String*20 End Type 要求在执行事件过程Commandl Cli
假定在工程文件中有一个标准模块,其中定义了如下记录类型: Type Books Name As String*10 TelNum AS String*20 End Type 要求在执行事件过程Commandl Cli
admin
2012-12-08
89
问题
假定在工程文件中有一个标准模块,其中定义了如下记录类型:
Type Books
Name As String*10
TelNum AS String*20
End Type
要求在执行事件过程Commandl Click时,在顺序文件Person.txt中写入一条记录。
下列能够完成该操作的事件过程是( )。
选项
A、Private Sub Commandl Click()
Dint B AS B00kS
B.Name=InputBox(“输入姓名”)
B.TelNum=InputBox(”输入电话号码”)
Write#1,B.Name,B.TelNurn
Close#1
End Sub
B、Private Sub Commandl Click()
Dim B AS Books
Open“C:\Person.txt”For Input As#1
B.Name=InputBox(“输入姓名”)
B.TelNum=InputBox(“输入电话号码”)
Print#1,B.Name,B.TelNLlm
Close#1
End Sub
C、Private Sub Commandl Click()
Dim B As Books
Open“c:\Person.txt”For Output As#l
Name=InputBox(”输入姓名”)
TelNom=InputBox(”输入电话号码”)
Write#1,B
Close#1
End Sn1h
D、Private Sub Commandl Click()
Dim B AS Book
Open“c:\Person.txt”For Input As#1
Name=InputBox(“输入姓名”)
TelNum-InputBox(“输入电话号码”)
Print#1,B.Name.B.TelNHm
Close#1
End Sub
答案
A
解析
转载请注明原文地址:https://kaotiyun.com/show/bkhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
在窗体上画一个标签(名称为Label1)和一个计时器(名称为Timer1),然后编写如下几个事件过程:PrivateSubForm_Load()Timer1.Enabled=FalseTimer1.
下列程序的执行结果为PrivateSubCommand1_Click()DimFirStrAsStringFirSt="abcdef"PrintPat(FirStr)EndSubPrivateFunctionPat
运行下列程序段后,显示的结果为 J1=23 J2=32 IfJ1<J2ThenPrintJ2ElsePrintJ1
下列说法错误的是
文本框控件最多能处理______个字节。
设有如下通用过程:PublicSubFun(a()AsInteger,xAsInteger)Fori=1To5x=x+a(i)NextEndSub在窗体上画一个名称为Text1的文本
若一棵二叉中只有叶结点和左、右子树皆非空的结点,设叶结点的个数为k,则左、右子树皆非空的结点个数是【】。
可以在窗体模块的通用声明段中声明______。
随机试题
把课程分为分科课程和综合课程的依据是()。
A、Trytoretainasmanynewwordsaspossible.B、Practicewordsatappropriateintervals.C、Learndifficultwordswiththehighe
A.热因热用B.寒因寒用C.通因通用D.塞因塞用用温热药治疗阴盛格阳证,属于
对于容积效应的理解,错误的是
2012年7月15日,某工厂正在生产的梳麻车间、前纺车间和准备车间的联合厂房突然发生亚麻粉尘爆炸起火。一瞬间,停电停水,当班的450名职工大部分被围困在火海之中。经及时抢救,多数职工脱离了危险区。该厂的除尘系统采用布袋除尘,金属管道输送亚麻粉尘。事故导致
企业应按扣除现金折扣后的净额确认应收账款。()
Thereisnodenyingthatstudentsshouldlearnsomethingabouthowcomputerswork,justasweexpectthematleasttounderstand
WhichofthefollowingsentencesisNOTcorrect?
Itwasonlyyesterdaythatthechiefengineer(email)______usthedetailsinformationabouttheproject.
ReformandMedicalCosts[A]Americansaredeeplyconcernedabouttherelentlessriseinhealthcarecostsandhealthinsurancep
最新回复
(
0
)