大连交通大学-软件工程期末考试(第一套A卷)WORD

更新时间:2023-03-08 05:06:02 阅读量: 高等教育 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

大连交通大学试卷

2007 ~2008 学年 第 1 学期

.

教研室主任

(签字)

学院院长(系主任)

(签字)

.

课程 Software engineering(软件工程)(A卷) (2004 年级) 课程性质(□必修□专业限选□任选) 考试方式(□闭卷□开卷)

一、For each question, there are four choices 得分 marked A,B,C,D, choose the best answer.(each 1 point, total 30 point).

1、The aim of software engineering is to produce software that is:

A. delivered on time B. delivered within budget C. satisfies users' needs D. all of the above

2、More time and money is spent in the ___________ phase than any other

phase.

A. requirements B. specification

C. maintenance D. implementation and integration

、During which phase of the software project management life cycle

should testing occur?

4、In which of the following circumstances might the waterfall software

life-cycle model be an appropriate one to use?

A. large-scale, in-house products

B. for products utilizing an open architecture and complex user-interface

C.large document-driven projects requiring a disciplined approach D. short programs that will not need maintenance

5、A disadvantage of the Incremental model is that: A. clients are not billed until the last build is completed. B. the model can easily degenerate into the 'build-and-fix'

approach.

C. it is not easy to accommodate changes that occur due to external

(competitive, social and regulatory) forces.

D. All of these are disadvantages of the incremental model.

6、A common feature(s) of object-oriented life cycle models is/are:

A. iteration B. parallelism

C. incremental development D. all of the above

7、The democratic team approach is also known as: B. egoless programming

C. bottom-up implementation

3 A. integration B. implementation

C. maintenance D. testing occurs during each phase.

A. the clean-room approach

D. synchronize-and-stabilize teams题 号 得 分 一 二 三 四 五 六 七 八 九 总分 8、In the classical chief programmer team approach, the team member responsible for black box test case generation is:

A. the chief programmer B. the back-up programmer C. programmer D. the programming secretary

9、Stepwise refinement is a problem solving technique that underlies many software

engineering techniques. It can be defined as a means to:

A. specify the product's design up front in order to minimize integration problems

during later phases

B. postpone decisions on details until as late as possible in order to be able to

concentrate on the important issues

C. decompose the problem into pieces of equal importance

D. review the project's deliverables such as specification documents and code by

stepping through them during review meetings

10、A tool that can automatically manage multiple versions is a(n): A. upperCASE tool B. compiler

C. configuration management tool D. structure editor

11、In software engineering the term quality implies: A. excellence

B. the extent to which the product satisfies its specification

C. there have been no fatal or otherwise catastrophic consequences of its operation

D. that comprehensive testing has not revealed the presence of any bugs

12、Why should the SQA group be kept under separate management from the development

team(s)?

A. to increase the employment prospects of the analysts. B. to decrease the cost of managing large teams

C. to facilitate the principle of information hiding that is crucial to

object-oriented systems

D、due to conflicts that may arise as production deadlines approach whilst the

product still has serious faults.

13、The two main design strategies are known as functional design and object-orientated

design. Which of the following statements is false?

A. In an object-orientated design the system state is decentralized and each object

manages its own state information.

B. In functional design the system state is centralized and state information is

accessed by different functions.

C. the most appropriate design strategy is selected for each stage of design, there

is no need to adhere to a single approach during the whole design process.

D. the same design approach must be used in the design of different system components

to ensure consistency, especially for large software systems.

.

考生注意: 考试时间 120 分钟 试卷总分 100 分 共 5 页 第 1 页

.

专 业 班 级 14、A design is said to be a good design if the components are:

A. Strongly coupled and Weakly cohesive B. Strongly coupled and strongly cohesive C. Strongly cohesive and weakly coupled

D. Weakly cohesive and weakly coupled

15、What is/are the major disadvantage(s) of basing the requirement

specification on a prototype model?

A. The rapid prototype cannot stand as a legal statement of a contract

between a developer and a client.

B. Creating a working prototype takes more time and effort than

学 号 装姓 名 订线.

formulating written specifications.

The users are not able to understand them to the same extent that they are able to comprehend written specifications. 16、Using the structured systems approach for specification and design

the emphasis is on: A. Real-Time systems B. actions C. data D. objects

17、Using structured systems analysis, the logic of the processes is

developed by

A. defining the data stores and data flows B. data modeling

C. process decomposition D. decision trees 18、During detailed design ___________ and ___________ are specified. A. algorithms, data structures B. modules, interconnections C. subsystems, interfaces

19、The underlining technique in Data Flow Analysis is: A. generalization B. specialization

C. stepwise refinement D. encapsulation 20、In OOD how can you decide where to locate an action?

A. by assigning it to a class or to a client (i.e. program unit) that

sends a message to an object of that class

B. on the basis of information hiding. i.e. actions performed on state

variables should be local to that class C. by using responsibility-driven design D. by any of these three methods

21、Which UML diagram best emphasizes the chronological order of messages?

C. D. all of these are disadvantages

D. architecture, human computer interactions (HCI)

A. class diagram B. sequence diagram C. collaboration diagram D. use case

22、As a rule of thumb IF statements should not be nested to a depth greater than:

A. 1 B. 2 C. 3 D. 4

23、Black box testing is based on the: A. design document

B. specification document

D. Software Project Management Plan (SPMP) E. all of these

24、A successful test case is one that:

A. detects an already identified fault. B. detects a previously undetected fault. C. runs without a fault being detected.

D.exhaustively tests every path through a module.

25、How many test cases should be prepared for each set when it is specified that an item

must belong to a given set in the specifications? A. 1 B. 2 C. 3 D. none of the above

26、A number of studies have compared strategies for module testing. Which of the following

statements on their relative merits is false? A. code inspection is at least as effective at detecting faults as glass-box and black-box

testing.

B. professional programmers detected more faults with code reading than black-box and

glass-box testing, and the fault detection rate was higher. C. code reading lead to the detection of more interface faults.

D. code walkthroughs proved to be the least cost-effective method.

27、An advantage of top-down implementation and integration is: A. it is easy to determine where the fault lies when a new module is added

B. major design flaws show up early when the logic modules are coded and tested C. operational modules are implemented after their ancestor logic modules

D. none of these.

28、Integration testing should be run by the: A. SQA group

B. programmers who developed the modules

C. analysts who specified the modules' functionality

D. clients

29、During which phase of the software life cycle do you first consider maintenance?

A. implementation B. testing

C. maintenance D. from the very beginning

30、Often the best way of dealing with problems involving the (software) product that are

not emergencies is to: A. fix them

B. find a work-round

C. assign them to the least experienced programmers D. blame someone else

共 5 页 第 2 页

.

专 业 班 级 学 号 姓 名 .

得分 二、Fill in the blank(each blank 1 point ,total 10

point)

1.One simple way of looking at the spiral software life-cycle model is as a waterfall model with each phase proceeded by 2. A CASE device that provides support for one or two activities within the software development process is referred to as a(n) 3.A new version of a faulty module is a(n) 4. is the extent to which the product meets its constraints with regard to response time or space requirements.

5.If a data structure is passed as an argument, but the called module 装 operates on only some of the individual components of that data structure

then they are said to be coupled.

6. CRC stands for Class Responsibility .

7. At the end of the phase test cases can start to be drawn up. 8. When a change is made to a product to react to changes in the environment, this is an example of maintenance.

9. If a maintenance programmer locates a fault and changes it, so introducing another fault in the product, then this is termed a fault.

订 10. The process of starting with the source code and recreating the design

documents or even the specifications is known as

三、Answer the following question.(total 45 point)

1、Explain the following noun.(each 3 point ,total 15 point) (1)Software Engineering

线 (2) Cost-benefit Analysis

(3) Cohesion

(4) Data encapsulation

(5) Reuse

2、Draw the waterfall model and describe its strengths and weaknesses.(6 point)

共 5 页 第 3 页

.

专 业 班 级 学 号 姓 名 .

. 3、List the documentation that should be produced during each phase of the software life cycle. (7 point) 装

4、What is the structure of classical chief programmer team and what are the two key characters of chief programmer team ? (7 points) 线

5、What is the similarity and difference between walkthrough and inspection?(5 points)

6、Determine the cohesion of the following modules,and explain your reason in brief:(5 points)

①Read part number from database and update repair record on maintenance file. ②Calculate new trajectory(弹道)and send it to the printer. ③Get temperature of furnace.

④Open old master file, new master file, transaction file, and print file.

⑤print next line, reverse the string of characters comprising the third argument.

共 5 页 第 4 页

.

专 业 班 级 学 号 姓 名 .

得分 四、Design problems (total 15 point)

1、According to the rule of the airplane company, passengers can have luggage weighted less or equal to 35kg checked for free. The heavy lift additional(超重附加费)is 6¥/Kg for domestic first class passengers(国内头等舱乘客)and 8¥/Kg for other domestic passengers. The heavy lift additional for the foreign passengers is double what it is for the domestic passengers. The heavy lift additional for the disabled is half of that for the normal passengers. Please draw the decision tree for the carriage computation.(7 points) 装 订

线

2、A product is to be installed to control n elevators in a building with m floors. The problem concern the logic required to move elevators between floors according to the following constrains:

1) Each elevator has a set of m buttons, one for each floor. These illuminate when pressed and cause the elevator to visit the corresponding floor. The illumination is canceled when the corresponding floor is visited by the elevator.

2) Each floor, except the first floor and the top floor, has two buttons, one to request an up-elevator and one to request a down-elevator. These buttons illuminate when pressed. The illumination is canceled when an elevator visits the floor and then moves in the desired direction.

3) When an elevator has no request, it remains at its current floor with its doors closed. Assume that you are in the Object Oriented Analysis phase, please draw the use-case diagram and class diagram for this product.(8 points)

共5页 第 5 页

.

2007-2008_1 Software engineering Key Answers (Paper A)

一、For each question, there are four choices marked A,B,C,D, choose the best answer.(each 1 point,

total 30 point).

1.D 2.C 3.D 4.C 5.B 6.D 7.B 8.B 9.B 10.C 11.B 12.D 13.D 14.C 15.A 16.B 17.D 18.A 19.C 20.D 21.B 22.C 23.B 24.B 25.B 26.A 27.B 28.A 29.D 30.B 评分标准:选对给1分,选错给0分。

二、Fill in the blank(each blank 1 point ,total 10 point)

1. risk analysis 2. workbench 3.revision 4.Performance 5.stamp 6.Collaboration 7.specification 8.adaptive 9. regression 10. reverse engineering

评分标准:完全填对给1分;仅有1处拼写错误的不扣分,拼写错误累计2个扣1分;有3处拼

写错误的扣1分,拼写错误累计4个扣2分。单词拼写错误十分严重,无法猜测其拼写意图的不给分。

三、Answer the following question.(total 45 point) 1.(15 point)

(1)Software Engineering:Software Engineering is a discipline whose aim is to produce fault-free

software ,to deliver software on time and within budget and to satisfy the clients’ requirements.

(2) Cost-benefit Analysis:A basic principle underlying many software engineering techniques to compare

estimated future benefits and costs.

(3) Cohesion:Degree of interaction within a module.

(4) Data encapsulation:Data structure together with the operations on it.

(5) Reuse:Use components of one product to simplify the development of another product that has different functions.

评分标准:允许用自己的语言表述名词的意思,根据回答情况酌情给分。 2. (6 point)

Advantages: Disciplined approach; Document-driven

Disadvantages: Delivered product may not meet client’s needs

评分标准:画出瀑布模型图给4分,根据绘图完整情况酌情扣分。瀑布模型的优缺点各占1分。

3. (7 point)

.

Requirements phase: record of discussions with client; document stating client’s needs and/or a rapid prototype.

Specification phase: specification document; software project management plan. Design phase: architectural design; detailed design of each module.

Implementation phase: source code; comments in the source code; test cases for each module.

Integration phase: commented source code of product as a whole; test cases for product as a whole; user manual, operator manual, other manuals.

Maintenance phase: record of changes made, with reasons; regression test cases; modified documentation from previous phases.

Retirement phase: why it was retired, when, and by whom.

评分标准:每列出一个阶段的文档得1分,只列出7个阶段,而没有列出文档情况得2分,其他情况

酌情扣分。

4. (7 points)

(5 分)

Two key aspects: Specialization and Hierarchy(2分)

评分标准:列出主程序员结构得5分,每列出1种特点得1分,如果只列出了主程序员的成员,而没

有列出之间的关系,扣1分。其他情况酌情扣分。

5. (5 points)

Both are review processes performed by teams with the aim of finding faults. In both cases the material is studied by individual team members, and then the material is reviewed by the team as a group.

The major differences are: an inspection is a formal five-step process while a walkthrough has two informal steps; previously acquired fault statistics play an important role in the inspection process; there is a formal component of the inspection process for ensuring that all faults noted are later corrected; if more than a certain fraction of the material is changed then it must be submitted for reinspection. 评分标准:列出相同点得2分,列出不同点得3分,其他情况酌情扣分。 6. (5 points)

(1) Procedural cohesion: A module has communicational cohesion if it performs a series of actions related by the sequence of steps to be followed by the product and if all the actions are performed on the same data.

(2) Communicational cohesion: A module has communicational cohesion if it performs a series of actions related by the procedure to be followed by the product, but in addition all the actions operate on the same data

(3) Functional cohesion. A module performs exactly one action or achieves a single goal has functional cohesion.

(4) Temporal cohesion. A module has temporal cohesion when it performs a series of actions related in time (5) Coincidental cohesion. A module has coincidental cohesion if it performs multiple, completely unrelated actions.

评分标准:每判断正确一种情况得1分,如果判断错误,但是相应的解释正确给0.5分,其他情况酌

.

情扣分。

四、Design problems (total 20 point) 1. (7 points)

normal: (W-35)*6W<=35 Kg: freefirst classdisabled: (W-35)*3normal: (W-35)*8disabled: (W-35)*4normal: (W-35)*12disabled: (W-35)*6normal: (W-35)*16othersdisabled: (W-35)*8domesticW>35 Kgforeignothersfirst class

评分标准:每列出一种情况得1分,列出5种情况得3分,列出7种情况得5分,列出所有9种情况

得7分,其他情况酌情扣分。

2. (8 points)

……………3 points

……………

…………………5 points

.

评分标准:

用例图3分:一个角色,两个用例各占1分。

类图5分:两个类1分,共3分;继承关系1分,类之间的关系1分,如果出现错误单词或者漏写属性总共扣1分。

.

评分标准:

用例图3分:一个角色,两个用例各占1分。

类图5分:两个类1分,共3分;继承关系1分,类之间的关系1分,如果出现错误单词或者漏写属性总共扣1分。

.

本文来源:https://www.bwwdw.com/article/co8.html

Top