In a world where it seems we already ha

考试题库2022-08-02  26

问题 In a world whereit seems we already have too much to do, and too many things to think about, itseems the last thing we need is something new that we have to learn.But use cases dosolve a problem with requirements:with (71) declarative requirements it's hard to describe steps and sequences ofevents.Use cases, statedsimply, allow description of sequences of events that, taken together, lead toa system doing something useful.As simple as this sounds,this is important.When confronted only with a pile of requiements, it's often(72)to make sense of what the authors of therequirements really wanted the system to do.In the preceding example, use casesreduce the ambiguity of the requirements by specifying exactly when and underwhat conditions certain behavior occurs;as such, the sequence of the behaviors canbe regarded as a requirement. Use cases are particularly well suited to captureapproaches. Although this may sound simple, the fact is that (73) requirement capture approaches, with theiremphasis on declarative requirements and "shall"statements,completely fail to capture fail to capture the (74) of the system's behavior. Use cases are asimple yet powerful way to express the behavior of the system in way that allstakeholders can easily understand.But,likeanything, use cases come with their own problems, and as useful as theyare,they can be (75). The result is something that is as bad, if not worse, that the originalproblem.Therein it's important to utilize use cases effectively withoutcreating a greater problem than the one you started with.A.misappliedB.appliedC.usedD.powerful

选项 A.misapplied
B.applied
C.used
D.powerful

答案 A

解析 在这个世界上,似乎我们有太多的事情要去做,有太多的事情要去思考,那么需要做的最后一件事就是必须学习新事物。

而用例恰恰可以解决带有需求的问题:如果具有严格声明的需求,则很难描述事件的步骤和序列。

简单地说,用例可以将事件序列的说明放在一起,引导系统完成有用的任务。正如听起来一样简单---这很重要。在面对很多需求的时候,通常不太可能理解需求的作者真正想要系统做什么。在前面的例子中,通过指定特定行为发生的时间和条件,用例减少了需求的不确定性。这样的话,行为的顺序就可以当作是一种需求。用例特别适用于捕捉这类需求。尽管听起来可能很简单,但事实情况是由于常规的需求捕捉方法所侧重的是声明需求和“应该怎么样”的陈述,因此完全无法捕捉系统行为的动态方面。用例是一种简单而有效的表达系统行为的方式,使用这种方式所有参与者都很容易理解。

但是与任何事物一样,用例也存在自己的问题---在用例非常有用的同时,人们也可能误用它,结果就产生了比原来更为糟糕的问题。因此重点在于:如何有效地使用用例,而又不会产生比原来更严重的问题。
转载请注明原文地址:https://tihaiku.com/congyezige/2407499.html

最新回复(0)