当前位置:文档之家› 大连交通大学,软件工程期末考试(第一套A卷)

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

大连交通大学试卷2007 ~2008 学年第1 学期教研室主任(签字)学院院长(系主任)(签字)课程 Software engineering(软件工程)(A卷) (2004 年级)课程性质(□必修□专业限选□任选)考试方式(□闭卷□开卷)一、For each question, there are four choicesmarked A,B,C,D, choose the best answer.(each 1point, total 30 point).1A. delivered on timeB. delivered within budgetC. satisfies users' needsD. all of the above2、More time and money is spent in the ___________ phase than any otherphase.A. requirementsB. specificationC. maintenanceD. implementation and integration3、During which phase of the software project management life cycleshould testing occur?A. integrationB. implementationC. maintenanceD. testing occurs during each phase.4、In which of the following circumstances might the waterfall softwarelife-cycle model be an appropriate one to use?A. large-scale, in-house productsB. for products utilizing an open architecture and complexuser-interfaceC.large document-driven projects requiring a disciplined approachD. short programs that will not need maintenance5、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. iterationB. parallelismC. incremental developmentD. all of the above7、The democratic team approach is also known as:A. the clean-room approachB. egoless programmingC. bottom-up implementationD. synchronize-and-stabilize teamsbox test case generation is:A. the chief programmerB. the back-up programmerC. programmerD. the programming secretary9、Stepwise refinement is a problem solving technique that underlies many softwareengineering techniques. It can be defined as a means to:A. specify the product's design up front in order to minimize integration problemsduring later phasesB. postpone decisions on details until as late as possible in order to be able toconcentrate on the important issuesC. decompose the problem into pieces of equal importanceD. review the project's deliverables such as specification documents and code bystepping through them during review meetings10、A tool that can automatically manage multiple versions is a(n):A. upperCASE toolB. compilerC. configuration management toolD. structure editor11、In software engineering the term quality implies:A. excellenceB. the extent to which the product satisfies its specificationC. there have been no fatal or otherwise catastrophic consequences of its operationD. that comprehensive testing has not revealed the presence of any bugs12、Why should the SQA group be kept under separate management from the developmentteam(s)?A. to increase the employment prospects of the analysts.B. to decrease the cost of managing large teamsC. to facilitate the principle of information hiding that is crucial toobject-oriented systemsD、due to conflicts that may arise as production deadlines approach whilst theproduct still has serious faults.13、The two main design strategies are known as functional design and object-orientateddesign. Which of the following statements is false?A. In an object-orientated design the system state is decentralized and each objectmanages its own state information.B. In functional design the system state is centralized and state information isaccessed by different functions.C. the most appropriate design strategy is selected for each stage of design, thereis 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 componentsto ensure consistency, especially for large software systems.14、A design is said to be a good design if the components are:A. Strongly coupled and Weakly cohesiveB. Strongly coupled and strongly cohesiveC. Strongly cohesive and weakly coupledD. Weakly cohesive and weakly coupled15、What is/are the major disadvantage(s) of basing the requirementspecification on a prototype model?A. The rapid prototype cannot stand as a legal statement of a contractbetween a developer and a client.B. Creating a working prototype takes more time and effort thanformulating written specifications.C. The users are not able to understand them to the same extent thatthey are able to comprehend written specifications.D. all of these are disadvantages16、Using the structured systems approach for specification and designthe emphasis is on:A. Real-Time systemsB. actionsC. dataD. objects17、Using structured systems analysis, the logic of the processes isdeveloped byA. defining the data stores and data flowsB. data modelingC. process decompositionD. decision trees18、During detailed design ___________ and ___________ are specified.A. algorithms, data structuresB. modules, interconnectionsC. subsystems, interfacesD. architecture, human computer interactions (HCI)19、The underlining technique in Data Flow Analysis is:A. generalizationB. specializationC. stepwise refinementD. encapsulation20、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) thatsends a message to an object of that classB. on the basis of information hiding. i.e. actions performed on statevariables should be local to that classC. by using responsibility-driven designD. by any of these three methods21、Which UML diagram best emphasizes the chronological order ofmessages?A. class diagramB. sequence diagramC. collaboration diagramD. use case装订线22、As a rule of thumb IF statements should not be nested to a depth greater than:A. 1B. 2C. 3D. 423、Black box testing is based on the:A. design documentB. specification documentD. Software Project Management Plan (SPMP)E. all of these24、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 itemmust belong to a given set in the specifications?A. 1B. 2C. 3D. none of the above26、A number of studies have compared strategies for module testing. Which of the followingstatements on their relative merits is false?A. code inspection is at least as effective at detecting faults as glass-box and black-boxtesting.B. professional programmers detected more faults with code reading than black-box andglass-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 addedB. major design flaws show up early when the logic modules are coded and testedC. operational modules are implemented after their ancestor logic modulesD. none of these.28、Integration testing should be run by the:A. SQA groupB. programmers who developed the modulesC. analysts who specified the modules' functionalityD. clients29、During which phase of the software life cycle do you first consider maintenance?A. implementationB. testingC. maintenanceD. from the very beginning30、Often the best way of dealing with problems involving the (software) product that arenot emergencies is to:A. fix themB. find a work-roundC. assign them to the least experienced programmersD. blame someone else共 5 页第2 页二、Fill in the blank(each blank 1 point ,total 10point)1.One simple way of looking at the spiral software life-cycle model is asa waterfall model with each phase proceeded by2.A CASE device that provides support for one or two activities withinthe 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 constraintswith regard to response time or space requirements.5.If a data structure is passed as an argument, but the called moduleoperates 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 bedrawn 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, sointroducing another fault in the product, then this is termed afault.10.The process of starting with the source code and recreating the designdocuments 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) Reuse2、Draw the waterfall model and describe its strengths and weaknesses.(6 point)共 5 页第3 页What is the structure of classical chief programmer team and what arethe 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 reasonin 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 页less or equal to 35kg checked for free. The heavy lift )is 6¥/Kg for domestic first class passengers(国¥/Kg for other domestic passengers. The heavy liftThe heavy lift additional for the disabled is half2、A product is to be installed to control n elevators in a building with m floors. The problemconcern 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 pressedand 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 requestan 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.D2.C3.D4.C5.B6.D7.B8.B9.B 10.C11.B 12.D 13.D 14.C 15.A 16.B 17.D 18.A 19.C 20.D21.B 22.C 23.B 24.B 25.B 26.A 27.B 28.A 29.D 30.B评分标准:选对给1分,选错给0分。

相关主题