首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面语句中能够打开随机文件的是
下面语句中能够打开随机文件的是
admin
2018-10-18
20
问题
下面语句中能够打开随机文件的是
选项
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/iWFp777K
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
文本框Text1的KeyDown事件过程如下:PrivateSubText1_KeyDown(KeyCodeAsInteger,ShiftAsInteger)……EndSub其中参数KeyCode的值表示的是发
以下关于控件数组的叙述中,正确的是()。
有如下语句序列:Dima,bAsIntegerPrintaPrintb执行以上语句序列,下列叙述中错误的是()。
在窗体上画一个文本框,名称为Text1,然后编写如下程序:PrivateSubForm_Load()ShowText1.Text=""Text1.SetFocusEndSub
对长度为n的线性表作快速排序,在最坏情况下,比较次数为()。
要计算x的平方根并放入变量y,正确的语句是( )。
下面关于标准模块的叙述中错误的是( )。
A、选择B、投影C、自然连接D、并A由关系R到关系S为一元运算,排除C和D。关系S是关系R的一部分,是通过选择之后的结果,因此选A。
对长度为10的线性表进行冒泡排序,最坏情况下需要比较的次数为
下列说法中,错误的是( )。
随机试题
行政立法除应遵循我国立法的一般原则外,还应遵循以下几项特殊原则
1912年3月颁布的《中华民国临时约法》规定:“中华民国之主权,属于国民全体。”这句话从根本上颠覆了以下观念中的()。
刻录机主要功能是将大量的()刻录CD—R或者CD—RW上,在信息量如此巨大的当今时代,光盘的容量巨大、保存性能良好且成本低廉,无疑是用户保存信息的最好选择。
在UNIX系统中,对中断事件和异常情况的处理过程有什么区别?
龋病病因现代概念正确的是
FIDIC合同条件规定,监理工程师在费用管理方面权利有()。
霍华德提出的田园城市的图解方案的核心是()。
特莱维萨电视公司
在面向对象模型中,每一个对象是状态和______的封装。
Foryears,doctorshavegivencancerpatientsthreemaintreatments:surgery,radiationandchemotherapy.Nowresearchersared
最新回复
(
0
)