COMP 3113 Mock Final Exam    Fall 2006

100 points possible      Duration: 70 minutes
Answer each question in the space provided. Back pages will not be graded.
Closed book, 1-pg notes OK.

 

1. Assume that you are working on a project to develop a project management tool.

 

a)    Develop a use case for a project manager assigning a task to an employee. Draw the UML use case diagram and write the use case description.

b)    Produce a UML class diagram using BOUML that corresponds to your use case. Make sure to use inheritance and composition.

c)    Produce a UML sequence diagram that corresponds to the use case scenario.

d)    Produce a collaboration diagram that corresponds to the use case scenario.

e)    In your class model explain how you implemented a class design heuristic.

f)    Give an example of programming by contract, i.e. an example pre-condition, post-condition and an invariant.

g)    Give an example of a unit test in your model for the project management tool. When would you write your unit tests?

h)    Express a design pattern with a class diagram. Describe a benefit of the design patterns.

i)    How does extreme programming differ from earlier models of software design and development?