






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
hand note for software engineering
Typology: Thesis
1 / 10
This page cannot be seen from the preview
Don't miss anything!







With this test you can see for yourself if you attained the objectives of the OOAD/UML course (or if you will profit from following it). This test contains 20 questions. For each question you should mark only one choice, unless indicated otherwise. A question is answered correctly, if only all correct choices are marked. The test will take about 15 minutes. You can find the right answers and guidelines for the evaluation at the end of this docu- ment.
O (a) diagram A O (b) diagram B O (c) diagram C O (d) diagram D
O (a) diagram A O (b) diagram B O (c) diagram C O (d) diagram D
Company
Project Team
1
Company
Project Team
1..*
1
Company
Projects Team
Employees
1
Company
Project Team
Employee
1
1..* (^) 1..*
1..*
Person (^) pet0..* Animal
Person pet^ 0..* Animal
Person 0..* animal Pet
Person 0..*keeps as pet Animal
How would the introduction of a subtotal() method in OrderLine improve the design? O (a) It increases the cohesion of Article. O (b) It reduces the coupling of Order. O (c) It reduces the cohesion of Order. O (d) It increases the coupling of Article.
O (a) ‘ON’ is a concurrent state. O (b) This State Diagram is invalid because it contains no final state. O (c) ‘play’, ‘stop’ and ‘rew’ are actions. O (d) ‘ON’ is a superstate.
total()
Order getQuantity()getArticle()
OrderLine
getPrice()
Article
for all my OrderLines ol: tot =tot + ol.getArticle().getPrice()
Idle
Rewinding Playing
H (^) play
stop
stop
rew
O (a) If package C changes, package B must be inspected for necessary changes, and if there are any, package A may have to be adapted as well. O (b) If package B changes, package A and package C must be inspected for necessary changes. O (c) Packages should be designed so that a change in one package does not have an effect to other packages. O (d) If package C changes, package A has to be examined (as well as B), because depend- encies are transitive.
A B C
O (a) xfer() O (b) xfer(), plus(), minus() O (c) check(), plus(), minus() O (d) xfer(), evaluation(), plus(), minus()
O (a) The method doIt() must be implemented by Thing3 and possibly also by Thing4. O (b) The method doIt() must be implemented only by Thing5. O (c) The method doIt() must be implemented by Thing2, Thing3, Thing4 and Thing5. O (d) There is no need for any class to implement doIt(), because it is already implemented by Thing1.
xfer(m:Money, a2)
a1:Account john:Person
check()
[OK] minus(m)
a2:Account
plus(m)
evaluation
Thing
doIt()
<
Thing
Thing
Thing
Here are the correct answers to all questions: