职业资格类 - 软考

以下有可能导致软件测试发生风险的描述中错误的是()。
A.缺少详细的需求分析和设计文档
B.功能模块漏测,导致覆盖率不达标
C.实行敏捷开发导致缺少充分的文档
D.测试内部工作得不到足够的重视
在单入口单出口的do...while循环结构中,()
A.循环体的执行次数等于循环条件的判断次数
B.循环体的执行次数多于循环条件的判断次数
C.循环体的执行次数少于循环条件的判断次数
D.循环体的执行次数与循环条件的判断次数无关
某软件公司为某银行设计开发了一套网上银行系统,该系统提供基本的支付、查询、转账和信息修改等功能。银行对网上银行系统提出了初步的性能指标:
4交易响应时间不超过2s
5并发用户数>=1000
6CPU利用率不超过80%
7系统需要7*24小时不间断的稳定运行
8每秒事务数为7
9交易成功率为100%
现需要对该软件进行性能测试。
性能测试中,针对一个单独的性能指标,往往需要采用多种不同的测试方法。该软件公司需要测试性能指标(1)和(5),设计了如下的测试方案:
测试常规情况下的并发用户数,逐步增加并发用户数,分别测试:
(1)在响应时间为2s时,系统所能承受的最大并发访问用户的数量:
(2)系统在多大的并发访问用户数量下,响应时间不可接受(例如超过2s)。
请指出这两项测试分别属于哪种类型的测试,并分别解释这两种测试类型的基本概念。
There is nothing in this world constant but inconstancy.—SWIFT
Project after project designs a set of algorithms and then plunges into construction of customer-deliverable software on a schedule that demands delivery of the first thing built.In most projects,the first system built is( )usable.It may be too slow,too big,awkward to use,or all three.There is no( )but to start again,smarting but smarter,and build a redesigned version in which these problems are solved.The discard and( )may be done in one lump,or it may be done piece-by-piece.But all large-system experience shows that it will be done.Where a new system concept or new technology is used,one has to build a system to throw away,for even the best planning is not so omniscient(全知的)as to get it right the first time.The management question,therefore,is not whether to build a pilot system and throw it away.You will do that.The only question is whether to plan in advance to build a( ),or to promise to deliver the throwaway to customers.Seen this way,the answer is much clearer.Delivering that throwaway to customers buys time,but it does so only at the(请作答此空)of agony(极大痛苦)for the user,distraction for the builders while they do the redesign,and a bad reputation for the product that the best redesign will find hard to live down.Hence plan to throw one away;you will,anyhow.
A.worth
B.value
C.cost
D.invaluable
对于逻辑表达式((a&&b)||c),需要______个测试用例才能完成条件组合覆盖。
A.2
B.4
C.8
D.16
The main reason we tend to focus on the( )rather than the human side of work is not because it’s more(请作答此空),but because it’s easier to do.Getting the new disk drive installed is positively trivial compared to figurine out why Horace is in a blue funk(恐惧)or why Susan is dissatisfied with the company aver only a few months.Human interactions are complicated and never very crisp(干脆的,干净利落的)and clean in their effects,but they matter more than any other aspect of the work.
If you find yourself concentrating on the( )rather than the( ).you’re like the vaudeville character(杂耍人物)who loses his Keys on a dark street and looks for them on the adjacent street because,as he explains,“The light is better there!”
A.trivial
B.crucial
C.minor
D.insignificant
若系统中的某子模块需要为其他模块提供访问不同数据库系统的功能,这些数据库系统提供的访问接口有一定的差异,但访问过程却都是相同的,例如,先连接数据库,再打开数据库,最后对数据进行查询。针对上述需求,可以采用()设计模式抽象出相同的数据库访问过程,该设计模式(请作答此空)。
A.可以动态、透明地给单个对象添加职责
B.为子系统定义了一个高层接口,这个接口使得这一子系统更加容易使用
C.通过运用共享技术,有效支持大量细粒度的对象
D.将抽象部分与它的实现部分分离,使它们都可以独立地变化
以下关于软件项目管理中人员管理的叙述,正确的是()
A.项目组成员的工作风格也应该作为组织团队时要考虑的一个要素
B.鼓励团队的每个成员充分地参与开发过程的所有阶段
C.仅根据开发人员的能力来组织开发团队
D.若项目进度滞后于计划,则增加开发人员一定可以加快开发进度
自底向上的集成测试策略的优点包括()
A.主要的设计问题可以在测试早期处理
B.不需要写驱动程序
C.不需要写桩程序
D.不需要进行回归测试
软件调试的任务就是根据测试时所发现的错误,找出原因和具体的位置,进行改正。其常用的方法中,()是指从测试所暴露的问题出发,收集所有正确或不正确的数据,分析它们之间的关系,提出假想的错误原因,用这些数据来证明或反驳,从而查出错误所在。
A.试探法
B.回溯法
C.归纳法
D.演绎法
阅读下列说明和C代码,回答问题1至问题3
【说明】?? 某应用中需要对100000个整数元素进行排序,每个元素的取值在0~5之间。排序算法的基本思想是:对每一个元素x,确定小于等于x的元素个数(记为m),将x放在输出元素序列的第m个位置。对于元素值重复的情况,依次放入第m-l、m-2、…个位置。例如,如果元素值小于等于4的元素个数有10个,其中元素值等于4的元素个数有3个,则4应该在输出元素序列的第10个位置、第9个位置和第8个位置上。算法具体的步骤为:
步骤1:统计每个元素值的个数。
步骤2:统计小于等于每个元素值的个数。
步骤3:将输入元素序列中的每个元素放入有序的输出元素序列。
【C代码】
下面是该排序算法的C语言实现。
(1)常量和变量说明
R: 常量,定义元素取值范围中的取值个数,如上述应用中R值应取6
i:循环变量
n:待排序元素个数
a:输入数组,长度为n
b:输出数组,长度为n
c:辅助数组,长度为R,其中每个元素表示小于等于下标所对应的元素值的个数。
(2)函数sort
1??? void sort(int n,int a[],int b[]){
2??? ???int c[R],i;
3?? for (i=0;i< ???(1)? :i++){
4?? ??c[i]=0;
5??? ???}
6??? ???for(i=0;i
Creating a clear map of where the project is going is an important first step. It lets you identify risks, clarify objectives, and determine if the project even makes sense. The only thing more important than the release plan is not to take it too seriously. Pelease planning is creating a game plan for your Web project ( ) what you think you want your Web site to be. The plan is a guide for the content, design elements, and functionality of a Web site to be released to the public, to partners, or internally. It also ( ) how long the project will take and how much it will cost. What the plan is not is a functional ( )that defines the project in detail or that produces a budget you can take to the bank. Basically you use a release Plan to do an initial sanity check of the project's ( ) and worthiness. Release Plans are useful road maps, but don't think of them as guides to the interstate road system. Instead, think of them as the (请作答此空) used by early explorers--half umor and guess and half hope and expectation. It's always a good idea to have a map of where a project is headed
A.navigators
B.maps
C.guidance
D.goals
数据库测试的对象包括______。
①数据库连接测试②数据库的安全测试③定义的存储过程和触发器的测试④数据库接口测试
A.①④
B.①②③
C.①②④
D.①②③④
以下程序设计语言中,()更适合用来进行动态网页处理。
A.HTML
B.LISP
C.PHP
D.JAVA/C++
C++是一个接近系统底层的综合的,支持面向对象和范编程的程序设计语言,适用于开发要求很高效率的程序,例如大型游戏、大型企业应用、系统应用等。
模块A、B和C包含相同的5个语句,这些语句之间没有联系,为了避免重复,把这5个模块抽取出来组成模块D。则模块D的内聚类型为(16)内聚。
A.功能
B.通信
C.逻辑
D.巧合
以下有关计算机软件著作权的叙述中,正确的是()。
A.非法进行拷贝、发布或更改软件的人被称为软件盗版者
B.《计算机软件保护条例》是国家知识产权局颁布的,用来保护软件著作权人的权益
C.软件著作权属于软件开发者,软件著作权自软件开发完成之日起产生
D.用户购买了具有版权的软件,则具有对该软件的使用权和复制权
在n个数的数组中确定其第i(1≤i≤n)小的数时,可以采用快速排序算法中的划分思想,对n个元素划分,先确定第k小的数,根据i和k的大小关系,进一步处理,最终得到第i小的数。划分过程中,最佳的基准元素选择的方法是选择待划分数组的(64)元素。此时,算法在最坏情况下的时间复杂度为(不考虑所有元素均相等的情况)(65)。
A.Θ(n)
B.Θ(lgn)
C.Θ(nlgn)
D.Θ(n2)
在指令系统的各种寻址方式中,获取操作数最快的方式是()。
A.直接寻址
B.间接寻址
C.立即寻址
D.寄存器寻址
在数据库逻辑设计阶段,若实体中存在多值属性,那么将E-R图转换为关系模式时,(),得到的关系模式属于4NF。
A.将所有多值属性组成一个关系模式
B.使多值属性不在关系模式中出现
C.将实体的码分别和每个多值属性独立构成一个关系模式
D.将多值属性和其它属性一起构成该实体对应的关系模式