This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
These are sample questions from 486 1. Referring to these partial requirements, which of the following is true?
a) The verbs in the requirements become methods in the object model.
b) Some of the verbs in the requirements become methods of the nouns they reference. E.g., a FinancialInstitution class would have a getFinancialInformationFor( aCustomer ) method.
c) Some of the verbs in the requirements become methods of the concept taking the action. E.g., a LoanOfficer class would have a getFinancialInformationFor( aCustomer ) method.
d) Some of the verb phrases in the requirements become overriding methods of the related superclass, due to the specialization of the action.
Single Select 2. Which of the following are recommended when developing an OO system? a) Write a description of the concept that a class represents whenever a new class is declared.
b) Use interfaces for types or roles that objects may play, independent of their location in the class hierarchy.
c) Apply design patterns where applicable in the system.
d) Name classes based on their design specifics, such as "array" or "queue". multiple select (3)
3.Referring to the deployment diagram, Figure Deployment, for a system that manages mortgages, which of the following are correct?
a) GUI classes should be in the Branch Client process.
b) These components comprise a three-tier architecture, whether they execute on the same or different computers.
c) For scalability, the business objects should reside in the Financial Apps Server.
d) Client integration is at the Database Server.
Multiple Select (3)
4. Which of the following are true about interpreting class diagrams from different perspectives?
a) Specification perspective class diagrams are developed without considering the programming language that might be used to implement it.
b) The conceptual perspective class diagram of an application would not include all the classes required and their details, rather, they would only identify domain classes.
c) In the conceptual perspective, associations represent relationships between classes, where as they represent responsibilities in the specification perspective.
d) Operations (the processes that a class knows to carry out) should be used in conceptual models to specify the interface of a class.
5.An Observer is a design pattern where dependent objects "register" with another "server" object so that they are notified of changes to the server object. The server object isn't specifically aware of its dependents, but only knows to notify them of changes to its state. Which of the following uses an Observer pattern to maintain the correct separation of model and view in a layered software architecture?
a) GUI components register with business components so that they can update their views when the underlying model objects change.
b) GUI components register with other GUI components so that can be notified of user changes to the state of the system.
c) Business components register with GUI components so that the GUI components know who to ask for updates to their state.
d) Business components register with other business components so that they can enforce business rules based on state change.
6. Which of the following are good practices to use while designing for reuse?
a) Define a persistence framework that provides services for persisting objects.
b) Use design patterns, wherein complete solutions are already defined.
c) Use controller objects to control the flow of processes in the system.
d) Assign responsibilities to classes such that coupling between them remains low.