0 of 7 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 7 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1、如下语句输出结果是:
float b=12.34521;
printf("b=%.3f\n",b);
输出结果为
int a=10,b=20;
printf("_______",a,b);
输出结果为:
a=10
b=20
请选出填写下划线部分的代码。
3、有如下代码:
int a=666,b=888;
printf("%d\n",a,b);
程序运行后的结果是?
4、下面代码输出结果是
int a=1234;
printf("%2d\n",a);
5、阅读下面程序,当输入数据的形式为25 13 10<CR>,正确的输出结果为? 注:<CR>指回车键
int main(){
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
printf("x+y+z=%d",x+y+z);
}
6、若x,y均为int 型,z定义为double型,以下不合法的scanf函数调用语句是?
7、已经有如下定义和输入语句,若要求a1,a2,c1,c2的值分别为10,20,A和B,当从第一列开始输入数据时,正确的数据输入方式是?
注(<CR>表示回车)
int a1,a2;
char c1,c2;
scanf("%d%d",&a1,&a2);
scanf("%c%c",&c1,&c2);