软件水平习题练习

软件水平考试程序员易错题(2019/5/24)
1题:conv(b)
int b;
{ if(b>=2)conv(b/2);
printf("%d",b%2);
return;

main()
{ int d;
scanf("%d",&d);
conv(d);

说明:本程序执行时从键盘上输入:22后跟回车键。
【分析题】:

2题:设 a=3,b=4执厅‘printf(”%d,%d’,(a,b)(b,a));”的输出是( )
A、3,4
B、4,3
C、3,3
D、4,4
【单选题】:      

3题:ER模型可以转换成关系模型。当两个实体间联系是M:N联系时,它通常可转换成__(40)__个关系模式。
40.
A、2
B、3
C、M+N
D、M*N
【单选题】:      

4题:下列程序段的输出是( )
typedef union{ long x[2];
short y[4][5];
char z[10];
}TYPE1;
TYPE1 u1;
printf("%d\n", sizeof(u1));
A、8
B、10
C、40
D、58
【单选题】:      

5题:下列语句中,正确的是( )
A、char a[3][]={'abc",'1'};
B、char a[][3]={'abc','l'};
C、char a[3][]={'a',"1"};
D、char a[][3]={"a","1"};
【单选题】:      

 

您正在结束答题

请确认是否提交试卷?

继续做题 确认提交