软件体系架构选择题

1 W3

What quality attribute be supported by isolating the user interface from business process? ()(20分)得分: 20 分

A、 Availability

B、 Testability

C、 Performance

D、 Usability

Who mostly care about the cost of product in stakeholder? ()(20分)得分: 20 分

A、 Customer

B、 User

C、 Architect

D、 Developer

3、What technical lessons do you get from the Vasa warship story? ()(20分)得分: 20 分

A、 Requirement decide system

B、 Evaluating the architecture can mitigate the risks

C、 Requirement decide architecture

D、 Successful architectural practices is important

E、 Incremental architecture-based development can uncover design flaws

4、Which structures of the following are dynamic structures? ()(20分)错误

A、 Deployment structure

B、 Uses structure

C、 Concurrency structure

D、 Service structure

E、 Implementation structure

5、Which concepts of the following are correct about the software architecture? ()(20分)错误

A、 Software architecture is consisted of a structure

B、 Software architecture is an abstraction[正确答案]

C、 Every software system has software architecture [正确答案]

D、 Not all architecture is good architecture[正确答案]

E、 Architecture evaluation is valuable[正确答案]

2 W4

1、Which statements of the following are wrong?()(20分)得分: 20 分

A、Quality goes beyond function

B、Quality is the how well does the function satisfy the needs of stakeholders

C、Function goes beyond quality

D、A quality attribute is a measurable or testable property of a system quality

2、How do you express quantitatively the quality?()(20分)得分: 20 分

A、By quality attribute

B、By quality attribute scenarios

C、By tactics

D、By design decision

3、Which quality attributes are related to the runtime of software?()(20分)错误

A、Availability**[正确答案]**

B、Modifiability

C、Performance[正确答案]

D、Security[正确答案]

E、Usability[正确答案]

4、Which quality attributes belong to running quality subdomain in McCall software quality model?()(20分)错误

A、Testability

B、Stability[正确答案]

C、Portability

D、Performance[正确答案]

E、Integrity[正确答案]

5、Which parts does the quality attribute scenario include?()(20分)得分: 20 分

A、Source of stimulus

B、Stimulus

C、Response measure

D、Environment

E、Response measure

3 W5

1、Which following percentage is the high availability? ()(20分)得分: 20 分

A、99.9%

B、99.99%

C、99.999%

D、99.9999%

2、Which class of availability tactics does exception detection tactic belong to? ()(20分)得分: 20 分

A、Fault detection

B、Fault prevention

C、Preparation and repair

D、Reintroduction

3、Which redundancy method has check model-mode failure: same input, different algorithm, and the same output? ()(20分)得分: 20 分

A、Analytic redundancy

B、Functional redundancy

C、Replication

D、Voting

二、多选题

4、What following availability tactics are belong to fault recovery tactics? ()(20分)得分: 20 分

A、Active redundancy

B、Passive redundancy

C、Spare

D、Monitor

E、Increase competence set

5、Which following items belong to stimulus of general availability quality attribute scenario? ()(20分)得分: 20 分

A、Incorrect response

B、Incorrect timing

C、Processor

D、Omission

E、Crash

4 W6

1、Which modifiability tactics category does “abstract common services” tactic belongs to?()(20分)得分: 20 分

A、Reduce size of a module

B、Increase cohesion

C、Reduce coupling

D、Defer binding

2、Which tactic does “reduce calculating accuracy” support? ()(20分)得分: 20 分

A、Increase resource

B、Bound execution times

C、Increase resource efficiency

D、Reduce overhead

二、多选题

3、What are the possible values of x after both threads have executed following statements? ()Supposed there are two same threads, the code of the thread below:x = 3;x++;(20分)得分: 20 分

A、3

B、4

C、5

D、6

E、7

4、Which following tactics are the manage resource demand performance tactics? ()(20分)错误

A、Manage sampling rate

B、Increase resources[正确答案]

C、Reduce overhead

D、Bound queue sizes[正确答案]

E、Increase resource efficiency

5、Which questions should be considered when architect plan for modifiability? ()(20分)错误

A、What can be changed?[正确答案]

B、When is the change made?[正确答案]

C、Who makes change?[正确答案]

D、Why do we change?[正确答案]

E、What is the likelihood of the change?[正确答案]

Midterm

1、Which quality attributes is supported by maintain user model tactic? () (2分)得分: 2 分

A、Availability

B、Testability

C、Performance

D、Usability

2、Which quality attributes is related with all other quality attributes including variability, portability, and scalability? () (2分)得分: 2 分

A、Availability

B、Modifiability

C、Performance

D、Usability

3、Which redundancy is the hardest implementation? ()(2分)得分: 2 分

A、Replication redundancy

B、Functional redundancy

C、Analytic redundancy

D、Common redundancy

4、Which one use the variability mechanism according to the variability cost formula if the software is predicted to change 10 times? ()Variability cost formula: N × cost1 relate to cost2 + ( N ×cost3 ) (2分)得分: 2 分

A、cost1 = 200, cost2 = 1500, cost3 = 60

B、cost1 = 200, cost2 = 1200, cost3 = 85

C、cost1 = 200, cost2 = 1000, cost3 = 95

D、cost1 = 200, cost2 = 800, cost3 = 125

5、What modifiability tactics does “layered structure”support? () (2分)得分: 2 分

A、Refactor

B、Restrict dependencies

C、Use an intermediary

D、Encapsulate

二、多选题

6、Which following quality attributes relate to modifiability quality attributes? ()(4分)得分: 4 分

A、Mobility

B、Variability

C、Deployability

D、Portability

E、Scalability

7、Which following tactics does performance quality attributes include? ()(4分)得分: 4 分

A、Redundancy

B、Increase cohesion

C、Reduce overhead

D、Schedule resources

E、Aggregate

8、Which items of the following are included in the stimulus of availability general scenario? ()(4分)得分: 4 分

A、Run time

B、Crash

C、Timing

D、Response

E、Human

9、Which types of the following are included in the redundancy tactic of availability? ()(4分)错误

A、System exceptions

B、Self - test

C、Active redundancy[正确答案]

D、Passive redundancy[正确答案]

E、Spare[正确答案]

10、Which tactics of the following belong to prevent faults tactics? ()(4分)得分: 4 分

A、Ping / echo

B、Removal from service

C、Predictive model

D、Increase competence set

E、Heartbeat

5 W7

1、Which quality attribute is the most expensive method that increases user’s satisfaction? ()(20分)错误

A、Modifiability

B、Availability[正确答案]

C、Usability

D、Performance

2、Which quality attribute relate to quality in use? ()(20分)得分: 20 分

A、Marketability

B、Effectiveness

C、Conceptual integrity

D、Maintainability

二、多选题

3、How do you deal with the unknown quality attributes? ()(20分)得分: 20 分

A、Capture scenarios for the new quality attributes

B、Assemble design approaches for the new quality attribute

C、Model the new quality Attribute

D、Assemble a set of tactics for the new quality attribute

E、Abandon

4、Which following quality attribute relate to modifiability quality attribute? ()(20分)错误

A、Variability[正确答案]

B、Portability[正确答案]

C、Scalability[正确答案]

D、Elasticity[正确答案]

E、Monitorability

5、What tactics support to separate interface? ()(20分)得分: 20 分

A、Increase semantic coherence

B、Increase resource

C、Restrict dependencies

D、Encapsulate

E、Maintain task model

6 W9

1、What pattern category is the pipe and filter architecture pattern? ()(20分)得分: 20 分

A、Module pattern

B、Component and connector pattern

C、Allocation pattern

D、Create pattern

2、How many architectural patterns does a system can include? ()(20分)错误

A、One

B、Two

C、Three

D、Uncertain**[正确答案]**

3、What is the relation among elements in layer architectural pattern? ()(20分)错误

A、Allow to use[正确答案]

B、Attachment

C、Notify

D、Message

二、多选题

4、Which parts does architectural pattern include? ()(20分)得分: 20 分

A、Context

B、Problem

C、Name

D、Application

E、Merits

5、What weaknesses does the broker pattern have? ()(20分)得分: 20 分

A、Adds up-front complexity

B、A broker may be a target for security attacks

C、A broker may be difficult to test

D、Not be worth it for simple user interfaces

E、The broker can be a single point of failure

7 W10

1、What architectural pattern do we select if large numbers of distributed clients want to control access of shared resources or quality of services? ()(20分)得分: 20 分

A、Pipe and filter architectural pattern

B、SOA architectural pattern

C、Map-Reduce architectural pattern

D、C/S architectural pattern

2、Which following statement about architectural pattern is wrong? ()(20分)

A、P2P architectural pattern supports performance quality attribute.

B、Map reduce architectural pattern supports performance quality attribute.

C、MVC architectural pattern supports performance quality attribute.

D、Layer architectural pattern supports modifiability quality attribute.

二、多选题

3、Which following architectural pattern have attachment relation? ()(20分)错误

A、C/S architectural pattern[正确答案]

B、Publish-subscribe architectural pattern[正确答案]

C、SOA architectural pattern[正确答案]

D、Broker architectural pattern[正确答案]

E、Map-Reduce architectural pattern

4、Which weaknesses does SOA architectural pattern include? ()(20分)错误

A、Managing security, data consistency, data/service availability, backup, and recovery are all more complex

B、There is a performance overhead an associated with the middleware[正确答案]

C、You don’t control the evolution of independent services[正确答案]

D、Less control over ordering of messages

E、Delivery of messages is not guaranteed

5、Which following quality attributers does Map reduce architectural pattern support? ()(20分)错误

A、Availability[正确答案]

B、Modifiability

C、Performance[正确答案]

D、Usability

E、Testability

8 W11

1、What is the open and close principle? ()(20分)错误

A、Prohibiting modify the existed code in modules

B、The behavior of modules can be expanded

C、The existed code can’t be modified and the behavior can be expanded in modules**[正确答案]**

D、The behavior of modules can’t be expanded

2、Which factory design pattern conditionally satisfies open and close principle? ()(20分)错误

A、Factory method

B、Factory design pattern

C、Simple factory design pattern

D、Abstract factory design pattern**[正确答案]**

3、Which design pattern produce only one object? ()(20分)得分: 20 分

A、Composite design pattern

B、Singleton design pattern

C、Factory design pattern

D、Builder pattern

二、多选题

4、Which types does the factory design pattern include? ()(20分)错误

A、Factory method

B、Simple factory design pattern[正确答案]

C、Factory design pattern[正确答案]

D、Singleton design pattern

E、Builder design pattern

5、Which following patterns belong to the structural design pattern? ()(20分)得分: 20 分

A、Factory design pattern

B、Builder design pattern

C、Singleton design pattern

D、Composite design pattern

E、Adapter design pattern

9 W12

1、What purpose is structural design pattern? ()(20分)得分: 20 分

A、Create object

B、Compose object

C、Transfer the complex control flows to relationship between objects.

D、Deploy object

2、What is the correct order of creating object in command design pattern? ()(20分)错误

A、Client -> invoker -> command -> receiver

B、Client -> receiver -> command -> invoker**[正确答案]**

C、Client -> invoker -> receiver-> command

D、Client -> command -> invoker –> receiver

二、多选题

3、Which following design patterns satisfy the open and close principle? ()(20分)错误

A、Factory design pattern**[正确答案]**

B、Command design pattern[正确答案]

C、Adaptor design pattern**[正确答案]**

D、Iterator design pattern[正确答案]

E、Singleton design pattern

4、Which following parts are the components of command design pattern? ()(20分)得分: 20 分

A、Visitor

B、Element

C、Object structure

D、Invoker

E、Receiver

5、Which following patterns belong to the behavioral design pattern? ()(20分)得分: 20 分

A、Factory design pattern

B、Command design pattern

C、Adaptor design pattern

D、Iterator design pattern

E、State design pattern

10 W13

1、Usually, should you design for one or all of the ASRs at a time? ( )(20分)得分: 20 分

A、One

B、Two

C、Three

D、All

2、What strategy of iteration will be used in general context? ( )(20分)得分: 20 分

A、 Depth first

B、 Breadth first

C、 Mixed strategy

D、Any strategy

二、多选题

3、What is the idea of design strategy to architecture design methods? ( )(20分)错误

A、 Decomposition[正确答案]

B、 Designing to architectural significant requirements[正确答案]

C、 Generate and test[正确答案]

D、Iteration[正确答案]

E、Repetition

4、Which collateral can be included when you initialize design hypothesis? ( )(20分)得分: 20 分

A、Existing systems

B、Frameworks available to the project

C、Known architecture patterns

D、Design checklists

E、Domain decomposition

5、Which steps does ADD method include? ( )(20分)错误

A、 Choose an element of the system to design[正确答案]

B、 Identify the ASRs for the chosen element[正确答案]

C、 Generate a design solution for the chosen element[正确答案]

D、Test the design solution**[正确答案]**

E、Iterator**[正确答案]**

你可能感兴趣的:(架构,java,前端)