●在结构测试用例设计中,有语句覆盖、条件覆盖、判定覆盖(即分支覆盖)、路径覆盖等,其 (45) 是最强的覆盖准则。为了对图1所示的程序段进行覆盖测试,必须适当地选取测试数据组。若x和y是两个变量,可供选择的测试数据组共有I、Ⅱ、Ⅲ、Ⅳ四组(见表2),则实现判定覆盖至少应采用的测试数据组是 (46) ;实现条件覆盖至少采用的测试数据组是 (47) ,实现路径覆盖至少应采用的测试数据组是 (48) 或 (49) 。
图1 程序段
(45) A.语句覆盖
B.条件覆盖
C.判定覆盖
D.路径覆盖
(46) ,(47) A.I和Ⅱ组
B.Ⅱ和Ⅲ组
C.Ⅲ和Ⅳ组
D.I和Ⅳ组
(48) ,(49) A.I、Ⅱ和Ⅲ组
B.Ⅱ、Ⅲ和Ⅳ组
C.I、Ⅲ和Ⅳ组
D.I、Ⅱ和Ⅳ组
第1题
进程,且工作流程如图1所示。为了利用PV操作正确地协调这两类进程之间的工作,设置了三个信号量S1、S2和Sn,且初值分别为0、0和n。这样图中的a应填写 (17) ,图中的b1、b2应分别填写 (18) 图中的c1、c2应分别填写 (19) 。
图1工作流程图
(17) A.P(S1)
B.P(S2)
C.P(Sn)
D.P(Sn)、P(S1)
(18) A.P(Sn)、V(S2)
B.P(Sn)、V(S1)
C.P(S2)、V(S1)
D.V(S1)、P(S2)
(19) A.P(S1)、V(S2)
B.P(Sn)、V(S1)
C.P(S2)、V(S1)
D.V(S1)、P(S2)
第2题
( )
A.alternative
B.need
C.possibility
D.solution
第3题
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 (71) usable,It may be too slow,too big,awkward to use,or all three.There is no (72) but to start again,smarting but smarter,and build a redesigned version in which these problems are solved.The discard and (73) 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 (74),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 (75) of agony(极大痛苦)for the user,distraction for the builders while they do the redesign,and a bad reputation for the product that best redesign will find hard to live down.
Hence plan to throw one away;you will,anyhow.
71.()
A.almost
B.often
C.usually
D.barely
第4题
(接上一题) 如果要使得纯IPv6结点可以与纯IPv4结点进行通信,则需要使用(68)。
A.堆栈技术
B.双协议栈技术
C.隧道技术
D.翻译技术
第5题
WHERE (54);
A.R.B= S.B AND R.C = S.C AND R.C<S.B
B.R.B= S.B AND R.C = S.C AND R.C<S.F
C.R.B= S.B OR R.C = S.C OR R.C<S.B
D.R.B= S.B OR R.C = S.C OR R.C<S.F
第7题
(36)不是单元测试主要检查的内容。
A.模块接口
B.局部数据结构
C.全局数据结构
D.重要的执行路径
第8题
。若用等价类划分测试方法进行测试,则(35)不是一个合适的测试用例(分号后表示测试的输出)。
A.(2013,1,31)
B.(0,1,‘错误’)
C.(0,13,‘错误’)
D.(2001,-1,‘错误’)
第9题
已知文法G:S->A0|B1,A->S1|1,B->S0|0,其中S是开始符号。从S出发可以推导出(21)。
A.所有由0构成的字符串
B.所有由1构成的字符串
C.某些0和1个数相等的字符串
D.所有0和1个数不同的字符串
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!