阅读下列程序,当运行函数时,输入abc de fg zl0,则输出为( )。
A.abc
B.zl0
C.abc defg zl0 abcdefgzl0
D.abc de fg zl0
第1题:
已知二叉树的的扩充先序序列是“ABC空空DE空FG空空空空空”。那么,它的中序序列是:((1) ),后序序列是((2) )。
第2题:
已知二叉树的扩充先序序列是“ABC空空DE空FG空空空空空”。那么,它的中序序列是__________。
A.CBEGFDA
B.ABCEDGF
C.DBCAEFG
D.GABFDCE
第3题:
已知二叉树的扩充先序序列是“ABC空空DE空FG空空空空空”。那么,它的中序序列是__________。
A.ABCEDGF
B.DBCAEFG
C.CBEGFDA
D.GABFDCE
第4题:
20、已知二叉树的扩充先序序列是“ABC空空DE空FG空空空空空”。那么,它的中序序列是__________。
A.ABCEDGF
B.DBCAEFG
C.CBEGFDA
D.GABFDCE
第5题:
为了列出ABCDE.FG、ABCDE.XYZ、ABDDE和ABCE四个文件中的前三个,下面()书写正确。
ADIRAB*DE.?
BDIRAB?DE.*
CDIRDE.???
DDIRAB*.*
第6题:
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 #include <stdio.h> #include <ctype.h> #inelude <string.h> int fun(char *str) { int i,j=0; for(i=0;str[i]!='\0';i++) if(str[i]!='')str[j++]=str[i]; str[j]='\0'; } main() { char str[81]; int n; printf("Input a string:"); gets(str); puts(str); fun(str); printf("%s\n",str); }
A.asdafaaz67
B.asd af aa z67
C.asd
D.z67
第7题:
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 #include<stdio.h> #include<ctype.h> #include<string.h> int fun(char*str) { int i,j=0; for(i=0;str[i]!='\0';i++) if(str[i]!='')str[j++]=str[i]; str[j]='\0'; } main() { char str[81]; int n; clrscr(); printf("Input a string:"); gets(str); puts(str); fun(str); printf("%s\n",str); }
A.asdafaaz67
B.asdafaaz67
C.asd
D.z67
第8题:
当执行下面的程序时,如果输入ABC,输出结果是 ______。 #include<iostream.h> #include<string.h> void main(){ char ss[10]=“XYZWV”; cin>>ss; strcat(ss,”DEFG”); cout<<ss; }
A.ABCDEFG
B.ABCEF
C.XYZVO/ABCX
D.ABCXYZWVD
第9题:
阅读下列程序,当运行函数时,输入asd af aa z67,则输出为 #include <stdio.h> #include <ctype.h> #include <string.h> int fun(char*str) { int i,j=0; for(i=0;str[i]!='\0';i++) if(str[i]!='')str[j++]=str[i]; str[j]='\0'; } main() { char str[81];
A.asdafaaz67
B.asdafaa267
C.asd
D.z67