CMPS 366 Final, Fall 2003
American University of Beirut · Object Oriented Software Devpt Methods · 3 pages
Show the text of this final exam
AUB ia MENTCAN
. UNIVERKSIT
Computer science department LIBRARY CMPS 366, Fall 2004
OF EEIROT
Final exam, 2:00 hours
Id#:
!. True and false (30 pts) _
Indicate if each of the following statements is true (T) or false (F):
Pee aN exiveRsm
LIBRARY
T #F Patterns are more abstract and general than frameworks wae ae
T F Separation of concerns is relatively new research area and is not considered an issue for
design patterns. .
When a group of classes collaborate among themselves to accomplish
a cohesive set of responsibilities they are referred to as an object hierarchy
The reengineering philosophy suggests that an organization totally abandons old organizational
d operational principles
In the context of OO, a class can be considered as a template.
A class accomplishes information hiding by making the variables private
Object-oriented designs do not need to be implemented using object-oriented
programming techniques.
An instance of the parent class should be able to substitute for an instance of a subclass.
Static and dynamic binding postpone the error detection to the execution time. One by appropriate
types and the other by appropriate implementation.
Behavioral patterns describe the static relationships between the objects and the classes but do
not describe how the objects communicate.
ll. Design patterns (30 pts)
1. Explain briefly the singleton design pattern, its intent, applicability and participants. When the Java
language is used for its implementation one major problem is faced, what it is and how it is solved.
AUB
Computer science department CMPS 366, Fall 2004
2. Is it true that in the MVC design pattern the Model cannot access its controller(s) or view(s). In both cases
explain why. Explain briefly how this design pattern works.
Ill. Reading (40 pts)
1- Give a title to the paper you have and summarize its main points, be brief and try to use simple phrases.
Criticize it from what you’ve read on the field and what we’ve talked about in the class.
Title: .
AUB
Computer science department CMPS 366, Fall 2004
DUST ON a0) 0511 0(0) + nee