exam

9
PETRONAS COURSE DATE TIME TCB3313 - SOFTWARE DESIGN AND ARCHITECTURE 8rH JANUARY 2015 (THURSDAY) 9.00 AM - 12.00 NOON (3 HOURS) INSTRUCTIONS TO CANDIDATES 1. 2. 3. 4. 5. Answer ALL questions from the Question Booklet. Begin EACH answers on a new page in the Answer Booklet. lndicate clearly answers that are cancelled, if any. where applicable, show clearly steps taken in arriving at the solutions and indicate all assumptions. Do not open this Question Booklet until instructed. There are NINE (9) pages in this Question Booklet including the cover page. FINAL EXAMINATION SEPTEMBER 201 4 SEMESTER Note : Universiti Teknologi pETRoNAs

Upload: mingmiin-teoh

Post on 14-Dec-2015

3 views

Category:

Documents


0 download

DESCRIPTION

ssssa

TRANSCRIPT

Page 1: exam

PETRONAS

COURSE

DATE

TIME

TCB3313 - SOFTWARE DESIGN AND

ARCHITECTURE

8rH JANUARY 2015 (THURSDAY)

9.00 AM - 12.00 NOON (3 HOURS)

INSTRUCTIONS TO CANDIDATES

1.

2.

3.

4.

5.

Answer ALL questions from the Question Booklet.

Begin EACH answers on a new page in the Answer Booklet.

lndicate clearly answers that are cancelled, if any.

where applicable, show clearly steps taken in arriving at the solutions and

indicate all assumptions.

Do not open this Question Booklet until instructed.

There are NINE (9) pages in this Question Booklet including the

cover page.

FINAL EXAMINATIONSEPTEMBER 201 4 SEMESTER

Note :

Universiti Teknologi pETRoNAs

Page 2: exam

TCB 3313

1. a. i. Describe the product line paradigm.

[2 marks]

¡¡. using a diagram, explain how this paradigm will produce anarchitecture that supports the testability quality attribute.

[3 marks]

b. i. Describe the proxy design pattern.

[2 marks]

ii. using a diagram, explain how this design pattern is used inachieving the security quality attribute.

[3 marks]

c. i. Describe the pipe and filter architecture pattern,

[2 marks]

ii. using a diagram, explain how this architecture pattern is used inachieving the performance quality attribute.

[3 marks]

d. i. Describe the heartbeat tactic.

[2 marks]

¡i. using a diagram, explain how this tactic is used in achieving theavaílability quality attributes.

[3 marks]

Page 3: exam

ct.2.

TCB 3313

FIGURE Q2a is a class diagram for a software that create a graphicalsimulation of data structures such as linked-list, binary trees, rings andbidirectional linked-list. The Darastrucrurecrearor class and itssubclasses are used to create objects for different data structures.

FIGURE Q2a

i. State the design pattern being used in FTGURE e2a.

[2 marks]

i. Propose a situation to demonstrate the maintainability tactics beingapplied by the design pattern.

[8 marks]

Page 4: exam

b.

TCB 3313

FIGURE Q2b is a class diagram for systems such as Google Maps. TheActualGraphic class represents the map section that is viewed by theuser and will be generated as soon as the map section is opened. TheGrayReplacement is the temporary image being displayed while waitingfor the system to produce the actual map images,

I State the design pattern being used in Figure Q2b,

[2 marks]

ii. Propose a situation to demonstrate the performance tactics beingapplied by the design pattern.

[8 marks]

4

FIGURE Q2b

Page 5: exam

3.

TCB 3313

Create a scenario for the following case studies and state which quality attribute

being demonstrated by the scenario.

a. When a railway ticket buying machine receives unacceptable coins under

normal operating condition, the system shall return the coins and continue

its operation without downtime.

[6 marks]

When a digital camera user clicks the 'take picture' button to take a picture

in a low lighting environment and the camera setting is set to automatic, the

camera shall modify the aperture and/or shutter speed automatically without

users needing some time to manually adjust the aperture and shutter

speed.

[7 marks] -

ln a normal operating environment of a social networking system, the

system shall allow the system administrator to monitor the network traffic

and detect unethical use of the networking site within t hour.

[7 marks]

b.

c.

5

Page 6: exam

4.

TCB 3313

You are appointed as an architect for a project to develop self-service registration

machine for the local hospital. At the local hospital, several machines will be

installed at various departments. The patients use the system to register

themselves by entering their lC number. The machine will then produce queueing

number. Once registered, the patient's name is entered into a waiting list and the

doctors and hospital's patient registration staff can view this list. The doctors can

then select the patient's name from the list and see the patient's medical history.

The doctors are also allowed to amend the medical history, lf the patient is

fon¡rarded to another department, the patient's case is fonrvarded to the new

department and the patient is put under the in-patient waiting list, which isdifferent than the out-patient waiting list. A patient's case being transferred to

another department must be received by the receiving department within 5minutes. The patient in the in-patient list is given the advantage over the patients

in the out-patient list. Once the patient has arrived at the new department, the

patient still needs to register using the machine by entering his/her lC number but

this is only to notify the system that the patient has arrived at the new

department. Note that the system must follow the existing general business

process for patient registration.

a. Create a scenario for the situation when a patient is forwarded to anotherdepartment.

[6 marks]

Page 7: exam

b.

TCB 3313

The self-service registration machine is connected to the patient database,which is stored in the storage seryer, and the centralized patient healthmonitoring system, which resides in an application server. The availabilityof the storage server is very critical and the downtime must be no longerthan 2 seconds. The availability of the application server is a majorconcern and the downtime must be within 10 minutes.

Design the system architecture to show the connection between the self-service registration machine, the application server and storage server.

(NorE: The architecture must also show the application of activeredundancy and passive redundancy tactics.)

[6 marks]

Design the system architecture showing an application of the commanddesign pattern using the UML class diagram notation.

[8 marks]

c.

Page 8: exam

5.

TCB 3313

FIGURE Q5 shows the architecture for a code editor and compiler. The main

functions of a code editor are compile, build, execute, debug and refactor. Other

than these functions, the code editor also provides basic text editor functions

such as copy, paste, undo, open file and create new file.

FIGURE Q5

a. Discuss the problems and the quality attribute being achieved when using

the design pattern shown in FIGURE e5.

[4 marks]

b. Modify the FIGURE Q5 to include the Model-View-Controller (MVC)

architecture pattern.

[6 marks]

Design the system using the layered architecture pattern as a support for

the MVC architecture pattern.

I

[4 marks]

Page 9: exam

d

TCB 33I3

Modify the FIGURE Q5 to include the event-driven architecture pattern.

[6 marks]

-END OF PAPER-

I