NPTEL Software Engineering Week 8 Assignment Answers 2024

Sanket
By Sanket

NPTEL Software Engineering Week 8 Assignment Answers 2024

1. 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
e. Dependency

Answer :- For Answers Click Here 

2. Consider the sentence: A college has many Students. Which one of the following best characterizes the relationship that exists between the College class and the Student class?

a. Inheritance
b. Specialization
c. Association
d. Composition
e. Dependency

Answer :- For Answers Click Here 

3. 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
e. Dependency

Answer :- For Answers Click Here 

4. 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
e. Dependency

Answer :- 

5. A collaboration diagram is used by the designers for its capability to effectively depict 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
e. Times at which collaboration occurs among classes

Answer :- 

6. How is an external system represented in a use case diagram?

a. By using a specific icon available for this purpose
b. By using text description
c. By using object constraint language (OCL)
d. By stereotyping the actor icon
e. By inheriting a special icon from the actor icon

Answer :- For Answers Click Here 

7.

image 86
Answer :- 

8. Which of the following features of the state chart model are primarily responsible towards reduced number of states in the finite state modelling of a given problem?

a. Nested states
b. Concurrent states
c. History state
d. Broadcast messages
e. Actions on state entry and exit

Answer :- 

9. Consider the following statement: “India shares borders with Pakistan, Bangladesh, and China.” Which one of the following is the best way to implement this in an object-oriented program?

a. Define a unary association on Country class
b. Let Country class implement the Border interface
c. Define Country class as an aggregate of Border classes
d. Define a dependency of Country class on Border class
e. Define a quaternary association relation between the Countries India, Pakistan, Bangladesh, and China

Answer :- 

10. In an informal (natural language) description of a programming problem, which parts of the description are likely represent objects?

a. All of the nouns and all of the verbs.
b. All of the verbs and some of the nouns.
c. Some of the nouns.
d. Some of the verbs
e. Some of the nouns and some of the verbs

Answer :- For Answers Click Here 
Share This Article
Leave a comment