首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面语句中能够打开随机文件的是
下面语句中能够打开随机文件的是
admin
2019-01-17
17
问题
下面语句中能够打开随机文件的是
选项
A、Open“file.txt”For Random As#1
B、Open“file、txt”For Input As#1
C、Open“file.txt”For Output As#1
D、Open“file.txt”For Append As#1
答案
A
解析
Visual Basic程序中关于文件的操作,主要是先打开一个文件,然后对这个文件进行读或写的操作,操作完成后,关闭这个文件。打开文件的基本格式为:Open FileName For Mode.As#FileNumber。打开方式主要有Output、Append、Input、Random等几种方式,其中打开随机文件使用Random方式打开。
转载请注明原文地址:https://kaotiyun.com/show/HgFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
下面关于命令按钮的叙述中错误的是
设变量x的值是845,则下面语句的输出是Printx\100+(xMod100)\10+xMod10
判断单选按钮是否被选中的属性为
下面不属于软件需求分析阶段主要工作的是
设在窗体上有一个名称为Check1的复选框数组,并有以下事件过程:PrivateSubCheck1_Click(IndexAsInteger) …EndSub则下面叙述中错误的是( )。
为了在Form_Load事件过程中用Print方法在窗体上输出指定的内容,首先应执行的操作是
在窗体上画一个命令按钮,名称为Command1,然后编写如下代码:OptionBase0PrivateSubCommand1_Click() DimA1(4)AsInteger,A2(4)AsInteger Fork=0To
设工程中有Form1、Form2两个窗体,要求单击Form2上的Command1命令按钮,Form2就可以从屏幕上消失,下面的事件过程中不能实现此功能的是( )。
设有如下事件过程:PrivateSubCommand1_Click() Dima a=Array(3,5,6,3,2,6,5,3,5,4,3,9,4,5,6,3,5) x=0 n=UBound(a)
随机试题
我国最早的脉学专书《脉经》提出多少种脉象
男性,28岁。间歇性右下腹痛半年伴腹泻,粪呈糊状,无脓血便。右下腹隐约可扪及边缘欠清的肿块。钡餐发现回肠末端及盲肠有多段肠曲肠腔狭窄,边缘不齐,病变之间肠曲粘膜形态正常。PPD-IgG(+),最可能的诊断是
可摘局部义齿间接固位体安放的位置与哪条线有关
药性平和,无论寒热虚实之肝风内动皆可应用,并能祛风湿,止痹痛的药物是
函数极值情况为( )。
项目社会评价的社会影响分析包括()。
某企业采用债务法对所得税进行核算,适用的所得税税率为33%。2007年年初递延所得税负债账面余额为100万元,2007年发生应纳税暂时性差异50万元、转回应纳税暂时性差异150万元。2007年12月31日“递延所得税负债”账面余额为()万元。
根据车船税法律制度的规定,下列车船中,以“辆数”为计税依据的有()。
Thepicnic______atlastafterbeingtwicepostponed.
Toomuchtelevisioncanbedetrimentalforkids’development,evenwhenthey’renotploppeddirectlyinfrontofthescreen.An
最新回复
(
0
)