NPTEL Software Engineering Week 8 Assignment Answers

NPTEL Software Engineering Week 8 Assignment Answers:- In this post, we have provided the answers to the NPTEL Software Engineering Week 8. All the answers are provided here on the basis of data available on the internet.

NPTEL Software Engineering All Week Assignment Answers
Software Engineering Week 1 Answer
Software Engineering Week 2 Answer
Software Engineering Week 3 Answer
Software Engineering Week 4 Answer
Software Engineering Week 5 Answer
Software Engineering Week 6 Answer
Software Engineering Week 7 Answer
Software Engineering Week 8 Answer
Software Engineering Week 9 Answer
Software Engineering Week 10 Answer
Software Engineering Week 11 Answer
Software Engineering Week 12 Answer

NPTEL Software Engineering Week 8 Assignment Answers 2022

Q1. Consider the following statement: “India shares borders with Pakistan, Bangladesh, and China.” Which one of the following is the best way to model this using UML class diagram?

  • a. Define a unary association on Country class
  • b. Let Country class implement the Border interface
  • C. Define Country class as an ageregate of Border classes
  • d. Define a dependency of Country class on Border class
  • e. Define a binary association between Country class and Border class
Answer:- a

Q2. How is object creation through call to the new method of a class in a Java program is represented on a UML sequence diagram?

  • a. By placing key word new above the asynchronous message send symbol
  • b. By placing key word new above the synchronous message send symbol
  • C. By stereotyping the asynchronous message send symbol with create
  • d. By stereotyping the synchronous message send symbol with create
  • e. By placing a conditional symbol on an asynchronous message send symbol
  • f. By placing a conditional symbol on a synchronous message send symbol
Answer:- c

Q3. If a class has 5 state variables, and each of state variable can assume 4 discrete values, what is the maximum number states that an object of the class can assume?

  • a. 5
  • b. 20
  • C. 525
  • d. 625
  • e. 1024
  • f. 2048
Answer:- e

Q4. 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:- c

Q5. Consider the following sequence diagram for a use case named order.

Which methods should be supported by the Cart class, as can be inferred from the given sequence diagram.

  • a. reserveItem, adjustInventory
  • b. addTtem, checkOut,. processOrder
  • C. addItem, reserveľtem, processInventory
  • d. addItem, checkout, processOrder, confirmOrder
  • e. addTtem, reserveTtem, processInventory, confirmOrder
  • f. addItem, checkOut, processOrder, confirmOrder, adjustInventory
  • g. checkOut, processOrder, adjustInventory, confirmOrder, reserveItem
Answer:- b.

Q6. Consider the following sentence: “A linked list consists of many nodes such that each node is a successor of some node and is the predecessor of some node”. From an analysis of the sentence, identify the relation involving the Node class in the linked list.

  • a. Inheritance
  • b. Multiple inheritance
  • c. Binary Association
  • d. Unary Association
  • e. Aggregation
  • f. Composition
Answer:- d. 

Q7. A cultural organization has several members. While constructing a class model of this sentence, what can be said about the relationship between the Organization class and the Member class?

  • a. Inheritance
  • b. Aggregation
  • C. Composition
  • d. Dependency
  • e. Unary Association
Answer:- b.

Q8. A measure of the number links that an object has with another object is called which one of the following?

  • a. Stereotype
  • b. Cardinality
  • C. Linkedness
  • d. Coupling
  • e. Visibility
  • f. Count metric
Answer:- d.

Q9. 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:- d.

Q10. Consider the following state chart diagram modelling the behaviour of a turnstile gate. Based on the modelled behaviour, what would happen if a coin is inserted into the turnstile gate when the turnstile gate is in the unlocked state?

  • a. The turnstile gate allows one person to pass and remains in the unlocked state
  • b. The turnstile gate sounds an alarm and remains in the unlocked state
  • c. The turnstile gate remains in the unlocked state
  • d. The turnstile gate returns the coin and remains in the unlocked state
  • e. The turnstile gate returns the coin and becomes locked
  • f. The turnstile gate becomes locked
Answer:- a.
b.

Important Links:-

NPTEL Answers

Join Our Telegram

NPTEL Software Engineering Week 8 Assignment Answers:- In this post, we have provided the answers to the NPTEL Software Engineering Week 8. All the answers are provided here on the basis of data available on the internet.

Leave a Comment