软件水平习题练习

软件水平考试程序员易错题(2017/10/20)
1题:设x和y为int型变量,则执行下面的循环后,y的值为( )
for(y=l, x=l; y<=50; y++){
if(x>=10) break;
if(x%2==1){ x+=5; continue;}
X -= 3;
}
A、2
B、4
C、6
D、8
【单选题】:      

2题:字符串"m\x43\\\np\102q"的长度是( )
A、7
B、9
C、15
D、16
【单选题】:      

3题:设 a,b和 c都是int型变量,且a=3,b=4,c=5,则下面的表达式中值为 0的是( )
A、’a’&&b’
B、a<=b
C、a||b+c&&b-c
D、!((a
【单选题】:      

4题:设有定义“int x=8,y,z;”,则执行“y=z=x++,x=y==z;”后,变量x值是( )
A、0
B、1
C、8
D、9
【单选题】:      

5题:struct stu
{ int num;char name[10];int age};
void py(struct stu *p)
{ printf("%s\n",(*p).name);}
main()
{ struct stu student[3]={{1001,"Sun",25},
{1002,"Ling",23},
{1003,"Shen",22};
py(student+2);
【分析题】:

 

您正在结束答题

请确认是否提交试卷?

继续做题 确认提交