将test文件的内容清空
将hello这个字符添加到test文件开头
将hello这个字符添加到test文件的末尾
什么都不作
第1题:
在C#程序中,显示一个信息为"test", 标题为"Hello"的消息框,正确的语句是()。
A. MessageBox("test","hello");
B. MessageBox.Show("test","hello");
C. MessageBox("hello","test");
D. MessageBox.Show("hello","test");
第2题:
下面的程序执行后,文件test.t中内容是 ______。 #include<stdio.h> void fun(char * fName,char * st) {FILE * myf; int i; myf=fopm(fname,"w"); for(i=0;i<strlen(st);i++)fputc(st[i],myf); fclose(myf); } main(){fun("test.t","new world");fun("test.t","hello,");}
A.hello,
B.new worldhello
C.new world
D.hello.rld
第3题:
A、将文件file2的内容添加到文件file1的末尾
B、将文件file1的内容添加到文件file2的末尾
C、连接文件file1和file2
D、显示文件file1和file2
第4题:
A>CD TEST 表示()。
第5题:
第6题:
下面的程序执行后,文件test.txt中的内容是______。 #include<stdio.h> void fun(char *fname,char *st) { FILE*myf;int i; myf=fopen("test.txt","w"); for(i=0;i<strlen(st);i++) fputc(st[i],myf); fclose(myf); } main() { fun("test","new one"); fun("test","hello,"); }
A.hello,
B.new onehello,
C.new one
D.hello,ne
第7题:
用户通过命令行与Linux系统进行交互,完成各种配置及管理等功能。根据下表要求写出完整的Linux命令。
序号
命令要求
完整命令
1
测试与www.baidu.com的互通性
①
2
改变当期目录到/home/zhang
②
3
将文件test改名为test.org
③
4
在文件test.c中查找字符串passwd
④
第8题:
下面的程序执行后,文件test.t中内容是______。 #inc1ude<stdio.h> void fun(char*fname,char*st) { FILE*myf;int i; myf=fopen(fname,"w") for(i=0;i<strlen(st);i++)fputc(st[i]myf); fdose(myf); } main() { fun("test.t""new word");fun("test.t,"hello,");}
A.hello,
B.new wor1dhello
C.new world
D.hello,rld
第9题:
在linux系统中,查找/home/目录下文件名以test开头的文件,以下正确的命令是()。
第10题:
在linux系统中,用cp命令将/tmp/test中的文件到/tmp/test1中,不想拷贝目录本身,以下命令正确的是()。