Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ooad Objective

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

OmSakthi

Adhiparasakthi Engineering College Department of Computer Application MC9244 OOAD


Objective Type question and answers 1. If you want to plan project activities such as developing new functionalities or test cases, which

of the following OOAD artifacts is the most useful? (a) Sequence diagrams (b) Use cases (c) Domain model (d) Package diagrams 2. Which of the following is iterative, incremental, use case driven and architecture centric? (a) V-method (b) UML (c) Component Based Development (d) RUP 3. What is true about UML stereotypes? (a) A stereotype is used for extending the UML language. (b) A stereotyped class must be abstract. (c) The stereotype {frozen} indicates that the UML element cannot be changed. (d) UML Profiles can be stereotyped for backward compatibility. 4. Consider a beverage machine. If the actor is customer, and the scope is machine, what is most likely to be found in the main scenario of the use case get drink? (a) - enter choice - if drink available then show price - put in coins - if paid enough then deliver drink (b) - customer enters choice - machine shows price - customer puts in coins - machine delivers drink (c) - enter choice - show price - put in coins - deliver drink (d) - ... - machine sends price to LCD display - customer put coins in slot - coin mechanism verifies amount and tells machine controller - machine controller activates boiler - ... Consider the following situation: 5. A company realizes projects; each project is executed by a team of employees.

Which would be a suitable conceptual UML diagram?

(a) diagram A (b) diagram B (c) diagram C (d) diagram D 6. How do you express that some persons keep animals as pets?

(a) diagram A (b) diagram B (c) diagram C (d) diagram D


7. What can UML interfaces be used for? (a) to provide concrete classes with the stereotype <<interface>> (b) to program in Java and C++, but not in C# (c) to define executable logic that can be reused in several classes (d) to specify required services for types of objects 8. Consider the following design.

(a) It increases the cohesion of Article.

(b) It reduces the coupling of Order.

(c) It reduces the cohesion of Order. (d) It increases the coupling of Article. 9. What is correct about the following State Diagram?

(a) ON is a concurrent state. (b) This State Diagram is invalid because it contains no final state. (c) play, stop and rew are actions. (d) ON is a super-state. 10. Which of these activities COULD occur simultaneously?

[2 answers] [a] a44 and a66

[b] a44, a33 and a22

[c] a22 and a77

[d] a77 and a66

11. Which are valid events in a State diagram? [2 answers] [a] if() [b] when() [c] close() [d] after() 12. This is the structure of a well-known GoF pattern; which one?

(a) Component

(b) Delegation

(c) Polymorphism (d) Composite

13. Which of the following are known refactorings (according to Fowler)?[2 answers] [a] Protect Variations [b] Replace Inheritance with Delegation [c] Replace Delegation with Inheritance [d] Introduce Association Class 14. If you need to show the physical relationship between software components and the hardware in the delivered system, which diagram can you use? (a) component diagram (b) deployment diagram (c) class diagram (d) network diagram 15. What is a true statement about the following packages?

(a) If package C changes, package B must be inspected for necessary changes, and if there are any, package A may have to be adapted as well. (b) If package B changes, package A and package C must be inspected for necessary changes. (c) Packages should be designed so that a change in one package does not have an effect to other packages. (d) If package C changes, package A has to be examined (as well as B), because dependencies are transitive. 16. Given the following diagram, which method(s) should be implemented for the Account class?

(a) xfer() (b) xfer(), plus(), minus() (d) xfer(), evaluation(), plus(), minus()

(c) check(), plus(), minus()

17. Which is true about the method doIt()?

(a) The method doIt() must be implemented by Thing3 and possibly also by Thing4. (b) The method doIt() must be implemented only by Thing5. (c) The method doIt() must be implemented by Thing2, Thing3, Thing4 and Thing5. (d) There is no need for any class to implement doIt(), because it is already implemented by Thing1. 18. What is true about a Sequence Diagram? [2 answers] [a] It describes the behaviour in many Use Cases. [b] It describes the behaviour in a single Use Case. [c] It describes the behaviour of a single object. [d] It describes the behaviour of several objects. 19. Which GRASP pattern do you use to decide who is going to handle the incoming system events? (a) Controller (b) Low coupling (c) Adapter (d) Information Expert 20. Which diagram is NOT commonly used for illustrating use cases? (a) system sequence diagram (b) activity diagram (c) use case diagram (d) collaboration diagram 21. Which statement is true about elements within the subsystem and public visibility?

(a) Only the subset of elements that define the subsystems API should have public visibility. (b) Only the subsystem proxy class should have public visibility. (c) No elements inside the subsystem should have public visibility. (d) Only the elements that reference external classes should have public visibility. 22. What are the two types of dependency that can be used from a subsystem? (Choose two.) A. <<uses>> dependency to a subsystem interface B. an <<import>> dependency to a package containing used classes C. a <<manifest>> relationship to a node in the Deployment model D. a <<realize>> relationship to one or more collaboration occurrences

23. Which task is performed during use-case realization refinement? A. identify participating classes B. allocate responsibilities among classes C. model messages between classes D. model associated class relationships 24. Which statement is true about design subsystems? A. They partially encapsulate behavior. B. They represent an independent capability with clear interfaces. C. They model a single implementation variant. D. They can only contain design classes. 25.Given the following configuration: Package A, which contains class aClass is in the presentation layer. Package B, which contains a class bClass and an interface bInterface is in the business layer. Package C, which contains cClass is in the data layer. Which is a poor practice? A. aClass calls a method in bClass. B. aClass has an attribute of type cClass. C. aClass realizes bInterface. D. bClass realizes bInterface. 26. Which process document describes design mechanisms, any mappings between design mechanisms, and the details regarding their use? A. Software Architecture Document B. Design Guidelines C. Vision Document D. Software Development Plan 27. In the state of a state machine, a behavior can be defined _____. A. before reaching a state B. upon reaching a state C. upon leaving a state D. inside a state 28. What is a gate? A. a parameter that represents a message that crosses the boundary of an interaction or interaction fragment. B. a defined protocol for accessing the internals of a subsystem C. a decision point in a state machine that has more than two alternatives D. a set of checkpoints each subsystem design must satisfy before it can be assigned for implementation 29. When identifying design elements, a simple analysis class will map to a(n)_____. A. active class B. interface C. design class D. subsystem 30. In which OOAD activity is the distribution mechanism identified? A. Identify Design Elements B. Identify Design Mechanisms C. Class Design D. Architectural Analysis

Evaluation KEY Here are the correct answers to all questions: 1. b 2. d 3. a 4. b 5. b 6. a 7. d 8. b 9. d 10. b c 11. b d 12. d 13. b c 14. b 15. a 16. b 17. a 18. b d 19. a 20. d 21. c 22. a, b 23.d 24.b 25.b 26.c 27.b,c,d 28.a 29.c 30.b

You might also like