MCQ CH04 Uml M3
MCQ CH04 Uml M3
MCQ CH04 Uml M3
MCQ
Chapter 04: What is Object-Orientation?
Q2. Which of the following are two main purposes that objects serve?
A. Objects are used to model an understanding of the application domain
B. Objects are used to understand data flow behavior in an application
C. Objects are understood as parts of the resulting software and provide basis for implementation
D. Objects are used as blueprints for class designer
Answer: A, C
Q4. Which of the following feature or features represent the condition that an object is in a particular moment?
Find out the appropriate word for the blank.
A. State
B. Behavior
C. Identity
D. All of the above
Answer: A
Q8. Which of the following makes an object identifiable from a set similar or dissimilar set of object?
UML
A. State
B. Behavior
C. Identity
D. All of the above
Answer: C
Q12. “A descriptor for a collection of objects those are logically similar in terms of their behavior and the structure of
their data”
What is the statement about?
A. Class
B. Instance
C. Generalization
D. Specialization
Answer: A
Q13. Which of the following features will be same for two instances of a class?
A. Structure of data they hold
B. Behaviors
C. Value of attributes
D. State
Answer: A, B [Page 67, States, values of properties may not the same for two objects]
Q16. Which of the following two types of logical similarity ensure that two instances belong to the same class?
A. Both the two objects share a common set of attributes (descriptive characteristics)
B. Both the two object share the same identity
C. Both the two object share a common set of behaviors (operations)
D. Both the two objects use the same algorithm to perform a particular task
Answer: A, C
D. The more specific element blocks all the features of inherited from the general element from transferring to
the next level
Answer: A, B
Q18. Which of the following are true about generalization and specialization?
A. It is a hierarchic classification
B. As we move from the root towards the leaf a more specific element is found
C. Every element is fully consistent with the first element in the hierarchy
D. None of the above
Answer: A, B, C
Q19. Which of the following feature or features all sub-classes inherit from its super-class?
A. Information structure (characteristics)
B. Behavior
C. Identity
D. State
Answer: A, B
Q25. An object encapsulates data and processes to act on this data. These processes are called ______________.
Which one best fits the blank.
A. Signature
B. Protocol
C. Operations
D. State
Answer: C
Q31. “The ability of different methods to implement the same operation in different ways those are appropriate to its
class”
This statement is about _________.
A. Inheritance
B. Generalization
C. Specialization
D. Polymorphism
Answer: D
Q1. “A descriptor for a collection of objects those are logically similar in terms of their behavior and the structure of
their data”
UML
Q8. “The ability of different methods to implement the same operation in different ways those are appropriate to its
class”
This statement is about _________.
A. Inheritance
B. Generalization
C. Specialization
D. Polymorphism
Answer: D