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

对OPEN(4,FILE=‘BB.DAT’,STATUS=‘OLD’,语句,下面哪个描述是正确的()?

  • A、打开一个有格式顺序文件,可以读文件
  • B、打开一个有格式直接文件,可以写文件
  • C、打开一个有格式直接文件,可以读写
  • D、打开一个直接文件

相关考题:

( 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" ) ;

下面关于文件操作的代码可能触发异常()file, err := os.Open("test.go")defer file.Close()if err != nil { fmt.Println("open file failed:", err) return}... 此题为判断题(对,错)。

下面哪种方法读文件“input.txt”是正确的()。 A、in_file = open('input.txt','w')B、in_file = open('input.txt',r)C、in_file = open('input.txt','r')D、都不正确

有以下程序: include include include intmain() {fstreamfil 有以下程序:include <iostream.h>include <fstream.h>include <stdlib.h>int main(){fstream filel,file2;char line[100];filel.open("source.txt",ios::in);if(!file1){cout<<"Can't open file source.txt!"<<end1;abort();}file2.open("dest.txt",ios::out);if(!file2){cout<<"Can't open file dest.txt!"<<end1;abort();}while(!file1.eof()){filel.getline(1ine,100);file2<<line;file2<<end1;}filel.close();file2.close();return 0;}此程序实现的功能是【 】。

要建立文件流并打开当前目录下的文件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”);

下列可以打开随机文件的语句是( )。A.Open"file 1.dat"For Input As#1B.Open"file1.dat"For Append As#1C.Open"file1.dat"For Output As#1D.Open"file1.dat"For Randow As#1 Len=20

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

阅读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的内容是:

下面哪个函数可以打开一个文件,以对文件进行读和写操作?()A、fget()B、file_open()C、fopen()D、open_file()

某程序将计算结果输出到一个有格式顺序文件中,文件名为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′)

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.

下列那块单板不支持AU的线路环回?A、OL64LB、OL16AC、OL4LY4D、OL4LY2

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

You have a read-only tablespace on read-only media. You want to perform a media recovery on the existing data files, but using a backup control file. The backup control file indicates that the status of the read-only tablespace was read/write when the control file was backed up. What should you consider?()A、 take data files from the read-only tablespace offline before performing a recoveryB、 recovery using backup control file is not possible, so restore all the files from the last full database backup, and then open the databaseC、 drop the read-only tablespace and re-create the tablespace after recoveryD、 perform a recovery; status of the tablespace in control file will be changed automatically

You realize that the control file is damaged in your production database.After restoring the control file from autobackup, what is the next step that you must do to proceed with the database recovery?()A、Mount the databaseB、Open the database in NORMAL modeC、Open the database in RESTRICTED modeD、Open the database with the RESETLOGS option

The listener has shut down unexpectedly. You want to view the listener log file and listener trace file to find the cause of the problem. How can you view the contents of the listener log file and the listener trace file?()A、 Open the file at the location specified by the BACKGROUND_DUMP_DEST parameter in the pfile.B、 Open the file at the location specified by the USER_DUMP_DEST parameter in the pfile.C、 Issue the SERVICES command at the LSNRCTL prompt.D、 Issue the STATUS command at the LSNRCTL prompt.

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

You have a computer that runs Windows 7. You mark a folder as Always available offline. You need to verifythat an offline copy of the folder has been created on the computer.  What should you do?()A、Open Sync Center and review the status.B、Open Action Center and review any messages or issues.C、Open Windows Mobile Device Center and review the status.D、Open Network and Sharing Center and review the status for the local area connection.

单选题You have a read-only tablespace on read-only media. You want to perform a media recovery on the existing data files, but using a backup control file. The backup control file indicates that the status of the read-only tablespace was read/write when the control file was backed up. What should you consider?()A take data files from the read-only tablespace offline before performing a recoveryB recovery using backup control file is not possible, so restore all the files from the last full database backup, and then open the databaseC drop the read-only tablespace and re-create the tablespace after recoveryD perform a recovery; status of the tablespace in control file will be changed automatically

单选题要建立文件流并打开当前目录下的文件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”);

单选题Your production database is running in archivelog mode and you are using recovery manager (RMAN) with recovery catalog to perform the database backup at regular intervals. When you attempt to restart the database instance after a regular maintenance task on Sunday, the database fails to open displaying the message that the data file belonging to the users tablespace are corrupted. The steps to recover the damaged data files are follows: 1. Mount the database 2. Open the database 3. Recover the data file 4. Restore the data file 5. Make the data file offline 6. Make the data file online Which option identifies the correct sequence that you must use to recover the data files?()A2,4,3B1,4,3,2C2,5,4,3,6D5,2,4,3,6E1,5,4,3,6,2

单选题有程序:ADD(X,Y)=X**2+YOPEN(8,FILE=‘F’,STATUS=‘NEW’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTED’,REAL=16DO10I=1,4D=ADD(REAL(I),2、0)WRITE(8,REC=I)D10CONTINUECLOSE(8)OPEN(2,FILE=‘F’,STATUS=‘OLD’,ACCESS=‘DIRECT’,*FORM=‘UNFORMATTFED’,REAL=6DO20I=2,4,2READ(2,REC=I)CWRITE(*,30)C20CONTINUE20FORMAT(1x,F4.1)CLOSE(2)END执行此程序的结果是:()A3.0;11.0B6.0;11.0C6.0;18.0D11.0;18.0

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

单选题Adam is working as a Database Administrator (DBA) for TeleSoft Corporation. His database is running in the ARCHIVELOG mode. During database startup, he discovers that one of the disks crashed, resulting in the permanent loss of a read-write USERS tablespace. The USERS01.dbf datafile belongs to the USERS tablespace and is 500 MB in size. He needs to recover the USERS tablespace from the backup. While reviewing the backup details, he discovers that the most recent available backup is five days old. This backup was taken when the USERS tablespace was read-only. After correcting the hardware problem that caused the failure, what should Adam do to recover the USERS tablespace?()A Restore the USERS01.dbf file from the backup, and open the database using the STARTUP command.B Restore the USERS01.dbf file using the RECOVER TABLESPACE command, and open the database using the ALTER DATABASE OPEN statement.C Restore the USERS01.dbf file from the backup, recover the USERS tablespace using the RECOVER TABLESPACE command, and open the database using the ALTER DATABASE OPEN statement.D Restore the USERS01.dbf file from the backup and change the status of the USERS tablespace from read-only to read-write using the ALTER TABLESPACE USERS READ WRITE statement. Then, recover the USERS tablespace using the RECOVER TABLESPACE command, and open the database using the ALTER DATABASE OPEN statement.

单选题某程序将计算结果输出到一个有格式顺序文件中,文件名为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′)

单选题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?()AThe deleted file is still open by the application.The system must be rebooted before'df' will show the reduction in the filesystem.BThe deleted file is still open by the application.The application must be stoppedbefore 'df' will show the reduction in the filesystem.CThe 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.DThe 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.

单选题The listener has shut down unexpectedly. You want to view the listener log file and listener trace file to find the cause of the problem. How can you view the contents of the listener log file and the listener trace file?()A Open the file at the location specified by the BACKGROUND_DUMP_DEST parameter in the pfile.B Open the file at the location specified by the USER_DUMP_DEST parameter in the pfile.C Issue the SERVICES command at the LSNRCTL prompt.D Issue the STATUS command at the LSNRCTL prompt.