在当前目录存在文本文件test.txt,内容是Life is short, you need Python.Simple is better tha
A.Simple is better than complex
B.Life is short, you need Python
C.you need Python
D.输出为空
A.Simple is better than complex
B.Life is short, you need Python
C.you need Python
D.输出为空
第1题
import java.io.*;
public class Test {
public static void main(String args[]) {
try {
String s = "ABCDE" byte b[]=s.getBytes()
FileOutputStream file =
new FileOutputStream("test.txt", true)
file.write(b) file.close() }
catch(IOException e) {
System.out.println(e.toString()) }
}
}
A、ABCABC
B、ABCDE
C、Test
D、ABCDEABCDEABCDE
第3题
A.D:\\Python\\Test.txt
B.D:/Python/Test.txt
C.D:\Python\Test.txt
D.D://Python//Test.txt
第4题
A.Word可将正在编辑的文档另存为一个纯文本文件
B.Word允许同时打开多个文档
C.单击[文件]→[打开]按钮,可以打开一个已存在的Word文档
D.打印预览文档时,打印机必须是已经开启的
第5题
第6题
第7题
A.直接搜索include系统目录文件
B.先搜索include系统目录文件,再搜索当前目录的文件
C.先搜索当前目录的文件,再搜索include系统目录文件
D.仅搜索当前目录的文件
第8题
A.cp-R~/sampledir.可以将当前用户家目录下的sampledir目录拷贝到当前目录中
B.cp./file01./file02..可以将当前目录下的file01文件拷贝到当前目录中并重命名为file02,同时将file01文件拷贝到当前目录的上层目录中
C.cp/home/stu/file01~/root可以将file01目录拷贝到根用户家目录下
D.cp-R../sampledir~root可以将上层目录中的sampledir目录拷贝到根用户家目录下
第9题
A.仅仅搜索当前目录
B.仅仅搜索当前目录
C.直接按系统设定的标准方式搜索目录
D.先在源程序所在目录搜索,再按系统设定的标准方式搜索