考题
当文件被打开后会有个file对象,用户可以通过该对象得到关于该文件的各种信息。下列选项中,和File对象相关的属性描述错误的是?()
A.file.softspace,如果用print输出后必须跟一个空格符,则返回true,否则返回falseB.file.name,返回文件的名称C.file.closed,返回true如果文件已被关闭,否则返回falseD.file.mode,返回被打开文件的访问模式
考题
YoucreateaWebpagethatcontainsthefollowingcode.Youneedtoprovidethefollowingimplementation.EachtimetheAddFilebuttonisclicked,anewdivelementiscreated.ThenewdivelementisappendedaftertheotherfileuploaddivelementsandbeforetheAddFilespan.Eachnewelementhasauniqueidentifier.Whichcodesegmentshouldyouuse?()A.$(#AddFile).click(function(){varid=File+++lastId;varitem=$(.File:first).clone(true);$(input:file,item).attr({id:id,name:id});item.insertBefore(#AddFile);});B.$(#AddFile).click(function(){varid=File+++lastId;$(.File:first).clone(true).attr({id:id,name:id}).insertBefore(#AddFile);});C.$(#AddFile).click(function(){varid=File+++lastId;});D.$(#AddFile).click(function(){varid=File+++lastId;varitem=$(.File:first).clone(true);$(input:file,item).attr({id:id,name:id});item.insertAfter(input[type=file]);});
考题
WhichtwoconstructanOutputSreamthatappendstothefile“file.txt”?()
A.OutputStreamout=newFileOutputStream(“file.txt”);B.OutputStreamout=newFileOutputStream(“file.txt”,“append”);C.FileOutputStreamout=newFileOutputStream(“file.txt”,true);D.FileOutputStreamout=newFileOutputStream(newfile(“file.txt”));E.OutputStreamout=newFileOutputStream(newFile(“file.txt”)true);
考题
Whatwritesthetext“”totheendofthefile“file.txt”?()
A.OutputStreamout=newFileOutputStream(“file.txt”); Out.writeBytes(“/n”);B.OutputStreamos=newFileOutputStream(“file.txt”,true); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);C.OutputStreamos=newFileOutputStream(“file.txt”); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);D.OutputStreamos=newOutputStream(“file.txt”,true); DataOutputStreamout=newDataOutputStream(os);out.writeBytes(“/n”);
考题
Youdecidedtoconfiguretheflashrecoveryareainyourdatabasetocentralizethestorageofalltherecoveryfilesinacertainlocationondisk.Whichtwoparameterswillyouspecifyintheinit.orafile?()
A.DB_CREATE_FILE_DESTB.DB_RECOVERY_FILE_DESTC.DB_RECOVERY_FILE_DEST_SIZED.DB_ONLINE_LOG_DEST_n
考题
YouareworkingasaDBAinanorganization.Theflashrecoveryareafilesarecreatedin’+disk1’.Youwanttocreatenewflashrecoveryareafilesinthe’+disk2’location.Thenewlocationoftheflashrecoveryareafilesshouldbewritteninthecontrolfileandthespfile.Whichcommandwillyouissuetochangethelocationoftheflashrecoveryareafiles?()A.ALTERSYSTEMSETDB_RECOVERY_FILE_DEST=’+disk2’;B.ALTERSYSTEMSETDB_RECOVER_FILE_DEST=’+disk2’SCOPE=BOTH;C.ALTERSYSTEMSETDB_CREATE_FILE_DEST=’+disk2’;D.ALTERSYSTEMSETDB_CREATE_ONLINE_LOG_DEST_n=’+disk2’;
考题
YouaremanaginganOracleDatabase10gdatabasethatusesOracleManagedFiles(OMF).Youenabledtheblockchangetrackingfeatureforthedatabase.Whichstatementregardingthechangetrackingfileistrue?()
A.Oneblockchangetrackingfileiscreatedforeachdatafile.Bydefault,thefileiscreatedinDB_CREATE_FILE_DEST.B.Oneblockchangetrackingfileiscreatedforeachdatafile.Bydefault,thefileiscreatedinBACKGROUND_DUMP_DEST.C.Oneblockchangetrackingfileiscreatedforthedatabase.Bydefault,thefileiscreatedinDB_CREATE_FILE_DEST.D.Oneblockchangetrackingfileiscreatedforthedatabase.Bydefault,thefileiscreatedinBACKGROUND_DUMP_DEST.
考题
Examinethefollowingparametersettingsfromaninitialization(init.ora)file:DB_CREATE_FILE_DEST=’/u01/oradata/’DB_CREATE_ONLINE_LOG_DEST_1=’/u02/oradata/’DB_CREATE_ONLINE_LOG_DEST_2=’/u03/oradata/’IfyoucreateanOracleManagedFiles(OMF)databaseusingthesesettings,whatistheresult?()A.AB.BC.CD.D
考题
下面能完成一次性创建名字分别为file01、file02、file03、file04、file05、file06、file07、file08、file09、file10十个空文件的命令是()。A.touch file01 file02 file03 file04 file05 file06 file07 file08 file09 file10#B.touch file{01..10}#C.touch {file01..file10}#D.touch file{001..10}
考题
17、下面哪些选项能够创建一个OutputStream流,并且可以将内容附加到“file.txt”文件中?()A.OutputStream out=new FileOutputStream(“file.txt”);B.OutputStream out=new FileOutputStream(“file.txt”,”append”);C.FileOutputStream out=new FileOutputStream(“file.txt”,true);D.FileOutputStream out=new FileOutputStream(“file.txt”);