Software Engineering - 2023 - Assignment 9

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Software Engineering
Assignment-9
TYPE OF QUESTION: MCQ/MSQ
Number of questions: 10 Total mark: 10 X 1 = 10

For each of the following questions one or more of the given options are correct. Choose the
correct options.

QUESTION 1:
Which one of the following is not a responsibility of a controller object in a domain model?
a. Interact with the boundary objects
b. Coordinate the activities of a set of entity objects
c. Embody most of the business logic required for use case execution
d. Permanently store frequently used data
Correct Answer: d. Permanently store frequently used data
Detailed Solution:

Overall responsibility of a controller object is to realize use case behavior. Permanent storage of
data is not a responsibility of a controller object in a domain model.
For more information please refer week-9 slide number 3

QUESTION 2:
Consider the following use case diagram for a supermarket automation software.

Based on the given use case diagram, how many boundary classes should be designed in the domain
model.
a. 2
b. 3
c. 4
d. 6

Correct Answer: c. 4
Detailed Solution:
For each user-use case interaction there is one boundary class. So, based on the diagram no. of
boundary classes = 4.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 3:
Consider the following use case diagram for a supermarket automation software.

Based on the given use case diagram, how many controller classes should be designed in the domain
model.
a. 2
b. 3
c. 4
d. 6
Correct Answer: b. 3

Detailed Solution:
The number of controller classes = Number of use cases. So, the answer is 3.

QUESTION 4:
Which one of the following UML diagrams is constructed first in a typical object-oriented design
process?
a. Use case diagram
b. Sequence diagram
c. Class diagram
d. State machine diagram
e. Deployment diagram
f. Component diagram
Correct Answer: a. Use case diagram

Detailed Solution:
In typical object-oriented design process Use case diagram first constructed.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 5:
Which one of the following does not serve as a guideline for identifying entity classes from a
problem description?
a. Entity classes usually appear as data stores in a DFD model
b. Entity classes usually occur as group of objects that are aggregated
c. The aggregator of entity objects is an entity class and typically corresponds to a
register in the physical world
d. Entity classes should be created corresponding to the different users
Correct Answer: d. Entity classes should be created corresponding to the different users

Detailed Solution:
The users are not considered as entity rather the data stores are used as entity classes.

QUESTION 6:
CRC cards are usually not much useful in performing which of the following activities?
a. Method identification for each class
b. Responsibility assignment
c. Identification of state transition in state machine model design
d. Collaborator identification
e. Class state identification
Correct Answer: c. Identification of state transition in state machine model design
e. Class state identification

Detailed Solution:
State transition in state machine and class state identification are not useful by using CRC
cards.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 7:
Which of the following statements concerning CRC cards are FALSE?
a. CRC cards are used to assign methods to classes
b. CRC cards are used to assign static attributes to classes
c. CRC cards stands for Class-Responsibility-Collaborator cards
d. CRC cards are an automated method to create class diagrams
e. While using CRC cards, it is imperative to perform structured walkthrough of use
case scenarios

Correct Answer:
b. CRC cards are used to assign static attributes to classes
d. CRC cards are an automated method to create class diagrams
Detailed Solution:
CRC cards are neither used to assign static attributes to classes nor to automate the creation of class
diagram.

QUESTION 8:
Which one of the following can be inferred from the pesticide paradox?
a. More number of bugs are detected towards the end of testing
b. More severe bugs are detected towards the end of testing
c. After a test methodology has been used on a program to detect bugs, it is ineffective for
detecting the remaining bugs
d. A set of test methodologies should be applied again and again until all bugs are eliminated
e. A persistent bug calls for simultaneous application of multiple test cases
Correct Answer: c. After a test methodology has been used on a program to detect bugs, it is
ineffective for detecting the remaining bugs
Detailed Solution:
Pesticide paradox - The phenomenon that the more you test software, the more immune it
becomes to your tests - just as insects eventually build up resistance and the pesticide no
longer works. So, its say to use a varied set of testing strategies to detect more bugs.
NPTEL Online Certification Courses
Indian Institute of Technology Kharagpur

QUESTION 9:
Suppose an untested program was determined to contain 640 bugs. Three different testing techniques
were applied to test the code. Each testing technique is effective to detect 50% of the bugs that exist at
the time the concerned testing technique is applied. While fixing a bug after the application of a test
strategy, there is a 50% chance of creating another bug. How many bugs would exist in the code after the
three testing and bug-fix cycles have been carried out?
a. 200
b. 270
c. 350
d. 448
e. 512

Correct Answer: b. 270


Detailed Solution:
1 st testing: total bugs= 640. Detect bugs: 50% of 640 = 320. New bug = 50% of 320 = 160. Now
bugs=480
2nd testing:
Total bugs = 480. Detect bugs: 50% of 480 = 240. New bug = 50% of 240 = 120. Now bugs= 360.
3rd testing:
Total bugs = 360. Detect bugs: 50% of 360 = 180. New bug = 50% of 180 = 90 Now bugs= 270.

QUESTION 10:
Which of the following are true concerning verification?
a. Helps answer the question: “Have you built the right thing?”
b. Concerns checking the final product against its specification.
c. Usually carried out by an independent test team.
d. May consist of review and simulation activities
e. Checks whether an artifact produced at the end of a phase conforms to the corresponding
artifact produced in a previous phase.

Correct Answer: d. My consist of review and simulation activities, e. Checks whether an artifact
produced at the end of a phase conforms to the corresponding artifact produced in a previous
phase.
Detailed Solution:
Options d. and e. are correct. Please refer week 9 material slide no. 51.

You might also like