ACADEMIC YEAR 2023/2024
ICT LEVEL 200 BONAMOUSADI CAMPUS
TYPE OF EXAMINATION: FIRST SEMESTER EXAM
COURSE TITLE: OOM UML
COURSE CODE: SWE 233
COURSE INSTRUCTOR: Mr. BIDE NELSON EWANG
DATE: DECEMBER 2023 TIME ALLOWED: 2 Hours
MARK GUIDE
SECTION A: MULTIPLE CHOICE
1. B
2. C
3. C
4. C
5. D
6. D
7. B
8. C
9. C
10. C
11. A
12. B
13. A
14. A
15. B
1
SECTION B: Structural Questions
1. What is UML?
Unified Modelling Language. (any correct answer = 2 marks)
It is a Industry standard graphical language for modelling and hence visualizing a blue print of all
the aspects of the system, before implementing the system.
It is an easy way to specify, visuallize, document and understand the structure and behaviour of the
system.
2. State TWO goals/benifits of UML.
few goals and benifits of UML are:
Being independent of any particular programming language and development process its easy to
understand.
To provide best engineering practices for large and complex system.
Encourage the growth of Object Oriented tools.
Provides a good way to gather requirements.
Improve software quality and decreases time and cost of the software.
3. What is the purpose of a state machine diagram?
To show the flow of activities in a system. (1 mark)
4. What is the difference between aggregation and composition in UML?
Aggregation is a relationship that describes a whole and its part. It is a “has-a” kind of relationship. While a
composition is a stronger form of aggregation. (2 marks)
5. What are the major three types of modeling used?
Major three types of modeling are structural, behavioral, and architectural. (1 mark each = 3 marks)
6. Give the difference between a class and an object. (2 marks)
A class is a description of a set of objects that share the same attributes, operations, relationships,
and semantics. While an object is an instance of a class.
7. (2 marks each = 4 marks)
Object Diagram Class Diagram
8. State two principles of modeling. (any two correct answer = 2 marks)
2
The choice of what models to create has a profound influence on how a problem is attacked and
how a solution is shaped.
Every model may be expressed at different levels of precision.
The best models are connected to reality.
No single model is sufficient. Every nontrivial system is best approached through a small set of
nearly independent models.
9. Name the three parts of a class diagram. (1 mark each = 3 marks)
Name
Attribute
Operation
10. Two types of interaction diagram.
Sequence diagram and collaboration diagram. (2 marks)
SECTION C: Essay Question:
Question 1 (20 marks)
Any correct actor, usecase and stereotype = 1 mark (1 x 20 = 20 marks)
Question 2
a)Normally there are 5 views. (stating = 1 mark, explanation = 1 mark: 2marks x 5 = 10 marks)
Use Case view - This view exposes the requirements of a system.
Design View - Capturing the vocabulary.
Process View - modeling the distribution of the systems processes and threads.
Implementation view - addressing the physical implementation of the system.
3
Deployment view - focus on the modeling the components required for deploying the system.
b)
Stating a relationship = 1 mark
Description of relationship = 1 mark
Any example = 1 mark
Total = 3 marks x 4 = 12 marks.
Relationship Description Example
Generalization It is a special kind of association, - Relationship between Equipments and
representing a structural relationship ClassEquipments.
between a whole and - Relationship between Equipments and
LabEquipments.
its parts
- Relationship between Student and
HigherSecondaryStudent.
- Relationship between Student and
PrimaryStudent.
- Relationship between Employee and
SupportStaff.
- Relationship between Employee and Teacher.
Unidirectional In unidirectional association, two classes - Relationship between SchoolManagement and
association. are related, but only one class knows Auditorium
that the relationship exists. - Relationship between NoticeBoard and
Student.
- Relationship between Student and
PlayGround
- Relationship between Student and Bus
Aggregation It is a kind of relationship that describes - Relationship between SchoolManagement
a whole and its parts. and Student.
- Relationship between SchoolManagement
It is a “has-a” kind of relationship
and Bus
- Relationship between SchoolManagement
and PlayGround.
- Relationship between Teacher and Student.
Composition Composition is a stronger form of - Relationship between SchoolManagemnt and
aggregation. Department.
- Relationship between Equipment and Lab.