以下if语句语法正确的是( )
A. if(x>0) printf("%f",x) else printf("%f",-x);
B. if(x<0) x=x+y ; printf("%f",x); else printf("%f",-x);
C. if(x>0) {x=x+y ; else printf("%f",x);} printf("%f",-x);
D. if(x<0) x=x+y, printf("%f",x); else printf("%f",-x);
查看答案
已知int x=10,y=20,z=30;执行以下语句后x,y,z的值是()。if(x>y)z=x;x=y;y=z;
A. 10, 20, 30
B. 20, 30, 30
C. 20, 30,10
D. 20, 30, 20
下列程序段的输出结果是()。int i=3;switch(i){case 1:case 2:printf("%d",i);case 3:case 4:break;default:printf("OK");}
A. 0
B. 3
C. OK
D. 没有任何输出
Part A Short conversations[音频]1.
A. The man wants to knowwhy action movies appeal to Peter so much.
B. Peter spends to much of his spare time watching movies.
C. The woman expects her son to study more than he can handle.
D. Peter doesn’t study hard enough.
2.[音频]
A. She doesn’t have time to go outside.
B. She’ll consider the man’s advice.
C. She doesn’t know how to relieve her stress.
D. She will feel more stressful if she gets behind in her lessons.