【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc

上传人:tireattitude366 文档编号:1329894 上传时间:2019-10-17 格式:DOC 页数:9 大小:72.50KB
下载 相关 举报
【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc_第1页
第1页 / 共9页
【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc_第2页
第2页 / 共9页
【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc_第3页
第3页 / 共9页
【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc_第4页
第4页 / 共9页
【计算机类职业资格】全国计算机等级考试四级软件测试工程师真题2011年9月及答案解析.doc_第5页
第5页 / 共9页
点击查看更多>>
资源描述

1、全国计算机等级考试四级软件测试工程师真题 2011年 9月及答案解析(总分:100.00,做题时间:120 分钟)一、选择题(每小题 2分,共 50分)下列各题 A(总题数:25,分数:50.00)1.ANSI/IEEE STD729-1983给出软件质量的定义:软件产品满足规定的和隐含的与需求能力有关的全部特征和特性。以下叙述中不属于这些质量特征和特性的是 (分数:2.00)A.产品功能B.效率C.可使用性D.项目成本和进度2.软件产品需求规格说明书是软件缺陷存在最多的地方,其原因是 (分数:2.00)A.软件开发人员与用户沟通比较困难,对要开发的产品需求理解不一致B.系统设计不能全面考虑产

2、品在功能、性能、安全性、可维护性等方面的平衡C.采用不熟悉的新技术开发系统或不科学的算法解决问题D.系统内各子系统或模块的参数过于复杂,导致信息传递失误3.条件覆盖的基本思想是设计若干测试用例,执行被测程序,使得每个判断的每个条件的可能取值至少满足一次。那么对于如下的 C语言程序段 if(a0 void reverse(char s); int main() char intstr1LENGTH,intstr2LENGTH; printf(“请输入超长整数的被加数和加数:/n“); scanf(“%s%s“,intstr1,intstr2); addLInt(intstr1,intstr2);

3、 printf(“超长整数和为:%s“,intstr1); return 0; void addLInt(char s1,char s2) int i=0,tmp,c=0; char sLENGTH; if(strlen(s1)strlen(s2) strcpy(s,s1); strcpy(s1,s2); strcpy(s2,s); reverse(s1);reverse(s2); while(s2i!=;/0) tmp=s1i-0+s2i-0+c; 81i=tmp%10+0; c=tmp/10; i+; while(si1!=/0 s1i=tmp%10+0; c=tmp/10; i+; If

4、c) s1i+=c+0; s1i=/0; reverse(s1); void reverse(char s) int i,j,c; for(i=0,j=strlen(s)-1;ij;i+,j-) c=si; si=sj; sj=c; (分数:20.00)(1).画出程序中函数 addLInt的控制流程图; (分数:10.00)_(2).设计一组测试用例,使该程序 addLInt函数的语句覆盖率和分支覆盖率均能达到 100%。如果认为该函数的语句覆盖率或分支覆盖率无法达到 100%,需说明为什么。 (分数:10.00)_全国计算机等级考试四级软件测试工程师真题 2011年 9月答案解析(总分:

5、100.00,做题时间:120 分钟)一、选择题(每小题 2分,共 50分)下列各题 A(总题数:25,分数:50.00)1.ANSI/IEEE STD729-1983给出软件质量的定义:软件产品满足规定的和隐含的与需求能力有关的全部特征和特性。以下叙述中不属于这些质量特征和特性的是 (分数:2.00)A.产品功能B.效率C.可使用性D.项目成本和进度 解析:2.软件产品需求规格说明书是软件缺陷存在最多的地方,其原因是 (分数:2.00)A.软件开发人员与用户沟通比较困难,对要开发的产品需求理解不一致B.系统设计不能全面考虑产品在功能、性能、安全性、可维护性等方面的平衡 C.采用不熟悉的新技术

6、开发系统或不科学的算法解决问题D.系统内各子系统或模块的参数过于复杂,导致信息传递失误解析:3.条件覆盖的基本思想是设计若干测试用例,执行被测程序,使得每个判断的每个条件的可能取值至少满足一次。那么对于如下的 C语言程序段 if(a0 void reverse(char s); int main() char intstr1LENGTH,intstr2LENGTH; printf(“请输入超长整数的被加数和加数:/n“); scanf(“%s%s“,intstr1,intstr2); addLInt(intstr1,intstr2); printf(“超长整数和为:%s“,intstr1);

7、return 0; void addLInt(char s1,char s2) int i=0,tmp,c=0; char sLENGTH; if(strlen(s1)strlen(s2) strcpy(s,s1); strcpy(s1,s2); strcpy(s2,s); reverse(s1);reverse(s2); while(s2i!=;/0) tmp=s1i-0+s2i-0+c; 81i=tmp%10+0; c=tmp/10; i+; while(si1!=/0 s1i=tmp%10+0; c=tmp/10; i+; If(c) s1i+=c+0; s1i=/0; reverse(

8、s1); void reverse(char s) int i,j,c; for(i=0,j=strlen(s)-1;ij;i+,j-) c=si; si=sj; sj=c; (分数:20.00)(1).画出程序中函数 addLInt的控制流程图; (分数:10.00)_正确答案:(函数 addLInt的控制流程图。 )解析:(2).设计一组测试用例,使该程序 addLInt函数的语句覆盖率和分支覆盖率均能达到 100%。如果认为该函数的语句覆盖率或分支覆盖率无法达到 100%,需说明为什么。 (分数:10.00)_正确答案:(测试用例 a.s1:“1111111111111111” s2:“2222222222222222“ b.s1:“123456789” s2:“989” c.s1:“989” s2:“123456789” d.s1:“999999999999” s2:“111111” 解析 语句覆盖是指设计若干测试用例,运行被测程序,使得每个可执行语句至少执行一次。 语句覆盖率=被评价到的语句数量/可执行的语句数量100%。 设计若干测试用例,运行被测程序使得每个判定的取真分支和取假分支至少评价一次。 判定覆盖率=被评价到的判定分支个数/判定分支的总数100%。 当输入a、b、c、d 中的测试用例后,语句覆盖率和分支覆盖率均为 100%。 )解析:

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 13053-2012 Ventilation for buildings - Air handling units - Rating and performance for units components and sections German version EN 13053 2006+A1 2011《建筑物通风 空气调节装置 装置、部件和.pdf DIN EN 13053-2012 Ventilation for buildings - Air handling units - Rating and performance for units components and sections German version EN 13053 2006+A1 2011《建筑物通风 空气调节装置 装置、部件和.pdf
  • DIN EN 13054-2001 Packaging - Complete filled transport packages - Test methods for the determination of the centre of gravity of a package German version EN 13054 2001《包装 完全和满载运输包.pdf DIN EN 13054-2001 Packaging - Complete filled transport packages - Test methods for the determination of the centre of gravity of a package German version EN 13054 2001《包装 完全和满载运输包.pdf
  • DIN EN 13055-2016 Lightweight aggregates German version EN 13055 2016《轻集料 德文版本EN 13055-2016》.pdf DIN EN 13055-2016 Lightweight aggregates German version EN 13055 2016《轻集料 德文版本EN 13055-2016》.pdf
  • DIN EN 13056-2000 Inland navigation vessels - Stairs with inclination angles of 30 to 45 - Requirements types German version EN 13056 2000《内河航船 倾斜度30度至45度的扶梯 要求和类型》.pdf DIN EN 13056-2000 Inland navigation vessels - Stairs with inclination angles of 30 to 45 - Requirements types German version EN 13056 2000《内河航船 倾斜度30度至45度的扶梯 要求和类型》.pdf
  • DIN EN 13057-2002 Products and systems for the protection and repair of concrete structures - Test methods - Determination of resistance of capillary absorption German version EN 1.pdf DIN EN 13057-2002 Products and systems for the protection and repair of concrete structures - Test methods - Determination of resistance of capillary absorption German version EN 1.pdf
  • DIN EN 13059-2009 Safety of industrial trucks - Test methods for measuring vibration (includes Amendment A1 2008) English version of DIN EN 13059 2009-06《工业卡车安全 振动测量用试验方法》.pdf DIN EN 13059-2009 Safety of industrial trucks - Test methods for measuring vibration (includes Amendment A1 2008) English version of DIN EN 13059 2009-06《工业卡车安全 振动测量用试验方法》.pdf
  • DIN EN 13060-2015 Small steam sterilizers German version EN 13060 2014《小型蒸汽灭菌器 德文版本EN 13060-2014》.pdf DIN EN 13060-2015 Small steam sterilizers German version EN 13060 2014《小型蒸汽灭菌器 德文版本EN 13060-2014》.pdf
  • DIN EN 13061-2010 Protective clothing - Shin guards for association football players - Requirements and test methods German version EN 13061 2009《防护服装 足球运动员用相关胫骨护套 要求与试验方法 德文版本 EN .pdf DIN EN 13061-2010 Protective clothing - Shin guards for association football players - Requirements and test methods German version EN 13061 2009《防护服装 足球运动员用相关胫骨护套 要求与试验方法 德文版本 EN .pdf
  • DIN EN 13062-2003 Products and systems for the protection and repair of concrete structure - Test method - Determination of thixotropy of products for protection of reinforcement G.pdf DIN EN 13062-2003 Products and systems for the protection and repair of concrete structure - Test method - Determination of thixotropy of products for protection of reinforcement G.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1