简答题

课程名称:软件评测师

题目:阅读下列说明,回答问题1至问题3,将解答填入答题纸的对应栏内。 【说明】 在某嵌入式智能服务机器人的软件设计中,为了更好地记录机器人的个体信息和机器人的工作信息,为智能服务机器人设计了信息数据库。数据库主要完成收集智能服务机器人反馈信息的作用,记录所有机器人的所有工作记录,以方便使用者对机器人的管理和对机器人状态的掌握,并且在机器人发生运行故障时,可以根据数据库存储的信息分析产生故障的原因。数据库收集智能服务机器人反馈信息的流程如下: 服务器端接收反馈信息。 (1)第一次解析判断反馈信息类型是否正确,若正确执行(2),否则执行(3); (2)第二次解析判断反馈信息内容是否正确,若正确执行(4),否则执行(3); (3)调用错误信息处理函数后执行(4); (4)将反馈信息存入数据库。 【问题1】(6分) 在本软件测试过程中,测试人员为了设计测试用例,根据题目中的说明,画出了机器人反馈信息收集软件流程图,如图5.1所示 请在下列选项中,为图5.1中的空(1)~(3)选择正确的描述内容。(1)处对应_____,(2)处对应______,(3)处对应______。 (1)A. 反馈格式是否正确                       B. 反馈长度是否正确 C. 反馈类型是否正确                       D. 反馈内容是否正确                                            (2)A. 标记错误信息                          B. 错误信息处理      C. 错误信息纠正                       D. 错误信息报告                                            (3)A. 信息存入内存                         B. 信息存入文件      C. 信息存入数据库                      D. 倍息存入软件 【问题2】(6分)      软件的结构覆盖率是度量测试完整性的一种手段。也是度量测试有效性的一种手段,在嵌入式软件白盒测试过程中。通常以语句覆盖率、分支覆盖率和 MC/DC 覆盖率作为度量指标。      在实现题目说明中第(1)、(2)条功能时,设计人员采用了下列算法: 请指出对上述算法达到100%语句覆盖、100%分支覆盖和 100%MC/DC 覆盖所需的 最少测试用例数目      表5-1 测试覆盖用例统计表 【问题3】(8分) 为了测试软件功能,测试人员设计了表5-2所示的测试用例,请填写该表中的空(1)~(4)。 表5-2 测试用例

简答题

课程名称:软件评测师

题目:阅读下列说明,回答问题1至问题3,将解答写在答题纸的对应栏内。 【说明】    某汽车维修公司的工时计算模块每天定时根据系统登记的维修信息统计维修工的工时工资。维修工分为学徒、普通维修工和高级维修工三种,三种维修工有不同的时薪标准。    图 4-1 是该模块的类图,图中属性和操作前的“+”、“#”和“-”分别表示公有成员、保护成员和私有成员。 其中: (1)类Engineer表示普通维修工。 (2)类 studentEngineer 和 seniorEngineer 都重新实现了类 Engineer 的方法 calReward()。 (3)方法calReward()根据每个维修工每天的工时数(workTime)、时薪(hourSalary)来计算当天的工时工资。 (4)方法getReward ()调用方法calReward ()获取工时工资并打印显示。 (5)类System中的方法statReward()中首先调用了该类的方法load(),获取本系统工程师列表,然后调用了类Engineer中的方法calReward()。 现拟釆用面向对象的方法进行测试。 【问题1】(4分) (1)图4-1所示的类图中,类System和Engineer之间是什么关系? (2)类seniorEngineer重新实现了类Engineer的方法calReward(),这是面向对象的什么机制? 【问题2】(6分) 类 seniorEngineer 中的方法 calReward()和类 studentEngineer 中的方法 getReward() 是否需要重新测试? 【问题3】(10分) (1)请结合题干说明中的描述,给出测试类Engineer方法calReward()时的测试序列。 (2)请给出图4-1中各个类的测试顺序。 (3)从面向对象特性考虑,测试类System中方法statReward()时应注意什么?

简答题

课程名称:软件评测师

题目:阅读下列说明,回答问题1至问题3,将解答填入答题纸的对应栏内。 【说明】 某公司欲开发一款二手车物流系统,以有效提升物流成交效率。该系统的主要功能是: (1)订单管理:帮买顾问看到有买车线索后,会打电话询问买家是不是需要物流,若需要,帮买顾问就将这个线索发起为订单,帮助买家来找承运商。 (2)线路管理与推荐:对承运商的线路进行管理。根据运输方式的不同,线路分为三种,即包车线路、固定线路、竞价体系,其中包车线路和固定线路是合约制。接入订单系统会根据订单的内容选择合适的承运商。即:有新订单时,若符合固定线路和包车线路,系统自动分配给合约承运商;若不符合合约,系统将订单需求信息推送给各承运商,承运商对订单进行竞拍出价。 (3)合约管理:根据公司与承运商确定的合约,对合约内容进行设置。 (4)基础信息管理:包括帮买顾问(这部分缺失) 【问题1】(6分) 系统前端APP需支持不同品牌的不同系统平台,设计兼容性测试矩阵,以对系统的兼容性进行测试。【问题2】(8分) 承运商进行竞价时,前端需提交竞拍价格(整数,单位:元)数和可接受浮动比例(整数),针对这一功能设计4个测试用例。 【问题3】(6分) 承运商竞拍部分的性能要求最高。采用性能测试工具在以系统竞拍功能为主进行性能测试时,采用 Apdex(应用性能指数)对用户使用该系统的性能满意度进行度量,系统需要满足Apdex指数为0.9以上。测试数据如表3-1所示,请计算本系统的Apdex指数,并说明本系统是否达到要求。

单选题

课程名称:软件评测师

题目:You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also(71)with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returning a HTML/JSON/XML(72).There are logical components corresponding to different functional areas of the application.What’s the application’s deployment architecture?Define an architecture that structures the application as a set of (73) ,collaborating services. This approach corresponds to the Y-axis of the Scale Cube. Each service is:    ·Highly maintainable and testable —— enables rapid and frequent development and deployment .    ·Loosely coupled with other services —— enables a team to work independently the majority of time on their service(s) without being impacted by changes to other services and without affecting other services.    ·(74)deployable —— enables a team to deploy their service without having to coordinate with other teams.    ·Capable of being developed by a small team —— essential for high productivity by avoiding the high communication head of large teams.Services (75) using either synchronous protocols such as HTTP/REST or asynchronous protocols such as AMQP. Services can be developed and deployed independently of one another. Each service has its own database in order to be decoupled from other services. Data consistency between services is maintained using some particular pattern.

单选题

课程名称:软件评测师

题目:You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also(71)with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returning a HTML/JSON/XML(72).There are logical components corresponding to different functional areas of the application.What’s the application’s deployment architecture?Define an architecture that structures the application as a set of (73) ,collaborating services. This approach corresponds to the Y-axis of the Scale Cube. Each service is:    ·Highly maintainable and testable —— enables rapid and frequent development and deployment .    ·Loosely coupled with other services —— enables a team to work independently the majority of time on their service(s) without being impacted by changes to other services and without affecting other services.    ·(74)deployable —— enables a team to deploy their service without having to coordinate with other teams.    ·Capable of being developed by a small team —— essential for high productivity by avoiding the high communication head of large teams.Services (75) using either synchronous protocols such as HTTP/REST or asynchronous protocols such as AMQP. Services can be developed and deployed independently of one another. Each service has its own database in order to be decoupled from other services. Data consistency between services is maintained using some particular pattern.

单选题

课程名称:软件评测师

题目:You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also(71)with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returning a HTML/JSON/XML(72).There are logical components corresponding to different functional areas of the application.What’s the application’s deployment architecture?Define an architecture that structures the application as a set of (73) ,collaborating services. This approach corresponds to the Y-axis of the Scale Cube. Each service is:    ·Highly maintainable and testable —— enables rapid and frequent development and deployment .    ·Loosely coupled with other services —— enables a team to work independently the majority of time on their service(s) without being impacted by changes to other services and without affecting other services.    ·(74)deployable —— enables a team to deploy their service without having to coordinate with other teams.    ·Capable of being developed by a small team —— essential for high productivity by avoiding the high communication head of large teams.Services (75) using either synchronous protocols such as HTTP/REST or asynchronous protocols such as AMQP. Services can be developed and deployed independently of one another. Each service has its own database in order to be decoupled from other services. Data consistency between services is maintained using some particular pattern.

单选题

课程名称:软件评测师

题目:You are developing a server-side enterprise application. It must support a variety of different clients including desktop browsers, mobile browsers and native mobile applications. The application might also expose an API for 3rd parties to consume. It might also(71)with other applications via either web services or a message broker. The application handles requests (HTTP requests and messages) by executing business logic; accessing a database; exchanging messages with other systems; and returning a HTML/JSON/XML(72).There are logical components corresponding to different functional areas of the application.What’s the application’s deployment architecture?Define an architecture that structures the application as a set of (73) ,collaborating services. This approach corresponds to the Y-axis of the Scale Cube. Each service is:    ·Highly maintainable and testable —— enables rapid and frequent development and deployment .    ·Loosely coupled with other services —— enables a team to work independently the majority of time on their service(s) without being impacted by changes to other services and without affecting other services.    ·(74)deployable —— enables a team to deploy their service without having to coordinate with other teams.    ·Capable of being developed by a small team —— essential for high productivity by avoiding the high communication head of large teams.Services (75) using either synchronous protocols such as HTTP/REST or asynchronous protocols such as AMQP. Services can be developed and deployed independently of one another. Each service has its own database in order to be decoupled from other services. Data consistency between services is maintained using some particular pattern.