首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
设在工程中有一个标准模块,其中定义了如下类型: 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
36
问题
设在工程中有一个标准模块,其中定义了如下类型: 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全国计算机二级
相关试题推荐
已经建好一个Frame类的对象myfrm,要为其设置标题,需要调用下面()方法。
某二叉树T有n个结点,设按某种顺序对T中的每个结点进行编号,编号值为1、2、…、n,且有如下性质:T中任一结点v,其编号等于左子树上的最小编号减1,而v的右子树的结点中,其最小编号等于v左子树上的最大编号加1。此二叉树是按()顺序编号的。
以下哪个方法仅在Applet程序被创建和首次被载入支持Java的浏览时被调用?()。
一个工程中含有窗体Form1、Form2和标准模块Model1,如果在Form1中有语句PubilcXAsInteger,在Model1中有语句PubilcYAsInteger,则以下叙述中正确的是
在窗体上画一个命令按钮,其名称为Command1,然后编写如下事件过程: PrivateSubCommand1_Click() a=12345 PrintFormat$(a,"000.00") EndSub 程序运行后,单击命令按钮,窗
执行语句Open"Tel.dat"ForRandomAs#1Len=50后,对文件Tel.dat中的数据能够执行的操作是_________。
在窗体上添加一个文本框控件Info,画一个命令按钮,当单击命令按钮显示“保存文件”对话框,设置该对话框可用于保存文本文件(默认)和可执行文件(.exe),然后在文本控件中显示保存的文件名。 PrivateSubCommand1_Click()
在软件开发过程中,软件结构设计是描述______。
软件是程序、数据和【】的集合。
顺序存储方法是把逻辑上相邻的结点存储在物理位置【】的存储单元中。
随机试题
Humanityusesalittlelessthanhalfthewateravailableworldwide.Yetoccurrencesofshortagesanddroughtsarecausingfami
下列关于通气/血流比值的描述,错误的是()
疫毒痢的治法是()
下列压缩机中,属于容积型往复式的有()。
B公司为增值税一般纳税人,适用的增值税税率为17%。2012年5月,A公司与B公司进行资产交换,A公司将持有的一台设备与B公司的一项交易性金融资产交换。该设备的账面价值为450万元,不含增值税的公允价值为500万元,累计折旧80万元,尚未计提跌价准备。该项
现阶段我国的教育目的及其基本精神是什么?
金属材料在受到反复变化的外力作用时,强度会下降得非常明显,这种现象被称为金属疲劳。下列关于金属疲劳的说法正确的是()。
当下,“文化”成为最热的词之一。如何继承发扬传统文化、形成中国人自己的文化.增强我们的文化软实力,已成热门话题。但这种共识其实是相当模糊的,很多争议因此而生。学繁体字、穿唐装、开同学班……围绕“传统文化”生出的热闹一场接一场,但讨论的背后都离不开对“文化”
陈华图便宜花50元买了双旅游鞋,不到一个月鞋带就断了。不久,他按市价的几乎一半买了件皮夹克,结果发现原来是仿羊皮的。于是他得出结论:便宜无好货。陈华得出结论的思维方法,与下列哪项最为类似?
A、DifferentFormsofExerciseB、Exercise—TheRoadtoHealthC、Running—APopularFormofSportD、ScientificEvidenceofHealthBe
最新回复
(
0
)