If the file exists it will be opened for editing. If the file does not exist an error message will be displayed.
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.
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.
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.
第1题:
Which statements are true, given the code new FileOutputStream("data", true) for creating an object of class FileOutputStream?()
第2题:
A file named "core" exists in the current directory. Which of the following commands should be used to determine what created the "core" file?()
第3题:
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.
第4题:
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?()
第5题:
Which of the following will occur if an operator types the command vi file.out?()
第6题:
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?()
第7题:
Operator needs to remove all leading comments # from shell.script file. Which of the following vi sub-command can achieve this?()
第8题:
A. :r/^#//g
B. :1,$ s/^#//g
C. :sed s/^#//g
D. :sub s/^#//g
第9题:
Which determines if “prefs” is a directory and exists on the file system?()
第10题:
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?()