首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设在工程中有一个标准模块,其中定义了如下类型: 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
88
问题
设在工程中有一个标准模块,其中定义了如下类型: 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全国计算机二级
相关试题推荐
FileInputStream是字节流;BufferedWriter是字符流;ObjectOutputStream是【】。
if语句合法的条件值是【】类型。
下面哪个选项正确示例了传递一个参数给applet?()
在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程: PrivateSubCommand1_Click() a=12345 PrintFormat$(a,"000.00") EndSub 程序运行后,单击命令按钮,窗
在窗体上画一个名称为Timer1的计时器控件,要求每隔0.5秒发生一次计时器事件,则以下正确的属性设置语句是
在软件工程中,白箱测试法可用于测试程序的内部结构。此方法将程序看做是_______。
以下数据结构属于非线性数据结构的是______。
当对象得到焦点时,会触发【】事件,当对象失去焦点时将触发【】事件。
若串s="Program",则其子串的数目是【】。
在先左后右的原则下,根据访问根结点的次序,二叉树的遍历可以分为三种:前序遍历、【】遍历和后序遍历。
随机试题
铣削六角棱柱,其侧棱之间和侧面之间的夹角是相等的,用分度头简单分度法进行分度。()
I’llgivethedictionaryto______wantstohaveit.
应用腋下反向牵引带腰椎牵引时,应注意避免
女,65岁。右侧肢体震颤,表情淡漠,行走不稳5个月。查体:双侧上肢静止性震颤,右侧肢体出现铅管样肌强直,肌力、腱反射、感觉均正常,慌张步态,患者不能服用以下哪种药物
甲企业2011年1月5日销售货物一批就,价款10000元,增值税税率17%,收到购买单位支票一张,收讫后存入银行,会计人员根据审核无误的原始凭证填制银行存款收款凭证。上述资料中(2)处的金额应为()元。
为发挥支票灵活便利的特点,我国《票据法》规定,可以通过授权补记方式记载的绝对记载事项包括()。
某公司现有普通股300000股,拟发放45000股股票股利。已知目前每股收益为3.68元,假设盈利总额不变,发放股票股利后的每股收益将为()元。
《行星组曲》的曲作者是()
(2010年试题,10)曲线渐近线方程为__________.
Lookatthenotebelow.Youwillheartwocolleaguestalkingonthephone.MessageTime:9:
最新回复
(
0
)