某程序将计算结果输出到一个有格式顺序文件中,文件名为AA.DAT,设备通道号为3,打开这个文件的语句是:()A、OPEN(UNIT=3,FILE=AA.DAT,STATUS=NEW)B、B.OPEN(UNIT=3,FILE=ADAT,STATUS=OLD.C、C.OPEN(3,FILE=′ADAT′,STATUS=′NEW′)D、D.OPEN(D,FILE=′ADAT′,STATUS=′OLD′)

某程序将计算结果输出到一个有格式顺序文件中,文件名为AA.DAT,设备通道号为3,打开这个文件的语句是:()

  • A、OPEN(UNIT=3,FILE=AA.DAT,STATUS=NEW)
  • B、B.OPEN(UNIT=3,FILE=ADAT,STATUS=OLD.
  • C、C.OPEN(3,FILE=′ADAT′,STATUS=′NEW′)
  • D、D.OPEN(D,FILE=′ADAT′,STATUS=′OLD′)

相关考题:

若磁盘上已存在某个文本文件,其全路径文件名为 d:\ncre\test.txt ,下列语句中不 能打开该文件的是A . ifstream file("d:\ncre\test.txt") ;B . ifstream file("d:\ncre\test.txt");C . ifstream file; file.open("d:\ncre\test.txt");D . ifstream* pFile=new ifstream("d:\ncre\test.txt");

下面创建一个新文件对象方法错误的是( )。A.File myFile; myFile=new File("mulu/file");B.File myFile=new File();C.myFile=new FileC/mulu","filel");D.File myDir=new file("/mulu"); myFile=new File(Dir, "filer');

( 16 )要建立文件流并打开当前目录下的文件 file.dat 用于输入,下列语句中错误的是A ) ifstream fin=ifstream.open ( "file.dat" ) ;B ) ifstream*fir.=new ifstream ( "file.dat" ) ;C ) ifstream fin; fin.open ( "file.dat" ) ;D ) ifstream *fin=new ifstream ( ) ; fin 一 open ( "file.dat" ) ;

执行下列命令后,当前打开的表文件名是()Number=“3”File= “file”+Numberuse&File A、File3B、&FileC、FileNumberD、File

在当前文件夹中生成一个名为Filel.txt的文件,在D盘里生成一个名为mydir的文件夹,并在该文件夹中生成一个名为File2.txt的文件,最后输出文件File2.txt的完整路径。修改下列程序中的错误之处,使程序能够正确运行。注意:不改动程序结构,不得增行或删行。import java.io.*;public class FileTest{public static void main(String args[]){File dirObject=new File(d:\\mydir);File fileObjectl=new File(d:\\kmydir","Filel.txt");File fileObject2=new File(d:/mydir","File2.txt");System.out.println(fileObject2);try{Dirobject.mkdir();}catch(SecurityException e){}try{fileObject1.createNewFile();fileObject2.createNewFile();}catch(I0Exception e){}}}

下面程序的运算结果是()。includeusing namespace std;class A{public:virtual void f 下面程序的运算结果是( )。 #include<iostream> using namespace std; class A { public: virtual void fun()=0; }; class B:public A } public: void fun() {cout<<"new file"<<" ";} }; class C:public A { public: void fun() { cout<<"open file"<<" ";} }; void main() { A a, * p; B b;C c; p=c; p->fun(); p=b; }A.new file open fileB.new file new fileC.编译出错D.open file new file

若磁盘上已存全路径文件名为c:\ctest\test.txt的文件,下面语句中不能打开该文件的是( )。A.ifstream *pFile=new ifstream("c:\\ctest\\test.txt");B.ifstream file("c:\\ctest\\test.txt");C.ifstream file;file.open("c:\\ctest\\test.txt");D.ifstream file("c:\etest\test.txt");

要建立文件流并打开当前目录下的文件6le.dat用于输入,下列语句中错误的是( )。A.ifstream fin=ffstream.open(”file.dat”);B.ifstream*fin=new ifstream(”file.dat”);C.ifstream fin;fin.open(”file.dat”);D.ifstream*fin=new ifstream;fin-open(”file.dat”);

若磁盘上已存在某个文本文件,其全路径文件名为d:\ncre\test.txt,下列语句中不能打开该文件的是A.ifstream file("d:\ncre\test.txt");B.ifstream file("d:\\ncre\\test.txt");C.ifstream file;file.open("d:\\ncre\\test.txt");D.ifstream* pFile=new ifstream("d:\\ncre\\test.txt");

执行下列命令后,当前打开的数据库文件名是Number="3"File="File"+NumberUSEFileA.File3B.FileA.File3B.FileC.FileNumberD.File

下面程序的结果是 ______。includeclass A{ public:virtual voidfun()=0{};};class 下面程序的结果是 ______。 #include<iostream.h> class A{ public: virtual void fun()=0{}; }; class B:public A{ public: void fun () {cout<< "new file" ;} }; class C: public A{ public: void fun (){cout<<"open file"<< " " } }; class D: public A{ public: void fun () {cout<< "save file\n" ;} }; void main() { A a,*p; B b; C c; D d; p=c; p->fun (); p=b; p->fun (); p=d; p->fun(); }A.new file open file save fileB.new file new file new fileC.编译出错D.open file new file save file

在UNIX系统中,若文件File3的权限是414,则表示A.文件属主可执行File3B.文件属主可读File3C.同组用户可读File3D.同组用户可执行File3E.其他用户可读File3

阅读FORTRAN程序:OPEN(8,FILE=FILE2 DAT,STATUS=NEW)DO 10 I=1,3WEITE(8,(4I4)JI+I,J=1,4)10 CONTINUECLOSE(8)END程序运行后,数据文件FILE2,DAT的内容是:

阅读FORTAN程序:OPEN(8,FILE=FILE2.DAT,STATUS:NEW)DO10I=1>3WRITE(8,(4I4))(J+I,J=1,4)10CONTINUECLOSEC8)END程序运行后,数据文件FIFE2.DAT的内容是:

建立新图形文件,用过下拉式菜单的操作方式是()A、File(文件)/OPEN(打开)B、File(文件)/Save(存盘)C、File(文件)/SaveAS(另存为)D、File(文件)/New(新建)

欲新建一个电路原理图文件应该执行()操作。A、File/New/SchematicB、File/New/PCBC、File/New/SchematicLibraryD、File/New/PCBLibrary

在Visual Foxpro环境下,执行下列命令: Number=""3"" File=""file""+Number useFile 当前打开的表文件的主文件名是()A、File3B、FileC、FileNumberD、File

创建一个向文件“file.txt”追加内容的输出流对象的语句有()。A、FileOutputStream out=new FileOutputStream(“file.txt”,true);B、OutputStream out=new FileOutputStream(“file.txt”,“append”);C、OutputStream out=new FileOutputStream(“file.txt”);D、FileOutputStream out=new FileOutputStream(new file(“file.txt”));E、OutputStream out=new FileOutputStream(new File(“file.txt”),true.;

对OPEN(4,FILE=‘BB.DAT’,STATUS=‘OLD’,语句,下面哪个描述是正确的()?A、打开一个有格式顺序文件,可以读文件B、打开一个有格式直接文件,可以写文件C、打开一个有格式直接文件,可以读写D、打开一个直接文件

An application writes to a log file in the /logs filesystem that is full. After the log file is deleted, 'df' still shows the filesystem as 100% full. What is the likely cause of the problem and what will resolve it?()A、The deleted file is still open by the application.The system must be rebooted before'df' will show the reduction in the filesystem.B、The deleted file is still open by the application.The application must be stoppedbefore 'df' will show the reduction in the filesystem.C、The filesystem is still marked as full in the /etc/fs.status file.The system must be rebooted before 'df' will show the reduction in the filesystem.D、The filesystem is still marked as full in the /etc/fs.status file.The application must be stopped before 'df' will show the reduction in the filesystem.

要对顺序文件进行写操作,下列打开文件语句中正确的是()A、Open“file1.txt”ForBinaryAs#1B、Open“file1.txt”ForRandomAs#1C、Open“file1.txt”ForInputAs#1D、Open“file1.txt”ForOutputAs#1

When issuing the CROSSCHECK command in RMAN, if a backup file CANNOT be found, to what status is that file set?()A、DELETEDB、OBSOLETEC、EXPIREDD、UNKNOWN

单选题对OPEN(4,FILE=‘BB.DAT’,STATUS=‘OLD’,语句,下面哪个描述是正确的()?A打开一个有格式顺序文件,可以读文件B打开一个有格式直接文件,可以写文件C打开一个有格式直接文件,可以读写D打开一个直接文件

单选题要建立文件流并打开当前目录下的文件file.dat用于输入,下列语句中错误的是(  )。Aifstream fin=ifstream.open(“file.dat”);Bifstream* fin=new ifstream(“file.dat”);Cifstream fin; fin.open(“file.dat”);Difstream* fin=new ifstream(); fin-open(“file.dat”);

单选题某程序将计算结果输出到一个有格式顺序文件中,文件名为AA.DAT,设备通道号为3,打开这个文件的语句是:()AOPEN(UNIT=3,FILE=AA.DAT,STATUS=NEW)BB.OPEN(UNIT=3,FILE=ADAT,STATUS=OLD.CC.OPEN(3,FILE=′ADAT′,STATUS=′NEW′)DD.OPEN(D,FILE=′ADAT′,STATUS=′OLD′)

多选题创建一个向文件“file.txt”追加内容的输出流对象的语句有()。AFileOutputStream out=new FileOutputStream(“file.txt”,true);BOutputStream out=new FileOutputStream(“file.txt”,“append”);COutputStream out=new FileOutputStream(“file.txt”);DFileOutputStream out=new FileOutputStream(new file(“file.txt”));EOutputStream out=new FileOutputStream(new File(“file.txt”),true.;

单选题语句OPEN(9,FILE=‘DATA.TXT’)打开的是()文件。A无格式顺序B有格式顺序C无格式直接D有格式直接