下面程序段运行后输出的结果是{int m=3,n=4,x;x=m++;x=x+8/++n;printf("x=%d\n",x);}
A. x=1
B. x=2
C. x=3
D. x=4
查看答案
已知a='A',A的二进制编码是01000001,那么printf("%d %d",a<<1,a>>1);输出的结果是
A. 128,65
B. 130,32
C. 32,130
D. 65,128
Part II. Vocabulary & StructureDirections: This part is to test your ability to use words and phrases correctly to construct meaningful and grammatically correct sentences. It consists of 2 sections.Section A (10 points)Directions: There are 5 incomplete statements here. You are required to complete each statement by choosing the appropriate answer from the 4 choices marked A, B, C and D.I can earn some money in my part-time job. _______, I can make some friends in doing it.
A. But
Besides
C. Except
D. Except for
若有定义:floatx=1.5;inta=1,b=3,c=2;,则正确的switch语句是()
A. switch(x){case1.0:printf("*\n");case2.0:printf("**\n");}
B. switch(x);{case1:printf("*\n");case2:printf("**\n");}
C. switch(a+b){case1:printf("*\n");case2+1:printf("**\n");}
D. switch(a+b){case1:printf(**\n);casec:printf(**\n);}
设变量已正确定义并赋值,以下正确的表达式是()
A. x=y*5=x+z
B. int(15.8%5)
C. x=y+z+5,++y
D. (x+y)++