The design model test of system architect in the past years-2012 _ System Architect

Source: Internet
Author: User

2012 System Architect Exam in the afternoon, there is a 25-point design pattern, the morning is still 5 multiple-choice questions, can be said to be from the 2009 test design mode of the largest number of the year. Sunny friendship Suggestion: suggest you do these questions first, see whether can correct answer, if in the solution at the same time can come up with concrete design and implementation plan, I believe will certainly benefit greatly. , the question analysis and the reference answer for sunny individual makes, May and some already published "The standard answer" may differ, if has the different opinion, welcome the exchange. "Description: In order to reflect the authenticity of the test questions, each of the questions to retain the original true question number"


2012 System architect Test Design Model questions are as follows:


"National Computer technology and software Professional and technical qualification (level) Examination 2012 second half of the system architect morning paper"


If a child module in the system needs to provide access to different database systems for other modules, the access interfaces provided by these database systems are different, but the access process is the same, for example, by connecting the database first, then opening the database, and finally querying the data. For the above requirements, the (49) design pattern can be used to abstract the same database access process, the design pattern (50).

(A). Appearance B. Decorate C. Bridging D. Henry Yuan

(m) A. You can add responsibilities to a single object dynamically and transparently

B A high-level interface is defined for the subsystem, which makes the subsystem easier to use

C Effective support for a large number of fine-grained objects through the use of shared technology

D Separate the abstract part from its implementation so that they can all change independently


A software company wants to design an image processing software to help users take photos of the post processing. In the software requirements analysis phase, the company's system analyst identified the following 3 key requirements:

The image processing software needs to record all the actions of the user in the process of the photo, and can support the action of the user to undo and redo.

The image processing software needs to choose the appropriate processing operation according to the different features of the photo currently being processed, and there is a more complex logical relationship between the processing operation and the photo feature.

Image processing software needs to encapsulate a variety of image processing algorithms, users can flexibly choose the appropriate processing algorithm; The software also supports advanced users to add custom processing algorithms based on certain rules.

In the system design phase, the company's architects decide to adopt the design pattern to meet the requirements of the system flexibility and scalability in these key requirements. Specifically, in order to support the flexible undo and redo behavior, the use of (51) is the most appropriate; In order to encapsulate the complex logical relationship between image operation and photo feature, it is most appropriate to adopt (52);

(Wuyi) A. Factory mode B. Responsibility chain mode C. Mediator mode D. Command mode

(A). State mode B. Adapter Mode C. Combination Mode D. Single case mode

(A). Template method Mode B. Visitor Mode C. Policy Mode D. Observer mode


"National Computer technology and software Professional technical qualification (level) Examination 2012 second half of the system architect afternoon paper"


Question Four (total 25 points)

Read the following narrative about object-oriented system modeling and answer questions 1 to 3 on the answer sheet.

Description

A software company develops an online sales system for audio and video products sales companies to improve service quality and efficiency. After discussion, the project team decided to develop the system with object-oriented method. The following design requirements need to be met during the design modeling phase:

(1) W company often carry out promotional activities. Depending on the conditions (such as total order, quantity of goods, type of product, etc.), the company can offer a percentage discount or a variety of promotional methods such as cash deduction for the user to submit the order. The amount of code that is used to implement each promotion is large and is modified frequently as a promotional strategy differs. The system design needs to consider the existing promotions and new promotions, rather than often rewrite the controller class code.

(2) The online sales system needs to calculate the tax rate for each order, and the tax rate and the method of calculation of the different goods will differ. So W company decided to call the tax rate calculation class directly from different commodity vendors in the system, but each vendor's class provided a different invocation method. System design needs to consider if the company has replaced the supplier, should be as little as possible in the system to modify or create new classes.

The project team architect decides to adopt design patterns to meet the above design requirements and to determine the choices from the currently proficient design patterns, including adapter mode (Adapter), constructor mode (Builder), Command mode (commands), Appearance mode (façade), mediation mode (mediator), prototype mode (PROTOTYPE), proxy mode (proxy), State mode (states), and Policy mode (strategy).


"Question 1" (6 points)

The design pattern can be divided into three types according to its application pattern: creation type, structure type and behavior type, please explain the function of three characters within 200 words.

"Question 2" (9 points)

Classify the design patterns already mastered by the team into the creation, structure, and behavior patterns, according to their role.

"Question 3" (10 points)

For the design requirements (1) and (2) presented in the topic, the project team should choose which design pattern to be chosen separately. Please specify the solution within 200 words.

--------------------------------------------------------------------------------------------------------------- ---------------------------------------

Questions analysis and solution will be released as soon as possible.



Previous Questions Link:

Analysis on the design model of the system architect Test in the past years-2009

Analysis on the design model of the system architect Test in the past years-2010

Analysis on the design model of the system architect Test in the past years-2011


"Author: Liu Wei Http://blog.csdn.net/lovelion"


from:http://blog.csdn.net/lovelion/article/details/21410435

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.