Quiz - Software Engineering 2021

You might also like

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

Quiz-3

Due Oct 8, 2021 at 3:45pm Points 56 Questions 28


Available Oct 8, 2021 at 3pm - Oct 8, 2021 at 3:45pm 45 minutes
Time Limit 45 Minutes

Instructions
IMPORTANT Instructions:

1. Time 45 Minutes (Questions =28)

2. Only Quiz Page on the CANVAS portal is to be accessed and attempted during the quiz time. The use
of any other resources (including other pages on CANVAS, on the Internet, mobile, Google) is
STRICTLY prohibited. Please ensure the closing of all openable, windows, tabs, etc. before login into
CANVAS, and taking this exam.

3. You will get one chance to attempt a question, once you skip a question or attempt it, you will not get
another chance to go back to it.

4. Best.

This quiz is no longer available as the course has been concluded.

Attempt History
Attempt Time Score
LATEST Attempt 1 44 minutes 14 out of 56

 Correct answers are no longer available.

Score for this quiz: 14 out of 56


Submitted Oct 8, 2021 at 3:45pm
This attempt took 44 minutes.
Incorrect Question 1 0 / 2 pts

Which of the following are correct with respect to identifying the entity
objects in domain modeling?

a. Entity objects have concrete counterparts in the real world.


b. Entity objects typically connect control objects and boundary objects.
c. The lifetime of an entity object from beginning to end of the use case.
d. Entity objects can create other objects from other analysis classes.
e. A use case must have at least entity object
f. An Actor can be associated with multiple boundary objects

a, e, and f

b, c, and e

d, e, and f

a, b, e, and f

Incorrect Question 2 0 / 2 pts

Which of the following activities are NOT part of Sub-System Design (i.e.
High-level design)?

a. Mapping of software parts to hardware


b. Data storage and management
c. Choosing suitable design patterns
d. Identification of components and Interfaces
e. Selecting off-the-self-components and their adaptations

c and e
a and e

b, c, and e

b and e

Incorrect Question 3 0 / 2 pts

Which statements are correct when comparing client-server (A) and peer-
to-peer (B) architecture styles?

1. In A, both client and server know the interface of each other


2. In B, both client and server know the interface of each other
3. In both A and B, client and server can be interchangeable
4. A is simpler to implement than B
5. B is less fault-tolerant than A

1, 3, 4

1, 4, 5

2, 4

2, 5

Incorrect Question 4 0 / 2 pts

Which of the following represent legitimate use of Inheritance in various


activities/tasks?
1. Identification of taxonomies in problem domains
2. Code reuse
3. Design Patterns
4. Architectural Patterns
5. Interface Designs
6. Polymorphism and dynamic binding

All except 4

All except 5

All the above

All except 4, 5

Question 5 2 / 2 pts

Which of the following are correct with respect to identifying the boundary
objects in domain modeling?

a. boundary objects have concrete counterparts in the real world.


b. boundary objects typically connect control objects and actor objects.
c. The lifetime of a boundary object from beginning to end of the use
case.
d. Boundary objects can create other objects from other analysis classes.
e. A use case must have at least one GUI boundary object
f. Boundary objects always interface with control objects

a, b, d, and f

b, d, e, and f
b, d, and f

d, e, and f

Incorrect Question 6 0 / 2 pts

Typical trade-offs between design goals include

a. security and performance


b. Flexibility and modifiability
c. Backward compatibility and modifiability
d. Increased productivity and robustness
e. fault-tolerant and robustness

a, b, and c

b, c, and e

a, c, and d

c, d, and e

Question 7 2 / 2 pts

In Java GUI programming, the concepts of source, event, and the listener
is indicative of which design pattern?

1. Strategy
2. Singleton
3. Decorator
4. Observer
5. Factory Method

Incorrect Question 8 0 / 2 pts

Which of the following design principles are used in the Strategy Design
Pattern?

1. Program to Interfaces not to an Implementation


2. Strive for a loosely coupled design for objects that interact
3. Identify aspects of your application which vary and separate them with
those who remains the same
4. Classes should be open for extension and closed for modifications
5. Favor Composition over Inheritance
6. Subclasses should be substitutable for their base classes.

1, 2, 3, and 5

3, 5, and 6

2, 4, and 6
1, 3, 5, and 6

Question 9 2 / 2 pts

Let us say that you are writing an application that uses multiple third-party
libraries, and for each of these libraries, many classes/methods are used
in a little complex way that has made managing the code a little messy.
Which of the following design pattern(s) can be handy here?

a) Façade
b) Decorator
c) Adapter
d) Strategy
e) Composite

d and e

a and e

Incorrect Question 10 0 / 2 pts

Assume you aim to design a mail software like Gmail. As mails are getting
received, they are scanned for spams and other security checks one after
other in stages. The checks can be different to different types of mails.
Each stage has its own functionality and depends on input from previous
stages. What can the most suitable architecture style that can be used
here?
1. Microkernel
2. Model view controller
3. Layered architecture
4. Pipe and filter
5. Blackboard

Any of the above

Incorrect Question 11 0 / 2 pts

Which of the following are the activities to be undertaken during ‘Object-


Design’?

1. Identifying components and interfaces


2. Identifying entity, boundary and control objects
3. Solution objects
4. Off-the-self components
5. Specification of components

3, 4, and 5

1, 3, and 5

2, 3, and 4

2, 3, and 5

Incorrect Question 12 0 / 2 pts

While designing the software, sometimes we merge a few components


into one component or divide a component into multiple components in
order to

both for Increase cohesion and reduce coupling

increase cohesion

decrease coupling

both for increase coupling and decrease cohesion

Question 13 2 / 2 pts

What is true about both Inheritance and Delegation?

1. Delegation is also a kind of Composition relation between objects


2. Delegation can be an alternative to Inheritance for code reuse
3. Inheritance is a less efficient way of Code Re-use than Delegation
4. Delegation should be preferred over Inheritance for more maintainable
code
5. Inheritance is a Black-Box kind of code reuse
6. Both are extensively used in Design Patterns

4, 5, and 6

1, 2, and 6

2, 4, and 6

1, 3, 5, and 6

Incorrect Question 14 0 / 2 pts

The advantages of the close (opaque) layer architecture style include

a. High Modifiability
b. High Autonomy
c. High Runtime efficiency
d. High-Security
e. Low Coupling

a, b, d, and e

c, d, and e

a, c, d, and e

b, c, and d

Incorrect Question 15 0 / 2 pts


Which of the following design principles are used in the Factory Method
Pattern?

1. Program to Interfaces not to an Implementation


2. Strive for a loosely coupled design for objects that interact
3. Identify aspects of your application which vary and separate them with
those who remains the same
4. Classes should be open for extension and closed for modifications
5. Favor Composition over Inheritance
6. Subclasses should be substitutable for their base classes.

3, 4, and 6

All except 2, 4

1, 3, 4, 5, and 6

All except 3 and 5

Incorrect Question 16 0 / 2 pts

Interface Specification typically includes

1. Identifying attributes and operations of Objects


2. Specify visibility information
3. Specify type signature information
4. Specify class contracts
5. Specify services for components

All except 1

All except 5

All except 1 and 5


All the above

Incorrect Question 17 0 / 2 pts

Which of the following design principles are used in the Adapter Design
Pattern?

1. Program to Interfaces not to an Implementation


2. Strive for a loosely coupled design for objects that interact
3. Identify aspects of your application which vary and separate them with
those who remains the same
4. Classes should be open for extension and closed for modifications
5. Favor Composition over Inheritance
6. Subclasses should be substitutable for their base classes.

1 and 6

1, 4, and 5

2, 4, and 5

5 and 6

Incorrect Question 18 0 / 2 pts

Separate the artifacts that are found during Domain Modeling activity:

a. New solution objects,


b. Analysis classes,
c. Components and specifications,
d. Functional model
e. Design Patterns,
f. Domain objects,
g. Class contracts,

b and f

c and d

c, d, and f

b, c, anf f

Incorrect Question 19 0 / 2 pts

For building a web-based online shopping application, which of the


following can be a candidate architecture style(s)

1. Peer-to-Peer
2. Model view controller
3. Blackboard
4. Layered Architecture
5. Pipe and filter

2 and 4

2, 3, and 4

1, 3, and 5

Incorrect Question 20 0 / 2 pts


Which are NOT correct with respect to domain modeling activity.

a. For an analysis model, there can be multiple design models applicable.


b. Issues like concurrency shared resources, and conflicts are handled
during analysis modeling.
c. One analysis class can provide an abstraction for a set of
design/implementation classes.
d. It tends to focus on functional requirements and non-functional
requirements.
e. Objects identified can only be of any of the three types - Entity,
Boundary and Control objects

b and d

a, b, and c

a, c, and e

b and e

Incorrect Question 21 0 / 2 pts

Which of the following design principles are used in the Decorator Design
Pattern?

1. Program to Interfaces not to an Implementation


2. Strive for a loosely coupled design for objects that interact
3. Identify aspects of your application which vary and separate them with
those who remains the same
4. Classes should be open for extension and closed for modifications
5. Favor Composition over Inheritance
6. Subclasses should be substitutable for their base classes.

1, 3, and 4
1, 2, 5, and 6

2, 4, and 5

1, 4, and 6

Question 22 2 / 2 pts

Which one of the following is (are) symptoms of a design with high


coupling:

a. modifying one component may also lead to modifying other


components.
b. Not much association between different components.
c. Many interconnections between different components.
d. Dependency between components is high.
e. Association within the elemcnts of a component is high

b, c, and e

b, c, and d

a, b, and e

a, c, and d

Incorrect Question 23 0 / 2 pts

What is correct of the following about Factory Method design pattern?


a. It relies on inheritance.
b. It reduces dependency on concrete classes.
c. It provides an interface for creating families of related objects without
specifying their concrete classes

All the above

a and b

b and c

a and c

Incorrect Question 24 0 / 2 pts

What is the design goal(s) important to clients or users, but not important
to developers engaged in developing client-specific applications?

a. Excellent user interfaces


b. Backward compatibility
c. Modifiability
d. Security
e. Reusability

a, c, and d

a, b, and e

b, c, and d

a, b, and c

Question 25 2 / 2 pts
Which of the following are correct with respect to identifying the control
objects in domain modeling?

a. Control objects have concrete counterparts in the real world.


b. Control objects typically connect boundary objects and entity objects.
c. The lifetime of a control object from beginning to end of the use case.
d. Control objects can create other objects from other analysis classes.
e. A use case must have at least control object
f. An Actor can be associated with multiple control objects

c, e, and f

All are correct

All are correct except a and b

b, c, e

Incorrect Question 26 0 / 2 pts

What is true about both the analysis and the design models?

a. Both are conceptual models


b. There is one to one relationship (one analysis model corresponds to
one design model and vice-versa)
c. Both provide abstractions to the system being developed
d. The analysis model captures the functional requirements of the
software system whereas the design model captures the non-functional
requirements.
e. Analysis models are input to design models

c and e

d and e
a, c, e, and d

a and e

Question 27 2 / 2 pts

Which of the following design principles are used in the Observer Design
Pattern?

1. Program to Interfaces not to an Implementation


2. Strive for a loosely coupled design for objects that interact
3. Identify aspects of your application which vary and separate them with
those who remains the same
4. Classes should be open for extension and closed for modifications
5. Favor Composition over Inheritance
6. Subclasses should be substitutable for their base classes.

3, 5, and 6

2, 4, 5, and 6

1, 2, and 6

1, 2, 4 and 5

Incorrect Question 28 0 / 2 pts

In a 3-tier web application, the middle tier is used for

1. Data storage
2. Data Validation
3. Response generation
4. Data Manipulation
5. Authorization
6. Data Presentation

All except 1 and 6

All except 6

All except 2, 5, and 6

All except 1

Quiz Score: 14 out of 56

You might also like