软件水平习题练习

软件水平考试程序员易错题(2015-10-20)
1题:下列语句中,正确的是( )
A.char a[3][]={'abc",'1'};
B.char a[][3]={'abc','l'};
C.char a[3][]={'a',"1"};
D.char a[][3]={"a","1"};
【单选题】:      

2题:1.main()
{ char str[]="1234567";
int i;
for(j=0;i<7;i十=3)
printf("%s\n",str+i);

【分析题】:

3题:void f(p1,p2)
int *p1,*p2;
{ int i,j;
*p2=0;
for(i=0;i<3;i++)
for(j=i;j<3;j++)
*p2+=*(pl+i*3+j);
return;

main()
{ int a[3][3]={{1,2},{3,4},{5,6}};
int s;
f(a,&s);
printf("%d",s);

【分析题】:

4题:编程序输入50个学生的学号、姓名、3门课程的成绩存入一个结构型的数组。统计每个学生的总分并输出学生的学号、姓名、总分。
【分析题】:

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);

【分析题】:

6、7、8、9、10题:software design is a __(71)__ process .It requires a certain __(72)__ of f1air on the part of the designer. Design can not be learned from a book .It must be practiced and learnt by experience and study of existing systems .A well __(73)__ software system is straightforward to implement and maintain ,easily __(74)__ and reliable .Badly __(73)__ software systems ,although they may work are __(75)__ to be expensive to maintain ,difficult to test and unreliable.
71.
A、create
B、createD、C、creating
D、creative
72.
A、amount
B、amounted      `
C、mount
D、mounteD、73.
A、design
B、designeD、C、designing
D、designs
74.
A、understanD、B、understands
C、understanding
D、understooD、75.
A、like
B、likely
C、unlike
D、unlikely
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      
【单选题】:      

11题:二进制语言是属于( )
A.面向机器语言
B.面向问题语言
C.面向过程语言
D.面向汇编语言
【单选题】:      

12题:设整型变量i的值为3,则计算表达式i---i后表达式的值为( )
A.0
B.l
C.2
D.表达式出错
【单选题】:      

13题: “年龄在18一25之间,,这种约束属于数据库系统的__(32)__措施。
32.
A、原子性
B、一致性
C、完整性
D、安全性
【单选题】:      

14题:下列字符列中,不是用来表达转义字符是( )
A.\\
B.\'
C.074
D. \0
【单选题】:      

 

您正在结束答题

请确认是否提交试卷?

继续做题 确认提交