Exam 1 Questions - Processes for Object-Oriented Software Development | COP 4331, Exams of Computer Science

Material Type: Exam; Professor: Workman; Class: Processes for Object-Oriented Software Development; Subject: Computer Programming; University: University of Central Florida; Term: Fall 2007;

Typology: Exams

Pre 2010

Uploaded on 02/25/2010

koofers-user-x81
koofers-user-x81 🇺🇸

10 documents

1 / 7

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COP 4331 and EEL4884 Exam 1 Fall 2007
(100 pts)
Name: _________________________
1. (20 pts) Given below are a list of terms that you should learn in this course and a list of
definitions for a subset of them. Fill in the blanks from the list terms with the one that best
fits the given definition or description. (2 pts each)
(a) A kind of abstraction that assigns a name, perhaps with defined parameters, to a well-
defined and reusable computational process or algorithm. This allows the designer to reason in
terms of inputs and results of the named computation without having to think about the details of
how the computation will be accomplished or implemented. _____________________________
(b) A generic process model characterized by the cyclic repetition of four phases, one of which
is the evaluation of the risks associated with alternative solution strategies.
____________________________
Page 1 of 7
pf3
pf4
pf5

Partial preview of the text

Download Exam 1 Questions - Processes for Object-Oriented Software Development | COP 4331 and more Exams Computer Science in PDF only on Docsity!

(100 pts) Name: _________________________

1. (20 pts) Given below are a list of terms that you should learn in this course and a list of definitions for a subset of them. Fill in the blanks from the list terms with the one that best fits the given definition or description. (2 pts each) (a) _A kind of abstraction that assigns a name, perhaps with defined parameters, to a well- defined and reusable computational process or algorithm. This allows the designer to reason in terms of inputs and results of the named computation without having to think about the details of how the computation will be accomplished or implemented. ______________________________ (b) A generic process model characterized by the cyclic repetition of four phases, one of which is the evaluation of the risks associated with alternative solution strategies. ____________________________

(100 pts) (c) Algorithms for developing software: A set of activities, methods, practices, and transformations that people employ to develop and maintain software and the associated products. _______________________________ (d) _A sequence of actions a proposed system performs to offer some results of value to a User.


(e) _The type associated with an object reference based on its runtime value.


(f) _A kind of class defined by the Unified Software Process that handles data entering (leaving) the system from some external user or system. _________________________________ (g) A separately named and addressable software unit that encapsulates and abstracts a set of related software capabilities and features. It generally consists of two parts: an interface – for access by similar software units, and an implementation – that specifies how the capabilities and features of the interface are realized. ______________________________ (h) A kind of design property that exploits language mechanisms and encapsulation techniques to prevent client access to, and use of, details about the representation of data structures and types. ______________________________ (i) A type of UML diagram used to express the static structure of an OO software design in terms of its modular components and their relationships. _______________________________ (j) _The re-definition of a method in a subclass having the same name and equivalent profile as a method in the superclass. ____________________________________

2. (15 pts) We recently studied several different designs for the 2D-vector problem solver. Answer the following questions relating to these design styles and vector application. (a) Identify the five design properties or qualities that increased in use going from the Functional- to the OO+ designs:




(b) Which two of the above properties were most significant in distinguishing the Functional- from the Functional+? Give a brief justification of your answer.




(c) Which of the above properties was most significant in distinguishing the OO- design from the Functional+? Give a brief justification of your answer. _________________________________



(100 pts)

4. (21 pts) Model each of the following object or class relationships in UML. Do this by naming the most appropriate relationship that applies from common every-day experience, or from what you have learned in this course. Then give a simple UML class diagram illustrating the relationship. For your answer choose one of the following: composition, aggregation, affiliation, association, generalization/specialization, instance-of****. For example, the relationship of Quiz to Question would be modeled as composition illustrated in the diagram to the right. Be sure to include the multiplicity annotation and any roles that might apply. (a) Use Case Diagram to Actor (b) Composition to Whole-Part Relation (c) Dam to Water (d) Bottle to Beer (e) Betty to Student

(100 pts) The following real-world situation or scenario applies to the remaining questions. A popular pastime for students at a university is attending a sports event such as football. Think of the stadium with personnel including players, food and beverage vendors, police, game officials and custodians as a system that serves its fans. Fans enter the stadium by showing their ticket at the appropriate gate. The ticket checkers tear off a tab from the ticket for accounting purposes. Fans proceed to their assigned seats or purchase food and beverage items before doing so. The game begins when player emerge onto the field. Game officials oversee and control the progress of the game – enforcing the game rules. After the game, custodians pick up trash and clean the stadium dumping collected trash into large dumpsters. As fans leave they throw trash into trash cans provided at the exit. Armored trucks arrive to collect cash receipts from vendors and then deliver the proceeds to appropriate banks.

5. (15 pts) Draw the Level – 1 DFD for the system described above. Clearly identify external data sources and sinks, stores, processes and data flows. Elaborate only those details necessary to construct a meaningful and well-formed DFD.

(100 pts) 7.( 15 pts) Using a UML Activity diagram, model the process of fans purchasing food and beverage items at a vendor stand. Including such actions as entering the order queue, ordering items, paying for items, packaging the order, etc.