首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面语句中能够打开随机文件的是
下面语句中能够打开随机文件的是
admin
2016-12-13
34
问题
下面语句中能够打开随机文件的是
选项
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/26Gp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
有关程序代码窗口的说法错误的是()。
模块独立性是软件模块化所提出的要求,衡量模块独立性的度量标准是模块的()。
单击命令按钮时,下列程序段的执行结果是()。PrivateSubCommandlClick()DimaAsInteger’bAsInteger,cAsIntegera=2:b=4:c=6
设有以下函数过程:Functionfun(mAsInteger)AsIntegerDimkAsInteger,sumAsIntegersum=0Fork=mTo1Step-2sum
常用的软件结构设计工具是结构图(SC),也称程序结构图。其中,用矩形表示________,用带空心圆的箭头表示传递的是数据。
在窗体上画一个通用对话框,其Name属性为Cont,再画一个命令按钮,Name属性为Commandl,然后编写如下事件过程:PrivateSubCommandlClick()Cont.FileName=“”Cont.Flags=vbOF
窗体上有从左到右4个单选按钮组成的控件数组Optl,下标从0开始。程序运行时,单击命令按钮“选择”(名称为Commandl),则在标签Labell中显示所选中的信息,如图所示。以下是完成上述功能的程序,请填空。PrivateSubCommandl
假定有一个菜单项,名为MenuItem,为了在运行时使该菜单项不可见,应使用的语句为()。
在关系数据库中,用来表示实体之间联系的是______。
随机试题
PresidentBarackObamaclaimedprogressWednesdayinhissecond-termdrivetocombatclimatechangebutsaidmoremustbedonet
长于促进骨折愈合的药物是
女性,45岁,胆囊结石5年,曾胆绞痛发作3次,B超示胆囊结石5枚,直径1~2cm,首选的治疗方法是
出口口岸()指运港()
4月15日,某投资者预计将在6月份获得一笔300万元的资金,拟买入A、B、C三只股票,每只股票各投资100万元。如果6月份到期的股指期货价格为1500点,合约乘数为100元/点。三只股票的β系数分别为3、2.6、1.6。为了规避股票价格上涨的风险,他应该买
企业保留现金的原因主要是()。
针对营业收入发生认定,下列审计程序中,恰当的有()。
具有一定的自我反思能力属于教师的()
汉字国标码(GB2312—80)把汉字分成()。
—Theradiosaysitwillberainingtomorrow.—I’llstayathomeifit______.
最新回复
(
0
)