itgle.com

单选题Which of the following will occur if an operator types the command vi file.out?()A If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B If the file exists it will be opened for editing. If th

题目
单选题
Which of the following will occur if an operator types the command vi file.out?()
A

If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.

B

If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.

C

If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.

D

If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.


相似考题
更多“单选题Which of the following will occur if an operator types the command vi file.out?()A If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.B If the file exists it will be opened for editing. If th”相关问题
  • 第1题:

    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

  • 第2题:

    Which of the following will occur if an operator types the command vi file.out?()

    • A、If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.
    • B、If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.
    • C、If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.
    • D、If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.

    正确答案:B

  • 第3题:

    The file “file.txt” exists on the file system and contsins ASCII text.  Given:   try {   File f = new File(“file.txt”);    OutputStream out = new FileOutputStream(f, true);   }    catch (IOException) {}   What is the result?()

    • A、 The code does not compile.
    • B、 The code runs and no change is made to the file.
    • C、 The code runs and sets the length of the file to 0.
    • D、 An exception is thrown because the file is not closed.
    • E、 The code runs and deletes the file from the file system.

    正确答案:A

  • 第4题:

    You work as a database administrator for Certkiller .com. Your database is in the MOUNT state and you execute the following command to open it ALTER DATABASE OPEN; What two actions are performed as a result of this command?()

    • A、All control files are opened
    • B、All redo files are opened
    • C、The password file is opened
    • D、The parameter file is opened
    • E、All online data files are opened

    正确答案:B,E

  • 第5题:

    In order to enable remote administration of users and tablespaces on an Oracle database, which of the following types of files must exist in the database?()

    • A、Password file 
    • B、Initialization file 
    • C、Datafile 
    • D、Control file 
    • E、Nothing - SYSDBA privileges are not required for these actions

    正确答案:E

  • 第6题:

    You created a snapshot of the /data2 filesystem as follows:   # fssnap -F ufs -o bs=/data2/snap /data2   But, the system responds with the following error: snapshot error: Invalid backing file path   What is the problem? ()

    • A、 The /data filesystem does not exist.
    • B、 This message indicates that the /data2/snap directory does not exist.
    • C、 The name of the Backing Store is incorrect, it should be /dev/fssnap/0
    • D、 This message indicates that you cannot have the backing store file on the same filesystem as the filesystem being snapped.

    正确答案:D

  • 第7题:

    多选题
    our database is in the MOUNT state and you execute the following command to open it:  ALTER DATABASE OPEN  What two actions are performed as a result of this command?()
    A

    All control files are opened.

    B

    All redo log files are opened

    C

    The password file is opened.

    D

    The parameter file is opened.

    E

    All online data files are opened.


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

  • 第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题:

    单选题
    A user reports their system is displaying an error message ‘NTLDR is missing’. Which of the following is the MOST likely cause for this error?()
    A

    BOOT.INI file is configured incorrectly

    B

    Corrupt MBR

    C

    Boot sector virus

    D

    System file is missing components


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

  • 第10题:

    单选题
    You created a snapshot of the /data2 filesystem as follows:   # fssnap -F ufs -o bs=/data2/snap /data2   But, the system responds with the following error: snapshot error: Invalid backing file path   What is the problem? ()
    A

     The /data filesystem does not exist.

    B

     This message indicates that the /data2/snap directory does not exist.

    C

     The name of the Backing Store is incorrect, it should be /dev/fssnap/0

    D

     This message indicates that you cannot have the backing store file on the same filesystem as the filesystem being snapped.


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

  • 第11题:

    单选题
    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
    解析: 暂无解析

  • 第12题:

    单选题
    You received the following error:   ORA-01578: ORACLE data block corrupted   (file # %s, block # %s)   Which file will you check to view additional information regarding the cause of this error?()
    A

    the alert log file and the trace files

    B

     the redo log files

    C

     the control file

    D

     the change tracking file


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

  • 第13题:

    Operator needs to remove all leading comments # from shell.script file. Which of the following vi sub-command can achieve this?()

    • A、:r/^#//g
    • B、:1,$ s/^#//g
    • C、:sed s/^#//g
    • D、:sub s/^#//g

    正确答案:D

  • 第14题:

    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

  • 第15题:

    Consider the following scenario: You have a directory, data, under the disk group tdgroupA. You want to create an alias for one of the data files and you execute the following command: ALTER DISKGROUP tdgroupA  ADD ALIAS ’+tdgroupA/data/datafile.dbf’  FOR ’+tdgroupA.231.45678’;  Which task would be accomplished by the command?()

    • A、The command drops the file +tdgroupA·231.45678.
    • B、The command physically relocates the file to +tdgroupA/data and renames the file to datafile.dbf.
    • C、The command creates a copy of the +tdgroupA·231.45678 file and places it in +tdgroupA/data after renaming the file to datafile.dbf.
    • D、The command creates an alias, datafile.dbf, and places it in +tdgroupA/data and does not remove the +tdgroupA·231.45678 file.
    • E、The command creates a file, datafile.dbf, in +tdgroupA/data and removes the references for +tdgroupA·231.45678 from the data dictionary views.

    正确答案:D

  • 第16题:

    our database is in the MOUNT state and you execute the following command to open it:  ALTER DATABASE OPEN  What two actions are performed as a result of this command?()

    • A、All control files are opened.
    • B、All redo log files are opened
    • C、The password file is opened.
    • D、The parameter file is opened.
    • E、All online data files are opened.

    正确答案:B,E

  • 第17题:

    You received the following error:   ORA-01578: ORACLE data block corrupted   (file # %s, block # %s)   Which file will you check to view additional information regarding the cause of this error?()

    • A、the alert log file and the trace files
    • B、 the redo log files
    • C、 the control file
    • D、 the change tracking file

    正确答案:A

  • 第18题:

    单选题
    In order to enable remote administration of users and tablespaces on an Oracle database, which of the following types of files must exist in the database?()
    A

    Password file 

    B

    Initialization file 

    C

    Datafile 

    D

    Control file 

    E

    Nothing - SYSDBA privileges are not required for these actions


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

  • 第19题:

    单选题
    An operator is editing a file using vi. Which of the following subcommand sequences will copy the current line plus the next 2 lines to the end of the file?()
    A

    yy E 3p

    B

    3yy G p

    C

    3yy :e 5pp

    D

    yy :g 3p


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

  • 第20题:

    单选题
    Which of the following will occur if an operator types the command vi file.out?()
    A

    If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.

    B

    If the file exists it will be opened for editing. If the file does not exist a new file with the name file.out will be created and opened for editing.

    C

    If the file exists an error message will be displayed. If the file does not exist a new file with the name file.out will be created and opened for editing.

    D

    If the file exists the operator will be asked whether to open the file or overwrite the file. If the file does not exist a new file with the name file.out will be created and opened for editing.


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

  • 第21题:

    单选题
    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
    解析: 暂无解析

  • 第22题:

    单选题
    Operator needs to remove all leading comments # from shell.script file. Which of the following vi sub-command can achieve this?()
    A

    :r/^#//g

    B

    :1,$ s/^#//g

    C

    :sed s/^#//g

    D

    :sub s/^#//g


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

  • 第23题:

    单选题
    The file “file.txt” exists on the file system and contsins ASCII text.  Given:   try {   File f = new File(“file.txt”);    OutputStream out = new FileOutputStream(f, true);   }    catch (IOException) {}   What is the result?()
    A

     The code does not compile.

    B

     The code runs and no change is made to the file.

    C

     The code runs and sets the length of the file to 0.

    D

     An exception is thrown because the file is not closed.

    E

     The code runs and deletes the file from the file system.


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

  • 第24题:

    单选题
    All of the following statements accurately describe process for administering file systems EXCEPT:()
    A

    A logical volume must exist prior to running the crfs command to create a file system

    B

    A file system must be unmounted before it can be removed

    C

    Defining a file system imposes a structure on a logical volume

    D

    Removing a file system using rmfs automatically removes the underling logical volume


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