Ooad With Uml Question Bank
Ooad With Uml Question Bank
Q. 2. Match the pairs. Write the matched SN-A and SN-B pairs in answer sheet.
1. Which of the following do you think are reasons for the software crisis?
a) The development of new technology
b) Higher user expectations
c) Growth in distributed systems
d) Development of visual programming tools
Choose the correct ones.
a) a and c
b) a and b
c) a, b and d
d) a, b and c
2. It is important to check early in the development process that a system will run.
__________ feature provides systems with stability, as a small change in requirements does not require
massive changes in the system.
a) Inheritance & Encapsulation
b) Inheritance & Polymorphism
c) Encapsulation & Polymorphism
d) Polymorphism & Abstraction
4. The use of object-oriented technology will always result in efficient, useful, compact systems. State true or
false.
6. Analysis takes place from a _________ perspective and design takes place from a _________
perspective.
a) User & Developer
b) Developer & User
c) User & Designer
d) Designer & Developer
7. The environment the system will be implemented in should be considered during analysis. State true or
false.
8. During development, there is never any overlap between analysis and design.
State true or false.
15. Which of the following steps do you think developers should take to create efficient, compact applications?
a) Clearly define the initial requirements of the system
b) Concentrate early development efforts on modeling implementation mechanisms
c) Analyze and manage risk throughout the development process
d) Leave all software testing until after the system has been implemented
Choose the correct ones.
a) a and c
b) a and b
c) a, b and d
d) a, b and c
a) a and c
b) a and b
c) a, b and d
d) a, b and c
17. Object-oriented technology's ______ feature means that a small change in user requirements should not
require large changes to be made to the system.
a) abstraction
b) modularity
c) encapsulation
d) modeling
a) a and c
b) a and b
c) a, b and d
d) a, b and c
19. The analysis phase takes a ______ approach to the system, ignoring its inner workings whereas the
design phase takes a _____ approach, making decisions on how the model will be implemented in code.
a) White box & Black box
b) Black box & White box
c) Top-Down & Bottom-Up
d) Bottom-Up & Top-Down
a) a and c
b) a and b
c) a, b and d
d) a, b and c
21. In practice, many portions of the analysis model will not need to be changed in design. State true or false.
a) a and c
b) a and b
c) a, b and d
d) a, b and c
24. Which of the following are the OOAD methods that form the basis of the UML?
a) OOSE
b) Object Modeling Technique
c) Rational Objectory
d) Booch
a) a and c
b) a and b
c) a, b and d
d) a, c and d
a) a and c
b) a and b
c) a, b and d
d) a, c and d
26. In the UML, ______ represent basic object-oriented concepts and _______ provide the highest level of
abstraction for analyzing the system.
a) Views & Model elements.
b) Model elements & Views
c) Objects & Views
d) Behavioral Views & Objects
27. The UML was designed to be used by only one process. State true or false.
28. Implementation details are discussed during requirements capture. State true or false.
29. UML diagrams can be used during requirements capture. State true or false.
30. During analysis, the _______ are examined to find the _______ that will provide functionality for the
system.
a) Classes & Use Cases
b) Use Cases & Classes
c) State diagrams & Classes
d) Classes and State diagrams
31. It is good practice to put functional and technical classes in the same package. State true or false.
32. Towards the end of the design phase, _______ should be allocated to source code components.
a) use cases
b) relationships
c) models
d) classes
33. It is important to document all decisions made during design. State true or false.
34. Many new UML diagrams are produced during the implementation phase. State true or false.
36. In which of the following phases of a use-case driven process do you think use cases have a role?
a) Requirements capture
b) Analysis
c) Design
d) Implementation
e) Test
a) a, b and c
b) a, b, c and d
c) b and d
d) a, b, c, d and e
37. A good architecture should take into account the nonfunctional elements of the system. State true or false
38. Identify the true statements about using a process for software development.
a) Processes usually divide software development into phases
b) Processes provide guidelines for what to do at each phase of development
c) Processes are used only during the analysis phase of a project
d) Processes make it easier to measure the progress of a project
a) a and c
b) a and b
c) a, b and d
d) a, c and d
a) a, d and e
b) a, b, c and d
c) a, b and d
d) a, b, c, d and e
40. Which of the following activities occur during the analysis phase?
a) Use cases are analyzed to find classes
b) Relationships between classes are examined
c) Classes are separated into functional packages
d) The behavior and state of objects are examined
e) The interface design should be completed
a) a, d and e
b) a, b, c and d
c) a, b and d
d) a, b, c, d and e
41. Which of the following activities occur during the design phase?
a) Test cases are used to examine the system for errors
b) Classes are allocated to source code components
c) Executable components are allocated to nodes
d) Code is reviewed on a regular basis
e) Code components are compiled, linked, and debugged
a) a, d and e
b) a, b, c and d
42. Identify the true statements about the UML and OOAD processes.
a) The UML is designed to work only with traditional OOAD processes
b) The UML is designed to work with use-case driven processes
c) The UML is designed to work with architecture-driven processes
d) The UML cannot be used with processes that are iterative
a) a and c
b) b and c
c) a, b and d
d) a, c and d
43. While designing the projects, what kind of resources do you think you should take into account ?
a) Budgets
b) Compilers
c) Personnel
d) Time
a) a and c
b) b and c
c) a, b and d
d) a, c and d
44. What do you think is the first step you should take in designing any project?
a) Design a prototype
b) Create the test cases.
c) Define the problem domain and produce a problem statement
d) Draw up a plan for the entire project
45. What is the primary purpose of the first stage of software analysis and design?
46. Which of the following best describes what a problem domain is?
47. A problem statement should be written in computer-related language, using code where appropriate. State
true or false.
48. The use-case model also illustrates the relationships between the use cases and the actors. State true of
false.
49. Which of the following do you think should have input into the development of the use-case model?
a) The customers
b) The domain experts
c) The end-users
d) The developers
a) a, b and c
b) a, b, c and d
c) a, b and d
d) a and c
51. Use cases enable the developers to track how the system requirements are implemented in classes and
operations. State true or false.
52. Which of the following details do you think the use-case model includes?
a) Who will interact with the system
b) What the system will do
c) What interfaces are required
d) The implementation diagram
a) a, b and c
b) a, b, c and d
c) a, b and d
d) a and c
53. The use-case model enables the developers to trace the realization from the Use cases through to the
Classes. State true or false.
a) a, b and c
b) a, b, c and d
c) a, c and d
d) a and c
56. The logical and physical views of the system are not affected by the use-case view. State true or false.
a) An oval
b) A box
c) A circle
d) A triangle
58. Which of the following steps are involved in creating a use-case model?
a) a, b and c
b) a, b, c and d
c) a, c and d
d) a and c
59. The same use-case model cannot be used to create later versions of the same system. State true or false.
60. A use case can model only software systems. State true or false.
a) An individual user
b) A role
c) An operation
62. Which of the following statements are true of actors?
a) One person cannot be a number of different actors
b) Use cases are initiated by actors
c) An actor is an instance of a class
d) An actor can have behaviors and attributes
a) a, b and c
b) a, b, c and d
c) a, b and d
d) a and c
63. Identify each of the distinct ways in which an actor can interact with the system.
a) An actor can input information into the system
b) An actor can receive information from the system
c) An actor can both input and receive information to and from the system
d) An actor can be a part of the system
a) a, b and c
b) a, b, c and d
c) a, b and d
d) a and c
64. Which of the following questions are relevant when identifying actors?
a) Where in the organization is the system used?
b) Which hardware devices will interact with the system?
c) How will the hardware devices interact with the system?
d) Which other systems will interact with the system?
a) a, b and c
b) a, b, c and d
c) a, b and d
d) a and c
65. Which of the following statements are true of use cases and use-case models?
a) The functionality of a use case has to be complete from start to finish
b) Use cases provide developers with classes and operations
c) Use cases outline the functionality of the system
d) Use-case models can be used to test the system
a) a, b and c
b) a, b, c and d
c) a, c and d
d) a and c
66. The context and behaviors of the system is the main Use-case diagram used to visualize. State true or
false.
67. What do you think you should do after creating problem statements or use cases?
a) Integrate use cases with problem statements
b) Model how the problem domain behaves
c) Create component diagrams
d) Create the sequence diagrams
72. One object can be identical to another if both have the same properties and behavior. State true or false.
73. In a class diagram, you must always show either the attributes or the operations of a class. State true or
false.
74. The UML conventions for object names are the same as those for class names. State true or false. (False)
a) a, b and c
b) a, b, c and d
c) a, c and d
d) a and b
76. What do you think you should do if you've chosen a class that performs two functions?
a) Divide it into two new classes
b) Omit one of its functions
c) Make one of the functions a pure virtual one
d) Make the class a virtual one
77. Which of the following do you think are problems that strong coupling leads to?
a) It makes programs more difficult to use
b) It makes programs more difficult to extend
c) It makes programs more difficult to debug
d) It makes program easy to maintain
a) b and c
b) a, b, c and d
c) a, c and d
d) a and b
79. If a class needs to model something in great detail, you need more specifications to make it sufficient.
State true or false.
b) It results in programs that are easier to maintain and extend
c) It creates programs that run faster
d) It makes it easier to design complex, large-scale programs
a) b and c
b) a, b, c and d
c) a, b and d
d) a and b
a) b and c
b) a, b, c and d
c) a, b and d
d) a and b
84. An object's identity depends on its attributes and operations. State true or false.
85. Which of the following are the conventions most commonly used for class names in the UML?
a) Names should be in bold
b) No underscores should be used
c) The initial letter of each word should be capitalized
d) There should be a space between each word in the class name
a) a, b and d
b) a, b, c and d
c) a and b
d) a and c
86. The second compartment of a UML class diagram contains the class's ________, while the third
compartment contains its ________.
(Attributes & Operations)
a) a, b, c and d
b) a, b, c and e
c) a, b, c, d and e
d) a, b and c
89. Well-designed class models tend to use ________ coupling, whereas badly designed ones use _______
coupling.
a) Weak & Strong
b) Strong & Weak
c) No & Weak
d) Strong & No
a) a, b and d
b) a, b, c and e
c) a, b, c, d and e
d) a, b and c
a) a, b and d
b) a, b and c
c) a and b
d) a and c
96. Which of the following actions do you think you should take if the definition is the same as that for another
class?
a) Delete the second class
b) Combine the classes
c) Rename the classes
d) Write two identical definitions
97. If the documentation is very large, you should break the class into more manageable classes. State true or
false.
98. If you are finding it hard to identify the name of the class and to write a concise definition for it, what do you
think you should do?
a) Ignore the class completely
b) Do more analysis to get a better understanding of what is involved in the class
c) Write a definition for the class, even if it is not very good
d) Combine it with another class
99. This is a bad definition because it does not say why the class is needed. State true or false.
a) a, b and d
b) a, b and c
c) b, c and d
d) a, b, c and d
102. A class can be owned by more than one package. State true or false.
103. In the logical view of the system what do you think the main class diagram is a view of?
a) All the top-level packages in the system
b) Each individual class in the entire system
c) All of the use case diagrams in the system
d) A Complete model of the system
104. A package can have its own main class diagram. State true or false.