Which gets the name of the parent directory file “file.txt”?()
第1题:
A.gets on
B.gets in
C.gets by
D.gets to
第2题:
以下选项中错误的是( )
A.char *sp; gets(sp);
B.char sp[5] gets(sp);
C.char *sp="12345"; gets(sp);
D.charsp[5]="\0" gets(sp)
第3题:
A fool takes in all the lumber of every sort that he comes across, so that the knowledge which might be useful to him gets crowded out, or at best jumbled up with a lot of other things, so that he has difficulty in laying his hand upon it.
_______________________________________________________________________________
第4题:
有以下定义: #include <stdio.h> char a[10],*b=a; 不能给数组a输入字符串的语句是
A.gets(a)
B.gets(a[0])
C.gets(&a[0]);
D.gets(b);
第5题:
有以下定义: #include <stdio.h> char a[10], *b=a; 下面不能给数组a输入字符串的语句是( )。
A.gets(a)
B.gets(a[0]);
C.gets(&a[0]);
D.gets(b);
第6题:
A. The cached result becomes invalid when any structural change is done to the EMPLOYEES table.
B. If the function execution results in an unhandled exception, the exception result is also stored in the cache.
C. Each time the function is invoked in a different session, the current result in the result cache gets overwritten.
D. If the function is invoked with a different parameter value, the existing result in the result cache gets overwritten by the latest value.
第7题:
设有下列程序:
include<stdio.h>
include<string.h>
main()
{ int i;
char si 10],ti 10];
gets(t);
for(i=0;i<2;i++)
{ gets(s);
if(strcmp(t,s)<0)strcpy(t,s);
}
printf("%s\n",t);
}
程序运行后,从键盘上输入(<CR>代表回车符):CDEF<CR>BADEF<CR>QTHRG<CR>,则程序的输出结果是______。
第8题:
16.
A. gets up
B. gets on
C. gets into
D. gets off
第9题:
以下程序 #include<string.h> main() { char a1[80],a2[80],*s1=a1,*s2=a2; gets(s1);gets(s2) if(!strcmp(s1,s2))printf("*"); else printf("#"); printf("%d\n",strlen(strcat(s1,s2))); } 如果从键盘上输入: book<回车> book<空格><回车> 则输出结果是( )
A.*8
B.#9
C.#6
D.*9
第10题:
有以下定义
#include <stdio.h>
char a[10],*b=a;
不能给a数组输入字符串的语句是
A.gets(A)
B.gets(a[0]);
C.gets(&a[0]);
D.gets(B) ;