New dataInputStream(“in.txt”);
New dataInputStream(new file(“in.txt”));
New dataInputStream(new writer(“in.txt”));
New dataInputStream(new FileWriter(“in.txt”));
New dataInputStream(new InputStream(“in.txt”));
New dataInputStream(new FileInputStream(“in.txt”));
第1题:
欲新建一个电路原理图文件应该执行()操作。
第2题:
在J2EE中,下面代码中,()不会编译错误。
第3题:
Which constructs a DataOutputStream?()
第4题:
Which two create an InputStream and open file the “file.txt” for reading? ()
第5题:
Which method implementations will write the given string to a file named "file", using UTF8 encoding?() IMPLEMENTATION a: public void write(String msg) throws IOException { FileWriter fw = new FileWriter(new File("file")); fw.write(msg); fw.close(); } IMPLEMENTATION b: public void write(String msg) throws IOException { OutputStreamWriter osw = new OutputStreamWriter(new FileOutputStream("file"), "UTF8"); osw.write(msg); osw.close(); } IMPLEMENTATION c: public void write(String msg) throws IOException { FileWriter fw = new FileWriter(new File("file")); fw.setEncoding("UTF8"); fw.write(msg); fw.close(); } IMPLEMENTATION d: public void write(String msg) throws IOException { FilterWriter fw = FilterWriter(new FileWriter("file"), "UTF8"); fw.write(msg); fw.close(); } IMPLEMENTATION e: public void write(String msg) throws IOException { OutputStreamWriter osw = new OutputStreamWriter( new OutputStream(new File("file")), "UTF8" ); osw.write(msg); osw.close(); }
第6题:
New BufferedInputStream(“in.txt”);
New BufferedInputStream(new File(“in.txt”));
New BufferedInputStream(Writer(“in.txt”));
New BufferedInputStream(new Writer(“in.txt”));
New BufferedInputStream(new InputStream(“in.txt”));
New BufferedInputStream(new FileInputStream(“in.txt”));
第7题:
a
b
97
98
第8题:
InputStream in=new FileReader(“file.txt”);
InputStream in=new FileInputStream(“file.txt”);
InputStream in=new InputStreamFileReader (“file.txt”, “read”);
FileInputStream in=new FileReader(new File(“file.txt”));
FileInputStream in=new FileInputStream(new File(“file.txt”));
第9题:
OutputStream out= new FileOutputStream (“file.txt”); Out.writeBytes (“ /n”);
OutputStream os= new FileOutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
OutputStream os= new FileOutputStream (“file.txt”); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
OutputStream os= new OutputStream (“file.txt”, true); DataOutputStream out = new DataOutputStream(os); out.writeBytes (“ /n”);
第10题:
Compilation fails.
Nothing is added to the file system.
Only a new file is created on the file system.
Only a new directory is created on the file system.
Both a new file and a new directory are created on the file system.
第11题:
a
b
97
98
第12题:
mv /old_dir/file /new_dir
mv -p /old_dir/file /new_dir
mv -k /old_dir/file /new_dir
mv /old_dir/file /new_dir/new_file
第13题:
创建一个向文件“file.txt”追加内容的输出流对象的语句有()。
第14题:
Which two construct an OutputSream that appends to the file “file.txt”? ()
第15题:
Which constructs a BufferedIputStream?()
第16题:
Which constructs a DataOutputStream?()
第17题:
What writes the text “ ” to the end of the file “file.txt”?()
第18题:
New dataOutputStream(“out.txt”);
New dataOutputStream(new file(“out.txt”));
New dataOutputStream(new writer(“out.txt”));
New dataOutputStream(new FileWriter(“out.txt”));
New dataOutputStream(new OutputStream(“out.txt”));
New dataOutputStream(new FileOutputStream(“out.txt”));
第19题:
Implementation a.
Implementation b.
Implementation c.
Implementation d.
Implementation e.
第20题:
New dataInputStream(“in.txt”);
New dataInputStream(new file(“in.txt”));
New dataInputStream(new writer(“in.txt”));
New dataInputStream(new FileWriter(“in.txt”));
New dataInputStream(new InputStream(“in.txt”));
New dataInputStream(new FileInputStream(“in.txt”));
第21题:
FileOutputStream out=new FileOutputStream(“file.txt”,true);
OutputStream out=new FileOutputStream(“file.txt”,“append”);
OutputStream out=new FileOutputStream(“file.txt”);
FileOutputStream out=new FileOutputStream(new file(“file.txt”));
OutputStream out=new FileOutputStream(new File(“file.txt”),true.;
第22题:
OutputStream out=new FileOutputStream(“file.txt”);
OutputStream out=new FileOutputStream(“file.txt”, “append”);
FileOutputStream out=new FileOutputStream(“file.txt”, true);
FileOutputStream out=new FileOutputStream(new file(“file.txt”));
OutputStream out=new FileOutputStream(new File(“file.txt”)true);
第23题:
File f = new File(/,autoexec.bat);
DataInputStream din = new DataInputStream(new FileInputStream(autoexec.bat));
InputStreamReader in = new InputStreamReader(System.in);
OutputStreamWriter out = new OutputStreamWriter(System.in);
第24题:
buying a new car that
to buy a new car that
to buy a new car what
buying a new car which