软件水平习题练习

软件水平考试程序员易错题(2017/10/23)
1题:设有定义:"char s[12]={"string"};" 则printf("%d\n",strlen(s));的输出是( )
A、6
B、7
C、11
D、12
【单选题】:      

2题:如果某个函数在定义时,省略了存储类型,则默认的存储类型是( )
A、auto
B、void
C、extern
D、static
【单选题】:      

3题:设整型变量 a、b、c均为2,表达式 a+++b+++c++ 的结果是( )
A、6
B、9
C、8
D、表达式出错
【单选题】:      

4题:执行下列程序段后,x的位是( )
int a=8,b=7,c=6,x=1;
if(a>6)if(b>7)if(c>8)x=2;else x=3;
A、0
B、1
C、2
D、3
【单选题】:      

5题:语句"printf("%d\n"strlen("ats\nol2\1\\"));"的输出结果是( )
A、11
B、10
C、9
D、8
【单选题】:      

 

您正在结束答题

请确认是否提交试卷?

继续做题 确认提交