Leo: Unbelievable! I have failed the test again!
Martha: _____________ This is not the end of the world.
A、Good luck.
B、Cheer up.
C、Go ahead.
D、No problem.
第1题:
A.You said it
B.What a shame
C.I rather doubt it
D.Unbelievable, I’d say
答案:C
解析:原题题意为下列哪项可以表示“不确定性”,A意为你说过的;表示肯定,B意为多么遗憾啊,表示感叹;C意为我很怀疑,表示不确定性;D意为我觉得难以相信,表示对此事表示感叹,肯定不相信;故选C
第2题:
6 写出下列程序在X86 上的运行结果。
struct mybitfields
{
unsigned short a : 4;
unsigned short b : 5;
unsigned short c : 7;
}test
void main(void)
{
int i;
test.a=2;
test.b=3;
test.c=0;
i=*((short *)&test);
printf("%d\n",i);
}
第3题:
在哲学家就餐问题中,有以下代码: P(m); test(i); V(m); 在test[i]中的临界资源包括()。
A.state[i]
B.state[(i+1)%5]
C.ph[i]
D.其它
第4题:
下面的程序执行后,文件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
第5题:
下面的程序执行后,文件test中的内容是 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); } int main(void){ fun("test", "new world"); fun("test", "hello,"); return 0; }
A.new worldhello,
B.hello,
C.new world
D.hello,rld