比较hello与test文件的内容
将hello这个字符输出到屏幕上
将hello这个字符输出到test文件中
什么都不作
第1题:
下面程序的输出结果是( )。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; } A) B)
C) D)
A.Hello
B.Test
C.Hello Test
D.Hello Test HelloTest
第2题:
有以下程序段#include <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); fclose(myf);}main(){ fun("test.t","new world"); fun("test.t","hello,");}程序执行后,文件test.t中的内容是A.hello, B.new worldhello,C.new world D.hello,rld
第3题:
下列字符型常量Hello,world!表示方法中,错误的是______。
A.[Hello,world!]
B.'Hello,wOrld!'
C.Hello,world!,
D.{Hello,world!}
第4题:
用户通过命令行与Linux系统进行交互,完成各种配置及管理等功能。根据下表要求写出完整的Linux命令。
序号
命令要求
完整命令
1
测试与www.baidu.com的互通性
①
2
改变当期目录到/home/zhang
②
3
将文件test改名为test.org
③
4
在文件test.c中查找字符串passwd
④
第5题:
当Qt嵌入式的应用程序hello要把显示结果输出到虚拟缓冲帧时,需在命令行输入()
第6题:
在linux系统中,要向当前所有登录用户发布消息:Hello!,应使用()命令。
第7题:
下列对象中,属于字符串的是()
第8题:
将当前目录下的bin目录和hello、hello.c文件备份并压缩为binzxj.tar.gz文件的命令是()。
第9题:
wall Hello!
write Hello!
talk Hello!
mesg Hello!
第10题:
$>hello-q
$>hello-qs
$>hello-qws
$qvfbhello
第11题:
tar -czf test.gz
tar -xvzf test.gz
tar -uczf test.gz
tar -czf test.gz
第12题:
cp -R /tmp/test /tmp/test1
cp -r /tmp/test /tmp/test1
cp -R /tmp/test/. /tmp/test1
cp /tmp/test /tmp/test1
第13题:
下面的程序执行后,文件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
第14题:
下面的程序执行后,文件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
第15题:
有以下的程序 #include<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); fclose(myf); } main() { fun("test.t","new world");fun("test.t","hello,");} 程序执行后,文件test.t中的内容是( )
A.hello,
B.new worldhello,
C.new world
D.hello,rld
第16题:
UNIX操作系统中,fork()系统调用用于创建进程。仔细阅读、分析下列程序,假设程序正确运行并创建子进程成功,那么,输出到屏幕的正确结果是main() { pid_t pid; pid = fork(); if (pid = = 0) printf ("Hello World\n"); else if (pid >0) printf ("Hello World\n"); else printf ("Hello World\n"); }
A.什么都没有
B.1行Hello World
C.2行Hello World
D.3行Hello World
第17题:
在linux下echohello>test这条命令中”>”符号的作用是()。
第18题:
填写适当的内容,以便在当前目录中创建一个名为“test.txt”的文本文件。 <%Dim fso , F ’创建FSO对象实例 Set fso = Server.CreateObject() ’创建文件并返回textStream对象 Set F = fso.CreateTextFile(Server.MapPath("./test.txt") ); F.() "Hello" ’向文件中写入字符串后换行 F.() ’向文件中输出1个空行 F.() ’关闭 TextStream对象 %>
第19题:
在linux下echohello>>test这条命令中”>>”符号的作用是()。
第20题:
将test文件的内容清空
将hello这个字符添加到test文件开头
将hello这个字符添加到test文件的末尾
什么都不作
第21题:
打印/usr/下的tmp文件到dir设备中
打印/usr/下的tmp>dir文件
列出/usr目录下/tmp>dir目录中的内容
将/usr/tmp目录中的文件列表输出到dir文件中
第22题:
第23题:
比较hello与test文件的内容
将hello这个字符输出到屏幕上
将hello这个字符输出到test文件中
什么都不作
第24题:
gcc–o hello hello.c
gcc–g hello.c–o hello
gcc hello.c
gcc–b hello.c–o hello