网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
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
参考答案
更多 “ 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 3pB. 3yy G pC. 3yy :e 5ppD. yy :g 3p ” 相关考题
考题
在/home/stud1/wang目录下有一文件file,使用()。可实现在后台执行命令,此命令将file文件中的内容输出到filA.catfile>file.copyB.catfilefile.copyC.&catfilefile.copyD.&catfile>file.copy
考题
有以下程序:includeincludeusing namespace std;int main(){fstream file;fi
有以下程序:include<iostream>include<fstream>using namespace std;int main(){fstream file;file.open("abc.txt", ios :: in);if ( !file ){cout<<"Can not open abc.txt"<<end1;abort();}char buf[ 80 ];int i = 0;while (!file.eof()){file.getline(buf,80);i++;}cout<<"Lines :"<<i<<end1;file.close();return 0;}程序实现的功能是【 】。
考题
有以下程序: include include include intmain() {fstreamfil
有以下程序:include <iostream.h>include <fstream.h>include <stdlib.h>int main(){fstream filel,file2;char line[100];filel.open("source.txt",ios::in);if(!file1){cout<<"Can't open file source.txt!"<<end1;abort();}file2.open("dest.txt",ios::out);if(!file2){cout<<"Can't open file dest.txt!"<<end1;abort();}while(!file1.eof()){filel.getline(1ine,100);file2<<line;file2<<end1;}filel.close();file2.close();return 0;}此程序实现的功能是【 】。
考题
Files /tmp/file2 and /tmp/file3 are hard linked to /tmp/file1.What will the result be if a user makes changes to /tmp/file2 at the same time another user tries to delete /tmp/file1?()
A.All three files will contain the updates and will remain available.B.All three files will be deleted and no changes will be made to /tmp/file2.C.Only /tmp/file2 will contain the updates, but /tmp/file3 will remain available.D.Both /tmp/file2 and /tmp/file3 will contain the updates and will remain available.
考题
在/home/stud1/wang目录下有一文件file,使用()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中。
A.cat filefilE.copyB.cat filefilE.copyC.cat filefilE.copyD.cat filefilE.copy
考题
阅读FORTRAN程序:
OPEN(8,FILE=FILE2 DAT,STATUS=NEW)
DO 10 I=1,3
WEITE(8,(4I4)JI+I,J=1,4)
10 CONTINUE
CLOSE(8)
END
程序运行后,数据文件FILE2,DAT的内容是:
考题
关于文件写入,下列说法正确的是()A.<file>.writelines(lines)将一个元素全为字符串的列表写入文件。#B.<file>.seek(offet)改变当前文件操作指针位置,seek的值:0——文件的开头 1——当前位置 2——文件结尾#C.<file>.writelines(lines)方法中的lines为列表,其中的元素不仅可以是字符串,还可以为整形、浮点型或其它组合类型#D.fo = open('test.txt','w+') ls = ['a','b','c'] fo.writelines(ls) for line in fo: print(line) fo.close() 程序执行后结果为: abc
考题
5、在/home/stud1/wang目录下有一文件file,使用 ()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中A.cat file >file.copyB.cat file file.copyC.cat file file.copyD.cat file >file.copy
考题
在/home/stud1/wang目录下有一文件file,使用 ()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中A.cat file >file.copyB.cat file file.copyC.cat file file.copyD.cat file >file.copy
热门标签
最新试卷