对
错
第1题:
有以下程序:
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;
}
此程序实现的功能是【 】。
第2题:
有如下命令序列: 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区
第3题:
第4题:
UNIX系统命令cat file1>>file2功能是()。
第5题:
此命令是创建一个软链接,ln-sfile1 file2
第6题:
写出将文件file1、file2合并成一个文件fileall的命令。
第7题:
如果希望把file1的内容附加到原有的文件file2的末尾,应用什么指令?
第8题:
如果要将文件名file1修改为file2,下列命令()可以实现。
第9题:
将文件file2的内容添加到文件file1的末尾
将文件file1的内容添加到文件file2的末尾
连接文件file1和file2
显示文件file1和file2
第10题:
Add File2 as a namespace server for //fabrikam.com/dfs.
Add //File2/templates as a folder target for //fabrikam.com/dfs/templates.
In the Group Policy preferences of GPO2 and GPO3, add new mapped drives.
Create a DFS Replication group that contains //File1/templates and //File2/templates.
第11题:
第12题:
对
错
第13题:
下列程序用于将源文件中的字母进行大小写转换,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();
}
第14题:
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.
第15题:
命令cat file1 file2 >file3把file1和file2组合成file3。
第16题:
如果newdir/file2文件不存在,但是目录newdir已存在,mvfile1newdir/file2命令将有什么结果?()
第17题:
命令ls -l >file1与ls -l >>file1的含义的含义一样。
第18题:
下面哪条命令可用来确保文件“file1”存在()
第19题:
命令head-120file1file2的含义是:()
第20题:
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?()
第21题:
对
错
第22题:
cp file1/dev/null
touch file1
create file1
mkfile file1
第23题:
第24题:
Name the new server File2. Create a new mirrored volume by using two 72-GB disks. Connect File2 to the network and copy the data from File1. When copying is complete, shut down the old File1.
Name the new server File1. Move both disks from the old File1 to the new File1. Scan the disks for changes. Import the disks. Connect the new File1 to the network.
Name the new server File1. Break the mirror on the old File1. Move one of the disks from the old File1 to the new File1. Scan the disk for changes. Initialize the disk. Select the spare disk and create the mirror. Connect the new File1 to the network.
Name the new server File1. Remove one of the disks in the mirror from the old File1. Move the disk to the new File1. Scan the disk for changes. Import the disk. Shut down the old File1 and connect the new File1 to the network.