This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Below are the questions that I came across with in the Pre Assessment Test. Can anyone guide me about whether or not my answers are correct? and reason for their being correct o incorrect. 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. E. Design classes with low cohesion.
Select 2 answers A,D
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". Select the best answer. C
Which of the following are TRUE about interaction diagrams? A. Interaction diagrams are at their best when they illustrate multiple scenarios. B. Interaction diagrams are good at designing part or all of one use case's functionality across multiple objects. C. Interaction diagrams are good for static modeling, since they fill out the classes and methods in the domain. D. Interaction diagrams allow the analyst to show iteration and conditional execution for messaging between objects. E. Sequence diagrams are logically equivalent to collaboration diagrams, differing primarily in format of presentation. Select 3 answers. BCD Valid reasons for grouping classes into the same package are that the classes: A. are related by aggregation. B. are worked on by the same group of developers. C. are related by specialization. D. support the same high-level services. Select 2 answers. CD