Software Engineering
Chapter of:- Introduction to UML: Class and Interaction Diagrams
Q1) Which one of the following best characterizes a sequence diagram?
a. A call graph illustrating all possible sequences of calls between class method members
b. A time-line illustrating a typical sequence of calls between object methods
c. A time-line illustrating the changes in inheritance and instantiation relationships between classes and objects over time
d. A tree illustrating inheritance relationship between classes
Q2) Which of the following UML diagrams should you use when allocating use-case behavior to classes?
a. sequence and communication diagrams
b. use-case and activity diagrams
c. sequence and activity diagrams
d. class and composite structure diagrams
Q3) Consider the following sentence: “A square is a polygon”. From an analysis of the sentence, identify the relations between the two classes Square and Polygon that can be inferred from the sentence.
a. Inheritance
b. Association
c. Aggregation
d. Composition
Q4) Consider the following sentence: “100 paisa is one rupee”. From an analysis of the sentence, identify the relation between the two classes Paisa and Rupee that can be inferred from the sentence.
a. Inheritance
b. Association
c. Aggregation
d. Composition
Q5) Consider the following sentence: “Students live in hostels”. From an analysis of the sentence, identify the relation between the two classes Student and Hostel that can be inferred from the sentence.
a. Inheritance
b. Association
c. Aggregation
d. Composition
Q6) A collaboration diagram depicts which one of the following types of information?
a. The decision structure among the classes
b. The looping structure
c. The attribute values of the objects
d. Structural information such as class association
Q7) Which one of the following is true of unary association?
a. It is defined between multiple classes
b. It is defined on exactly one object
c. It is defined between multiple objects of the same class
d. It is defined between multiple objects of different classes
Q8) When using an informal (natural language) description of a programming problem, which parts of the description are likely represent objects?
a. All of the nouns and some of the verbs.
b. All of the verbs and some of the nouns.
c. Some of the nouns.
d. Some of the verbs
Q9) Which one of the following can be said of a sequence diagram?
a. It is used to model the behavior of a single object when many use cases are executed
b. It is used to model the behavior of several objects when a single use case is executed
c. It is used to model the behavior of a single object when a single use case is executed
d. It is used to model the behavior of several objects when many use cases are executed
Q10) Which one of the following is achieved by developing a sequence diagram during an object-oriented design process?
a. Identification of object state behavior
b. Determination of attributes of a class
c. Determination of inheritance relationships among classes
d. Responsibility assignment to classes
Answers
Answered by
9
The correct answer for 100 paisa is one rupee From an analysis of the sentence, identify the relation between the two classes Paisa and Rupee that can be inferred from the sentence is composition.
The correct answer for Students live in hostels”. From an analysis of the sentence, identify the relation between the two classes Student and Hostel that can be inferred from the sentence is aggregation.
Answered by
0
inheritance goal you are genius
Similar questions