单选题Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()ACompilation fails.BNothing is added to the file system.COnly a new file is created on th

题目
单选题
Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()
A

Compilation fails.

B

Nothing is added to the file system.

C

Only a new file is created on the file system.

D

Only a new directory is created on the file system.

E

Both a new file and a new directory are created on the file system.


相似考题
参考答案和解析
正确答案: E
解析: 暂无解析
更多“单选题Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()A Compilation fails.B Nothing is added to the file system.C Only a new file is created”相关问题
  • 第1题:

    Which of the following statements is TRUE about mounting a file system?()

    A.A file system cannot be mounted on a directory containing data.

    B.Mounting a file system on a mount point containing data will delete the data.

    C.Mounting a file system on a amount point containing data will make the data temporarily inaccessible.

    D.A systems administrator must manually create an empty directory prior to mounting an AIX JFS.


    参考答案:C

  • 第2题:

    Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()  

    • A、FileOutputStream has no constructors matching the given arguments.
    • B、An IOExeception will be thrown if a file named "data" already exists.
    • C、An IOExeception will be thrown if a file named "data" does not already exist.
    • D、If a file named "data" exists, its contents will be reset and overwritten.
    • E、If a file named "data" exists, output will be appended to its current contents.

    正确答案:E

  • 第3题:

    A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()

    • A、 dump -t core 
    • B、 strings core 
    • C、 trace -a core 
    • D、 crash core /unix_up

    正确答案:B

  • 第4题:

    Given a portion of a valid Java EE web application’s directory structure:MyApp | |--Directory1 ||--File1.html| |--META-INF|  |--File2.html| |--WEB-INF |--File3.html You want to know whether File1.html, File2.html,and/or File3.html is protected from direct access by yourweb client’s browsers. What statement is true?()

    • A、All three files are directly accessible.
    • B、Only File1.html is directly accessible.
    • C、Only File2.html is directly accessible.
    • D、Only File3.html is directly accessible.

    正确答案:B

  • 第5题:

    10. class MakeFile {  11. public static void main(String[] args) {  12. try {  13. File directory = new File(”d”);  14. File file = new File(directory,”f”);  15. if(!file.exists()) {  16. file.createNewFile();  17. }  18. } catch (IOException e) {  19. e.printStackTrace  20. }  21. }  22. }  The current directory does NOT contain a directory named “d.” Which three are true?()

    • A、 Line 16 is never executed.
    • B、 An exception is thrown at runtime.
    • C、 Line 13 creates a File object named “d”.
    • D、 Line 14 creates a File object named “f‟.
    • E、 Line 13 creates a directory named “d” in the file system.
    • F、 Line 16 creates a directory named “d” and a file  “f”  within it in the file system.
    • G、 Line 14 creates a file named "f " inside of the directory named “d” in the file system.

    正确答案:B,C,D

  • 第6题:

    Examine the following command; ALTER SYSTEM SET enable_ddl_logging = TRUE; Which statement is true?()

    • A、Only the data definition language (DDL) commands that resulted in errors are logged in the alert log file.
    • B、All DDL commands are logged in the alert log file.
    • C、All DDL commands are logged in a different log file that contains DDL statements and their execution dates.
    • D、Only DDL commands that resulted in the creation of new segments are logged.
    • E、All DDL commands are logged in XML format in the alert directory under the Automatic Diagnostic Repository (ADR) home.

    正确答案:B

  • 第7题:

    In which of the following scenarios is a tablespace recovery required?()

    • A、 when recovering a lost read-only tablespace from a read-only tablespace backup
    • B、 when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  ARCHIVELOG mode
    • C、 when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  NOARCHIVELOG mode and the changes in the online redo log files have been overwritten
    • D、 when recovering a lost read-only tablespace from a read-only tablespace backup using the backup of the control file, the control file was created using the ALTER DATABASE BACKUP CONTROLFILE TO TRACE statement, and this statement was issued when the tablespace was read-only

    正确答案:B

  • 第8题:

    单选题
    A file named "core" exists in the current directory.  Which of the following commands should be used to determine what created the "core" file?()
    A

     dump -t core 

    B

     strings core 

    C

     trace -a core 

    D

     crash core /unix_up


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    Which determines if “prefs” is a directory and exists on the file system?()
    A

     Boolean exists=Directory.exists (“prefs”);

    B

     Boolean exists=(new File(“prefs”)).isDir();

    C

     Boolean exists=(new Directory(“prefs”)).exists();

    D

     Boolean exists=(new File(“prefs”)).isDirectory();

    E

     Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    Given that the current directory is empty, and that the user has read and write privileges to the current directory, and the following: Which statement is true?()
    A

    Compilation fails.

    B

    Nothing is added to the file system.

    C

    Only a new file is created on the file system.

    D

    Only a new directory is created on the file system.

    E

    Both a new file and a new directory are created on the file system.


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    In which of the following scenarios is a tablespace recovery required?()
    A

     when recovering a lost read-only tablespace from a read-only tablespace backup

    B

     when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  ARCHIVELOG mode

    C

     when recovering a lost read-only tablespace from a read-write tablespace backup when the database is running in  NOARCHIVELOG mode and the changes in the online redo log files have been overwritten

    D

     when recovering a lost read-only tablespace from a read-only tablespace backup using the backup of the control file, the control file was created using the ALTER DATABASE BACKUP CONTROLFILE TO TRACE statement, and this statement was issued when the tablespace was read-only


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()
    A

    FileOutputStream has no constructors matching the given arguments.

    B

    An IOExeception will be thrown if a file named data already exists.

    C

    An IOExeception will be thrown if a file named data does not already exist.

    D

    If a file named data exists, its contents will be reset and overwritten.

    E

    If a file named data exists, output will be appended to its current contents.


    正确答案: A
    解析: 暂无解析

  • 第13题:

    Given a portion of a valid Java EE web application’s directory structure: MyApp | |-- File1.html | |-- Directory1 ||-- File2.html| |-- META-INF |-- File3.html You want to know whether File1.html, File2.html, and/or File3.html will be directly accessible by your webclient’s browsers. Which statement is true?()

    • A、All three files are directly accessible.
    • B、Only File1.html is directly accessible.
    • C、Only File2.html is directly accessible.
    • D、Only File3.html is directly accessible.
    • E、Only File1.html and File2.html are directly accessible.

    正确答案:E

  • 第14题:

    A user is attempting to access files shared on a remote computer. The file share permissions allow the user to have full control; however, the NTFS permissions allow the user to have read access. Which of the following is the user’s resulting access level for the remotely shared directory?()

    • A、Modify
    • B、Full control
    • C、Write
    • D、Read

    正确答案:D

  • 第15题:

    Which determines if “prefs” is a directory and exists on the file system?()  

    • A、 Boolean exists=Directory.exists (“prefs”);
    • B、 Boolean exists=(new File(“prefs”)).isDir();
    • C、 Boolean exists=(new Directory(“prefs”)).exists();
    • D、 Boolean exists=(new File(“prefs”)).isDirectory();
    • E、 Boolean exists=true;  Try{  Directory d = new Directory(“prefs”);  } catch (FileNotFoundException e) {  exists = false;  }

    正确答案:D

  • 第16题:

    Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()  

    • A、Vector filelist = ((Directory) file).getList();
    • B、String[] filelist = file.directory();
    • C、Enumeration filelist = file.contents();
    • D、String[] filelist = file.list();
    • E、Vector filelist = (new Directory(file)).files();

    正确答案:D

  • 第17题:

    Examine the following command:ALTER SYSTEM SET enable_ddl_logging=FALSE;Which statement is true?()

    • A、None of the data definition language (DDL) statements are logged in the trace file.
    • B、Only DDL commands that resulted in errors are logged in the alert log file.
    • C、A new log.xml file that contains the DDL statements is created, and the DDL command details are removed from the alert log file.
    • D、Only DDL commands that resulted in the creation of new database files are logged.

    正确答案:A

  • 第18题:

    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()

    • A、If the compile is successful, Utils.class is added to the source directory.
    • B、The compiler returns an invalid flag error.
    • C、If the compile is successful, Utils.class is added to the classes directory.
    • D、If the compile is successful, Utils.class is added to the bigProject directory.

    正确答案:C

  • 第19题:

    In which scenario will you issue the following command?()      SQL> RECOVER DATABASE UNTIL TIME ’2005-10-04 : 12:09:08’ USING        BACKUP CONTROLFILE;

    • A、 when all the control files are missing and only a binary backup of the current control file exists
    • B、 when a multiplexed copy of the current control file is missing
    • C、when all the control files are missing and only a script containing the CREATE CONTROLFILE statement exists
    • D、 when the SPFILE is missing

    正确答案:A

  • 第20题:

    单选题
    In which scenario will you issue the following command?()      SQL> RECOVER DATABASE UNTIL TIME ’2005-10-04 : 12:09:08’ USING        BACKUP CONTROLFILE;
    A

     when all the control files are missing and only a binary backup of the current control file exists

    B

     when a multiplexed copy of the current control file is missing

    C

    when all the control files are missing and only a script containing the CREATE CONTROLFILE statement exists

    D

     when the SPFILE is missing


    正确答案: D
    解析: 暂无解析

  • 第21题:

    单选题
    Given the following directory structure: bigProject |--source ||--Utils.java| |--classes |-- And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject,what is the result?()
    A

    If the compile is successful, Utils.class is added to the source directory.

    B

    The compiler returns an invalid flag error.

    C

    If the compile is successful, Utils.class is added to the classes directory.

    D

    If the compile is successful, Utils.class is added to the bigProject directory.


    正确答案: D
    解析: 暂无解析

  • 第22题:

    单选题
    A user is attempting to access files shared on a remote computer. The file share permissions allow the user to have full control; however, the NTFS permissions allow the user to have read access. Which of the following is the user’s resulting access level for the remotely shared directory?()
    A

    Modify

    B

    Full control

    C

    Write

    D

    Read


    正确答案: D
    解析: 暂无解析

  • 第23题:

    单选题
    Which of the following statements is TRUE about mounting a file system?()
    A

    A file system cannot be mounted on a directory containing data.

    B

    Mounting a file system on a mount point containing data will delete the data.

    C

    Mounting a file system on a amount point containing data will make the data temporarily inaccessible.

    D

    A systems administrator must manually create an empty directory prior to mounting an AIX JFS.


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()
    A

    Vector filelist = ((Directory) file).getList();

    B

    String[] filelist = file.directory();

    C

    Enumeration filelist = file.contents();

    D

    String[] filelist = file.list();

    E

    Vector filelist = (new Directory(file)).files();


    正确答案: E
    解析: 暂无解析