命令cat file1 file2 >file3把file1和file2组合成file3。
第1题:
A.AddFile2asanamespaceserverfor\\fabrikam.com\dfs.
B.Add\\File2\templatesasafoldertargetfor\\fabrikam.com\dfs\templates.
C.IntheGroupPolicypreferencesofGPO2andGPO3,addnewmappeddrives.
D.CreateaDFSReplicationgroupthatcontains\\File1\templatesand\\File2\templates.
第2题:
下列程序用于将源文件中的字母进行大小写转换,while的条件是【 】。
include<iostream. h>
include<fstream. h>
include<iomanip. h>
void main( )
}
char ch;
fstream filel, file2
char fn1[10], fn2[10];
cout<<"输入源文件名:";
cin>>fn1
cout<<"输入目标文件名:";
tin>>fn2
file1, open(fn1 ,ios: :in);
file2, open(fn2, ios:: out);
while(________)
{
if(ch>='a'&&ch<='z')
ch=ch-'a'+'A',
file2, put(ch),
}
file1, close(),
file2, close();
}
第3题:
A.同时显示文件file1和file2的前120行
B.同时显示文件file1的前120行并且存入文件file2
C.同时删除文件file1和file2的前120行
第4题:
UNIX系统命令cat file1>>file2功能是()。
第5题:
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.
第6题:
有以下程序:
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;
}
此程序实现的功能是【 】。
第7题:
有如下命令序列: SELECT 1 USE FILEl LIST CLOSE DATABASE SELECT 0 USE FILE2 LIST SELECT 0 USE FILE3 LIST SELECT 0 USE FILE4 执行以上命令序列后,FILE4所在的工作区是______。
A.第1区
B.第2区
C.第3区
D.第4区
第8题:
A、将文件file2的内容添加到文件file1的末尾
B、将文件file1的内容添加到文件file2的末尾
C、连接文件file1和file2
D、显示文件file1和file2
第9题:
第10题:
如果newdir/file2文件不存在,但是目录newdir已存在,mvfile1newdir/file2命令将有什么结果?()