not complete Flashcards
(a) State two characteristics that a good software system should possess.
Briefly explain the difference between the waterfall model of software
development and an iterative approach, giving one advantage of iteration.
Why is requirements documentation important?
Suggest one reason why requirements may evolve.
Consider the following description of a non-functional requirement.
• The portable data recorder shall operate in high-temperature
conditions.
(i) What category of non-functional requirement is it?
(ii) Suggest a fit criterion that could be suitable for this for this requirement.
The diagram includes two activities which can be performed concurrently.
Say which activities these are and explain how the concurrency is indicated
in the diagram.
Can both, standard topping and special topping be added to a pizza?
Explain your answer.
In an activity diagram what event triggers the transition from one activity to
the next?
(
According to Figure 2
(i) Is it possible to find out all the treatments types a patient has an
appointment for? Briefly explain your answer.
(ii) Can a patient have an appointment for the same treatment type more
than once? Briefly explain your answer.
Using OCL write an invariant, starting from Appointment, to express the rule
that an appointment must be with the patient’s own dentist.
This question refers to the class diagram fragment in Figure 2 above.
Imagine we want to implement an operation with following specification
context Dentist::cancelAppointment(appointment : Appointment)
post:
– appointment will no longer be linked to the Dentist, Patient and
TreatmentType for which it was made.
(a) Explain the meaning of the cross × on the lifeline of a4.
This question refers to the class diagram fragment in Figure 2 above.
Imagine we want to implement an operation with following specification
context Dentist::cancelAppointment(appointment : Appointment)
post:
– appointment will no longer be linked to the Dentist, Patient and
TreatmentType for which it was made.
(b) Draw a pair of object diagrams, before and after, to illustrate the effect of the
operation.
Is the interaction shown in Figure 3 consistent with the Law of Demeter?
Explain your answer.
Give two benefits of using statechart diagrams in software development.
Suppose you require a mobile phone contract which offers a minimum of
300 inclusive minutes of calls and 200 inclusive texts per month. You are not
willing to accept a contract lasting longer than 1 year.
You are offered three deals, all the same price per month, as shown in
Table 1 below.
Say which of the deals A, B or C, will meet your requirements and which will
not, justifying your answer in each case.
(b) Suppose Design by Contract (DbC) is being used.
(i) If the precondition of a method is met but the postcondition is not met,
who is at fault, client or supplier? Briefly justify your answer.
(ii) If the precondition of a method is not met and the postcondition is not
met, who is at fault, client or supplier? Briefly justify your answer.