首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面语句中能够打开随机文件的是
下面语句中能够打开随机文件的是
admin
2020-04-18
35
问题
下面语句中能够打开随机文件的是
选项
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/UaTp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
编写如下程序:PrivateSubCommandl_Click()DimnAsLong,SAsStringn=InputBox(”输入一个数”)DoWhilen0s=s&nMod10:
执行语句DimX,YAsInteger后,
现有如下一段程序:OptionBase1PrivateSubCommandl_Click()Dimaa=Array(3,5,7,9):x=1Fori=4To1Step-1s=s+a
在窗体上画一个名称为Filel的文件列表框,并编写如下程序:PrivateSubFile1_DblClickOx=Shell(File1.FileName,1)EndSub以下关于该程序的叙述中,错误的
如果在框架中画了2个复选框,且框架的Enabled属性被设置为False,2个复选框的Enabled属性被设置为True,则下面叙述中正确的是
关于文件操作,以下叙述中正确的是
以下关于图片框、图像框的叙述中,正确的是
在VisualBasic工程中,可以作为“启动对象”的程序是
下列运算符中,优先级别最高的是
下列运算符中,优先级别最高的是
随机试题
从高处坠落致第12胸椎压缩性骨折,有神经症状,脊髓损伤的节段是
宋代木结构的“侧脚”是指()。
根据合同法相关规定,()的合同是无效的。
甲企业期末“原材料”科目余额为100万元,“生产成本”科目余额为70万元,“材料成本差异”科目借方余额为5万元,“库存商品”科目余额为150万元,“委托代销商品”科目余额为15万元,“工程物资”科目余额为200万元。则甲企业期末资产负债表中“存货”项目的金
2×20年12月1日,甲公司与乙公司签订一份不可撤销的H设备销售合同,并为此购入专门用于生产H设备的一批钢材,其初始入账金额为500万元。2×20年12月31日,该批钢材的市场销售价格为470万元,甲公司将其加工成H设备尚需发生加工成本300万元,合同约定
有人认为,信息时代有了便捷的通讯手段,上门家访太浪费时间,可以取消了。要求:对上述观点作出判断和分析,条理清晰,350字左右。
爱国、敬业、诚信、友善,这一价值追求回答了我们要培育什么样的公民的重大问题,是每一个公民都应当遵守的道德规范,涵盖了()
A、 B、 C、 D、 B
Non-fatdairyproductssupplytheneedednutrientswithout______calories.
A、$5.00B、$15.00C、$30.00D、$250.00CMark告诉她收费标准是:fivedollarsaweekperline.Eachofyouradswilltakeup3line,sothat’s$1
最新回复
(
0
)