Docsity

Exam Questions for Systems Modelling in Computing - Cork Institute of Technology, Exams of Control Systems Analysis

Toggle sidebar
bg1
1 of 4
Cork Institute of Technology
Bachelor of Science in Computing – Award
(National Diploma in Computing – Award)
(NFQ – Level 7)
Summer 2005
Systems Modelling
(Time: 3 Hours)
Answer any Four questions. Examiners: Dr. E. A. Parslow
Mr. P. O’Connor
Dr. Dubhchair
Mr. A. Tobin
1. (a) What is the difference between an object and a class? Give an example of both using
UML notation. (5 Marks)
(b) What dimensions would you use in describing an object’s state? Its behaviour? How
are state and behaviour related? (5 Marks)
(c) Discuss the phases and disciplines/workflows that one finds in the Unified Process.
What in your opinion are the most important artefacts that one should produce?
Explain the reasoning for your choices. (8 Marks)
(d) What do you understand about the terms pre-conditions, post-conditions, or class
invariants. One encounters these terms within different artefacts of the Unified Process.
What are these different artefacts? Explain these terms with relevance to these
artefacts. (7 Marks)
2. (a) Construct a conceptual diagram to represent the following problem domain:
The Big Library has many books. Each book contains a bibliography; each
bibliography consists of a number of references to other books. Typically a book
will be referred to in many places, and therefore a reference can appear in more
than one bibliography.
(5 Marks)
(b) Outline your understanding of the type of relationships that can exist among
classes. (5 Marks)
pf3
pf4

Partial preview of the text

Download Exam Questions for Systems Modelling in Computing - Cork Institute of Technology and more Exams Control Systems Analysis in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science in Computing – Award

(National Diploma in Computing – Award)

(NFQ – Level 7)

Summer 2005

Systems Modelling

(Time: 3 Hours)

Answer any Four questions. Examiners: Dr. E. A. Parslow Mr. P. O’Connor Dr. Dubhchair Mr. A. Tobin

  1. (a) What is the difference between an object and a class? Give an example of both using UML notation. (5 Marks) (b) What dimensions would you use in describing an object’s state? Its behaviour? How are state and behaviour related? (5 Marks) (c) Discuss the phases and disciplines/workflows that one finds in the Unified Process. What in your opinion are the most important artefacts that one should produce? Explain the reasoning for your choices. (8 Marks) (d) What do you understand about the terms pre-conditions, post-conditions, or class invariants. One encounters these terms within different artefacts of the Unified Process. What are these different artefacts? Explain these terms with relevance to these artefacts. (7 Marks)
  2. (a) Construct a conceptual diagram to represent the following problem domain:

The Big Library has many books. Each book contains a bibliography; each bibliography consists of a number of references to other books. Typically a book will be referred to in many places, and therefore a reference can appear in more than one bibliography. (5 Marks)

(b) Outline your understanding of the type of relationships that can exist among classes. (5 Marks)

(c) Using the UML notation, draw a class diagram to represent the following problem domain.

The Big Payroll Company wishes to create a software package to monitor employees’ salary payments. To calculate an employee’s salary, the Big Payroll Company needs to take into consideration holidays taken against holiday entitlement, number of days’ sick leave in a pay period, bonuses, and deductions. An employee must specify how his/her salary should be paid, although this may change over time. Almost all employees are paid by electronic bank transfer, but some types of employees may be paid by cash or check. If payment is electronic, then a routing number and account type are required. Payment can only be made by one method. There are various reasons for deductions being made; for example, tax, medical plan, retirement plan, or cash advance_._ (10 Marks) (d) What is the cardinality of the association between the classes in each of the

following pairs? Explain your answers.

(a) the classes Tree and Leaves. (b) the classes Cops and Robbers. (c) the classes Zoo and Animals (d) the classes Lecturer and Student. (e) the classes Book and Pages. (5 Marks)

  1. (a) Explain what your understand about composition, association and aggregation. Give a meaningful example using the UML notation of a class that is related to two or more other classes using both forms of composition. (10 Marks)

(b) “Design by Composition is now seen as a better solution than Design by Inheritance”. Do you agree with this quote? What is the reason for your answer? Illustrate using examples why you would use composition rather than inheritance? When would you use inheritance? (10 Marks)

(c) In analysis, we create a conceptual model as a representation of real-world entities. What kind of attributes should we include with this conceptual model? Why? What kind of attribute should we not include with this conceptual model? (5 Marks)

  1. (a) There are a number of different patterns that can be used for assigning responsibilities in the creation of collaboration diagrams. List five such patterns, and explain their application to the creation of an imaginary collaboration diagram. (9 Marks)

(b) The following is a system behaviour contract for an operation called scheduleRoom(size, timePeriod): roomNumber in a Meeting-Scheduler Software System:

Contract

Name Of Operation: scheduleRoom (size,timePeriod):roomNumber

Responsibilities: The schedule room operation schedules a room of a specified size for a specified time period. It returns a room number that fits the required criteria.

Cross References: Use Case: Schedule Room

Preconditions: There exists a room r , such that r’s size is at least as large as size , and r is available during timeperiod.

Postconditions: For the smallest room r such that r’s size is at least as large as size and r is available during timeperiod :

ƒ r is no longer available during timePeriod , and return’s r’s roomNumber.

Create a collaboration diagram for the scheduleRoom(size, timePeriod): roomNumber operation using your knowledge of the General Principles in Assigning Software Responsibilities Patterns (GRASP Patterns). (8 Marks)

(c) Develop a minimal class diagram for the above operation. (8 Marks)