Professional Documents
Culture Documents
The internal representation of data is typically deferred to later in the design process.
Choice 2
Start by looking at the primary function of the system and break that functionality down into
more and more specific steps.
Choice 3
Choice 4
Ask the business user to rewrite the document and to include any necessary objects in the new
version.
Choice 5
The program should be designed according to a conceptual hierarchy, with the upper levels
indicating the most general features of the problem.
Record Answ er OO Concepts, Question 1 of 40
Scenario
Your department has decided to use a traditional relational database system to store objects
rather than an object-oriented database. Referring to the scenario above, which one
of the following is NOT a key consideration when storing objects in a relational database?
Choice 1
Object request brokers can typically process which one of the following
object-initiated requests?
Choice 1 Re-locate an object.
OO Concepts
Progress:
Scenario For encapsulation and maintainability, you wish to include a set of integer
error codes in your objects for indicating the current state.
Referring to the scenario above, where are the error codes located?
Choice 1 Outside of the class definition, as global variables
Choice 2 Inside the class, as public member constants
Choice 3 You do not need to define them, just return the errors; self-documenting
code will identify them.
If you ask an object to do something, you do not care how it does it, only that it gets done
Choice 2
Two objects that belong to the same class can share some of the same data.
Choice 3
If two objects coexist within an application, each has its own data
Choice 4
If one object makes a request of another object, the request should include all information
necessary to fulfill the request
Choice 5
Dragon
Dragons, such as the one above, have wings like a bird and
scales like a lizard. In object-oriented verbiage, we say this is an example of which one of the
following?
Choice 1
Polymorphism
Choice 2
Inheritance
Choice 3
Encapsulation
Choice 4
Multiple inheritance
Choice 5
Aggregation
Record Answ er OO Concepts, Question 7 of 40
Referring to the
above, which one of the following statements describes the relationship between classes A and
B?
Choice 1
Objects of class B always have at least one object of class A as a part of them.
Choice 3
Objects of class A have one or more objects of class B as a part of them. An object of class B
can belong to objects of class A.
Choice 4
Aggregation
Choice 3
Cardinality
Choice 4
Optionality
Choice 5
Polymorphism
Assume that all objects are instantiated properly at runtime (no null
references). Referring to above code, what is wrong with the code found within the getAddress()
method of class Employee?
Choice 1
Choice 1
The Employee object depends too much on the internal structure of Location object.
Choice 2
Choice 2 Inheritance
Choice 3 Encapsulation
Choice 4 Abstraction
Choice 5 Aggregation