



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
Material Type: Exam; Professor: Workman; Class: Processes for Object-Oriented Software Development; Subject: Computer Programming; University: University of Central Florida; Term: Fall 2003;
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




(#1 continued) (h) _An external agent or entity that directly interacts with a system under development.
(i) _A type of UML diagram used in Use Case modeling to convey the dynamic flow and sequence of actor interactions comprising a use case. ___________________________ (j) _A technique employed in software design that attempts to prevent software clients from knowing or making use of knowledge about the implementation details of data abstractions or types. ___________________________ (k) _The activity of Use Case modeling occurs what phase of the Unified Software Development Process?. ___________________________ (l) A specification of a software solution that focuses primarily on satisfying functional requirements occurs in the ________________ model while a solution specification that is ready for implementation is given in the _____________ model.
Namespace 2: Declaration Example (x) References to (x) Same File ------------------------------ Different File ------------------------- Namespace 3: Declaration Example (x) References to (x) Same File ------------------------------ Different File -------------------------
//file "app.cpp" ======================================================================= #include "alpha.h" using namespace alpha; #include "beta.h" using namespace beta; namespace { int x = 4; float y = 4.0; } int u = 2, v = 3; float r = 2.0, s = 3.0; int main() { int u, v, x; float r, z; u = __________; //(a) Fill in the blank with an expression referencing u in the global namespace. x = __________; //(b) Fill in the blank with an expression referencing x in the file namespace. r = ________________________; //(c) Give an expression (function call) to compute the // cube of the variable x defined in namespace alpha by //calling the function "cube" in namespace alpha _________________ p(u, x) ; //(d) Give the correct type specification for variable "p". z = s * p.getY(); ___________ //(e) give the resulting value of z using alpha::y; r = y*::y; ___________ //(f) give the resulting value of r return 0; }//main //end "app.cpp" =======================================================================