You are on page 1of 5

EE4001 QUIZ (2008-2009) –Semester 1

Name:
Matriculation Number:
Tutorial Group:

Part I

Verify the correctness of the following interpretations for the segment of class diagram shown in
Figure 1 and state your answer in the form “Correct” or “Incorrect”:

1 Each object of class A1 is an instance of A1.

2 If a1 is an object of A1, then there is an instance in R1 that associates a1 and an instance of A2

3 An object in A2 may not involve in any instance of R1.

4 R1 models a binary association that associates A1 and A2 objects.

5 Each instance of R1 associates an A1 object and an A2 object.

6 If r and s are two instances in R1, r and s may associate the same A1 object to two different A2
objects.

7 Each instance of R2 always associates a B1 object and a B2 object.

8 If r and s are two instances in R2, r and s may associate the same B1 object with two different
B2 objects.

9 A B2 instance may associate to three B1 instances in R2 instances.

10 A B2 instance may associate to seven B1 instances in R2 instances.

(30 Marks)

1
A1 A2
1 R1 1

B1 1..2, 6..8
B2
R2 *

R3
* C2
C1 0..1

R4
D1 D2
1 1..*
1

-
*

F1 E1 E2

G2
*

1
G1 R5

G3
2..*

Figure 1. Segments of class diagram

2
PART 2
(1) Identify a suitable process model for developing software under each of the following
situations:

i) A small system with well-defined requirements and sufficient manpower to develop.

ii) A large system with unclear requirements but sufficient manpower.

iii) A large system with well-defined requirements and insufficient manpower to develop.

iv) A system with unclear requirements.

v) A small system that requires intensive user interaction and the users are not sure about the
exact requirements.

vi) A large, complex and high-risk system with unclear requirements.

(12 marks)

(2) At a particular point in time, the set of Supplier and Part instances are {s1, s2, s3} and {p1, p2,
p3, p4} respectively. Give two possible sets of instances of the following association between
Supplier and Part:

R
Supplier 1 1..* Part

(12 marks)

(3) Identity the most suitable concept from the four basic concepts, process, external entity, data
flow and data store, in Data Flow Diagramming (DFD) technique to model each following fact
separately:

i) Compute project cost.


ii) Project manager – a type of users in the system.
iii) Project cost computed by system.
iv) Information on software projects kept.

v) Annual income reported by tax payer -- a type of users in the system -- for computing
tax.

vi) Estimate project cost.

3
(12 marks)

(4) Identify the most suitable basic concept from the seven concepts, class, operation, association,
aggregation, generalization, object and instance of association, in Object-Oriented modelling to
represent each of the following:

Nissan Car.
Mechanic services Car.
Dr CK Ang treats his patient Mary Yong.
Compute interest.
Engine is part of car.
NTU students are classified into undergraduate and postgraduate students

(12 marks)

(5) Draw an ER diagram for the following requirements by a hospital:


Patients are treated in a single ward by the doctors assigned to them. Usually each
patient will be assigned a single doctor, but in rare cases they will have two.
Healthcare assistants also attend to the patients. A number of them work for each
ward.
Each patient is required to take a variety of drugs prescribed by a doctor. The system
must record details concerning the drugs that a patient takes.
(12
marks)

4
(6) In a trading company, customers place their orders directly. They can also cancel orders
themselves or via through a staff in the sales department. Orders are processed periodically by a
staff in the sales department. All the delivered orders are billed by an account clerk in the
account department. Some bills could be submitted electronically to banks depending on the
prior arrangement made. Draw a use-case diagram to give an overview of the requirements
described. (12 Marks)

You might also like