首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面语句中能够打开随机文件的是
下面语句中能够打开随机文件的是
admin
2020-01-02
23
问题
下面语句中能够打开随机文件的是
选项
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://jikaoti.com/ti/L5x0FFFM
本试题收录于:
二级VB题库NCRE全国计算机二级分类
0
二级VB
NCRE全国计算机二级
相关试题推荐
(1)在名称为Form1的窗体上添加一个计时器控件,名称为Timerl。请利用属性窗口设置适当属性,使得在运行时可以每隔1秒,调用计时器的Timer事件过程一次。另外,请把窗体的标题设置为“题目2”。设计阶段的窗体如图3.73所示。(2)在名称为
在考生文件夹下有一个工程文件sjt5.vbp,相应的窗体文件为sjl5.frm。窗体上三个命令按钮的名称分别是Command1、Command2和Cornmand3,标题分别是“显示”、“统计”和“保存”。运行程序时,单击“显示”按钮,从文件in5.txt
(1)在考生文件夹下有一个工程文件vbsj3.vbp,相应的窗体文件名为vbsj3.frm。在窗体上有一个命令按钮,其名称为cmdAdd,标题为“添加”;有一个文本框,名称为txtSentense,初始内容为空白;有一个列表框,名称为lstWord。程序运
在考生文件夹下有一个工程文件sjt5.vbp,窗体如图3—82所示。运行程序时,从数据文件中读取学生的成绩(均为整数)。要求编写程序,统计总人数,并统计不及格、60~69、70~79、80~89及90~100各分数段的人数,将统计结果显示在相应的文本框中。
在考生文件夹下有一个工程文件sjt5.vbp,窗体上有2个标题分别是“读数据”和“查找质数”的命令按钮。请画1个名称为Text1、初始值为空的文本框,该文本框允许显示多行内容,且有垂直滚动条,如图3—36所示。程序功能:(1)考生文件
请根据以下各小题的要求设计VisualBasic应用程序(包括界面和代码)。(1)在名称为Form1的窗体上画一个文本框,其名称为T1,宽度和高度分别为1400、400;再画两个命令按钮,其名称分别为C1和C2,标题分别为“显示”和“扩大”,编
下列工具中,不属于结构化分析的常用工具的是()。
设在名称为MyForm的窗体上只有1个名称为C1的命令按钮,下面叙述正确的是
表达式Sgn(0.25)的值是
对软件设计中应遵循的准则描述正确的是()。
随机试题
减水剂只能改善新拌混凝土的工作性,对其他方面的性能没有贡献。()
已知某工程双代号网络计划的计算工期为130天。如果计划工期为135天,则关键线路上()。
下列不属于狭义的银行信贷的是()。
从世界范围内看,财政支出规模的变化趋势是()。
在其他条件不变的情况下,普通股市价提高,一定会导致认股权证理论价值提高。( )
光华公司总经理认为,对管理人员评价的核心应放在行为管理,而不仅是考察指标完成了多少,销售额达到多少,利润率是多少。在光华公司对管理人员一般从六个方面采取综合素质的考评,这六个方面分别是:战略力、应变能力、协调配合力、团队精神、全局观、学习力与创新力。运
古希腊哲学家克拉底鲁认为,万物只是一种不可名状的“旋风”,瞬息万变。他拒绝给事物以名称,主张对事物“什么也不能说”。其错误在于()。
从所给的四个选项中,选择最合适的一个填入问号处,使下图中的立体图形①、②、③和④可组成一个完整的长方体。
某公安局督察机构在督察过程中发现一名民警有涉嫌职务犯罪的行为。该督察机构对其应当()。
Readthefollowingtextanddecidewhichanswerbestfitseachspace.Forquestions26-45,markoneletterA,B,CorDony
最新回复
(
0
)