首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single En
设在工程中有一个标准模块,其中定义了如下类型: Type stutype ino As Integer strname As String*20 strsex As String*1 smark As Single En
admin
2012-03-22
107
问题
设在工程中有一个标准模块,其中定义了如下类型: 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_
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_n
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_n
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,
答案
B
解析
转载请注明原文地址:https://kaotiyun.com/show/aLhp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下列命令中,______能为远程对象生成stub和skeleton。
在窗体上画一个名称为Label1、标题为“VisualBasic考试”的标签,两个名称分别为Command1和Command2、标题分别为“开始”和“停止”的命令按钮,然后画一个名称为Timer1的计时器控件,并把其Interval属性设置为500,如图所
在窗体上画一个名称为Text1的文本框,并编写如下程序:PrivateSubFormLoad()ShowText1.Text=""Text1.SetFocusEndSubPriva
在属性窗口中,加载指定的图形放入当前对象中的属性是
下列不属于软件工程三要素的是
相对于数据库系统,文件系统的主要缺陷有数据关联差、数据不一致性和
软件是程序、数据和【】的集合。
下列数据结构中,按先进后出原则组织数据的是
在设计程序时,应采纳的原则之一是
在设计程序时,应采纳的原则之一是
随机试题
试述中国行政组织设置的原则。
在化工生产工艺技术路线选择中,首先要选择的原则是()。
地下水泥砂浆防水层施工前,基层表面应()。
硫化橡胶垫片(仪器用)()
所有者通过经营者损害债权人利益的常见形式有()。
仲裁庭可以由()仲裁员组成。
BettyandIarebestfriends.Ourbirthdaysareonthe【C1】______day,soeveryyearwehaveabirthdaypartytogether.Butthisy
“法治”与“德治”的关系问题,是当代社会、政治、伦理、法律等领域的重大思想问题。在相关讨论中,我国古代法家的思想资源本应占有一席之位,然而却意外地缺席了。两千年来,______:儒家站在“仁政”的立场上指责法家残暴冷酷;近现代学者站在“民主”的立场上指责
党的十八大以来,高压反贪腐很好地_________了腐败官员,在很大程度上_________了官场风气,但对权力的监督不能光靠运动,正如王岐山同志所言,治标是在为治本赢得宝贵时间。填入划横线部分最恰当的一项是:
CivilizationBeforeabout3500BC,therewerecultures,butnotcivilizations.Prehistoricmenandwomencreatedsocieties,
最新回复
(
0
)