BITS WILP Software Architectures Quiz-2 2017-H1



BITS WILP Software Architectures Quiz-2 2017-H1

Question 1
A system that reads a group of customer’s transaction details for the last 5 years from a file, on which you need to select season-wise transactions such as Transaction in Winter, Summer or Rainly season, then you need to group these transactions based on various types of customer such as Occasional Customer, Regular Customer, Permanent Customer, now sort these records based on customer type, and finally prepare a report of the transactions and a statistical trend analysis (mean, median, etc.). 
Which architectural style would you prefer from the following: 
Select one:
a. Pipe and Filter
b. Broker
c. Model View Controller
d. Blackboard
Feedback
The correct answer is: Pipe and Filter
Question 2
Which of the following UML diagram will be used to represent the analysis of network traffic in a web based application,
Select one:
a. Object Diagram
b. Class Diagram
c. Package Diagram
d. Deployment Diagram
Feedback
The correct answer is: Deployment Diagram
Question 3
class Asset { ... }
class Player {
Asset asset;
public Player(Assest purchasedAsset) { ... } /*Set the asset via Constructor or a setter*/
}

Which of the following concept of UML is represented via above diagram and code snippet :
Select one:
a. Association
b. Generalization
c. Composition
d. Dependency
Feedback

The correct answer is: Association

Question 4
What type of class relationship can be read as “Object A contains Object B and Object B is part of object A”?

Select one:
a. Aggregation
b. Generalization
c. Specialization
d. None
Feedback
The correct answer is: Aggregation
Question 5
Which diagram in UML emphasizes the time-ordering of messages?
Select one:
a. Activity
b. Sequence
c. Collaboration
d. Class
Feedback
Explanation:This diagram is a model describing how groups of objects collaborate in some behavior over time.
The correct answer is: Sequence
Question 6
One of the benefits of Broker patterns is that the clients do not have to care where an object is located.
Select one:
True
False
Feedback
The correct answer is 'True'.
Question 7
Which of the following concept of UML is represented via below diagram and code snippet :

class Asset { ... }
class Player {
List assets;
public void AddAsset(Asset newlyPurchasedAsset) { assets.Add(newlyPurchasedAssest); ... }
...
}

Select one:
a. Aggregation
b. Generalization
c. Composition
d. Dependency
Feedback
The correct answer is: Aggregation

Question 8
In a scenario where House can contain multiple rooms - there is no independent life of room and any room cannot belong to two different houses. If we delete the house - then room will automatically be deleted.
Which of the following concept of UML will best represent the above scenario?

Select one:
a. Association
b. Aggregation
c. Composition
Composition: It is a strong type of Aggregation. Child object does not have its lifecycle and if parent object is deleted, all child objects will also be deleted.
d. Generalization
Feedback
The correct answer is: Composition
Question 9
Composition is a stronger form of :
Select one:
a. Aggregation
b. Association
c. Dependency
d. All of the above
Feedback
The correct answer is: Aggregation
Question 10
Which diagram shows the configuration of run-time processing elements of the system?
Select one:
a. Deployment Diagram
A Deployment diagram shows the configuration of run-time processing elements and the software components, processes, and objects.
b. Component Diagram
c. Class Diagram
d. ER Diagram
Feedback
Explanation:This diagram is a model describing how groups of objects collaborate in some behavior over time.
The correct answer is: Deployment Diagram
Question 11
Which of the following is best suitable term of 3-part schema of Patterns, for the given statement:
“Developing Messaging solution for mobile applications”

Select one:
a. Context
b. Problem
c. Solution
d. None of the above
Feedback
The correct answer is: Context
Question 12
The minimum and maximum number of occurrences of one object class for a single occurrence of the related object class is called:
Select one:
a. Relationship
b. Cardinality
c. Multiplicity
d. Inheritence
e. None
Feedback
The correct answer is: Multiplicity
Question 13
In a client-server model where ‘n clients’ are sending request or receiving data from ‘m servers’. There are ‘x intermediate servers’ present which re-route the request (coming from Clients) to appropriate server based on the type of request. The intermediate server also returns the response to the client user-interface. 
What is the role of the intermediate server here?
Select one:
a. Blackboard
b. Pipe
c. Controller or Model
d. Filter
e. Broker
Feedback
The correct answer is: Broker
Question 14
'Standby nodes keep syncing their states with the primary node’ 
This statement is true for which one of the following techniques:

Select one:
a. Hot Spare
b. Warm Restart
c. Spare Cold
d. Exception Handling
e. None
Feedback
The correct answer is: Warm Restart
Question 15
In a scenario where a single teacher cannot belong to multiple departments, but if we delete the department, the teacher object will not be destroyed. 
Which of the following concept of UML will best represent the above scenario?

Select one:
a. Association
b. Aggregation
Aggregation is a specialized form of Association where all objects have their own lifecycle, but there is ownership and child objects can not belong to another parent object.
c. Composition
d. Generalization
e. Dependency
f. All of the above
Feedback
The correct answer is: Aggregation
Question 16
In a system sequence diagram, lifelines as depicted as:
Select one:
a. the bars
b. the dashed vertical lines extended downwards from the actor and system symbols
c. object classes
d. horizontal arrows from the actors to the system
e. None
Feedback
The correct answer is: the dashed vertical lines extended downwards from the actor and system symbols
Question 17
Which of the following is Aggregation:

Select one:
a. Expresses a part-of relationship and is a stronger form of an association relationship
b. Expresses a part-of relationship and is a weaker form of an association relationship.
c. Expresses an is-a relationship and is a stronger form of an association relationship
d. Expresses an is-a relationship and is a weaker form of an association relationship.
Feedback
The correct answer is: Expresses a part-of relationship and is a stronger form of an association relationship
Question 18
Pipe and Filters pattern is a type of:
Select one:
a. Mud to Structure
b. Distributed Systems
c. Interactive Systems
d. Both (a) and (b)
e. Both (b) and (c)
f. None of them
Feedback
The correct answer is: Both (a) and (b)
Question 19
Which of the relationship is represented via below UML notation:

Select one:
a. Aggregation
b. Association
c. Composition
d. Dependency
Feedback
The correct answer is: Dependency

Question 20
 ‘B2 is the super class and A2 is the subclass in the relationship.’ 
Most appropriate UML notation will be:
Select one:
a. Association
b. Aggregation
c. Realization
d. Generalization
Feedback
The correct answer is: Generalization
Question 21
"An administrator wants to run different parts of the application in different systems, and also the system needs to exchange, add and remove the components at run-time." 
Which one of the following architecture patterns will be most suitable in the context given above?
Select one:
a. Broker
b. Blackboard
c. MVC
d. Pipe and Filter
Feedback
The correct answer is: Broker

No comments:

Post a Comment