【单选题】下列可以打开随机文件的语句是( )。
A.
Open'file 1.dat'For Input As#1
B.
Open'file1.dat'For Append As#1
C.
Open'file1.dat'For Output As#1
D.
Open'file1.dat'For Randow As#1 Len=20
【单选题】It was not until she arrived at the classroom she realized she had forgotten her coursebook.
【单选题】お寿司を食べました。それから、天ぷら()食べますた。
【简答题】What
did she do when she stared at the screen?A. She
had to tell her colleague the data. B. She
had to prepare some reports . C. She
had morning tea and a quick look at the newspaper. D. She
talked wi...
【单选题】She bought the same skirt at a lower price at the same shop where I bought mine because she was a __________ customer.
【判断题】统计是研究抽象化的数量,而数学则是研究特定对象在一定时间、地点条件下的数量。
【单选题】下列代码的执行结果是f=open('writetest.txt','a+')f.write('This is a test file')f.write('Please print this file')print(f.readline())f.seek(0)print(f.readlines())
A.
This is a test file This is a test file Please print this file
B.
This is a test filePlease print this file This is a test file Please print this file
C.
['This is a test filePlease print this file']
D.
This is a test filePlease print this file
【多选题】Which two create an InputStream and open file the “file.txt” for reading? ()
A.
InputStream in=new FileReader(“file.txt”);
B.
InputStream in=new FileInputStream(“file.txt”);
C.
InputStream in=new InputStreamFileReader (“file.txt”, “read”);
D.
FileInputStream in=new FileReader(new File(“file.txt”));
E.
FileInputStream in=new FileInputStream(new File(“file.txt”));
【简答题】要想成功地打开名为“QW”的输出文件,应该使用语句()。 (A) OPEN(UNIT=3, FILE=‘QW’) (B) OPEN(3,FILE=QW) (C) OPEN(FILE=‘QW’, 3,STATUS=OLD) (D) OPEN(3,FILE=QW,STATUS=UNKNOWN)