April 15, 2019

Software Architecture - Mid Sem Solution

Mid-Sem Paper Solutions:



Question:
Q.1 Choose the most appropriate architectural pattern (one) for the 5 descriptions below. Give reasons for choosing the pattern (in 1-2 line maximum)

1. Wants to split a system into a number of computationally independent execution structures (groups of software and hardware) such as database, business logic, web interface and client, connected by some communication media. The structure is chosen to provide a specific server environment optimized for operational requirements and resource usage.

2. A set of heterogeneous specialized modules which dynamically change their strategies as a response to unpredictable events, and the system has to deal with uncertain knowledge.

3. Wants a system that can be divided into reusable, loosely coupled components that can be flexibly combined and arranged to transform between various data formats.

4. Wants a distributed system with a structure that enables that service users do not need to know the nature or location of service providers.  

5. A program relationship in which one program requests a service or resource from another Program.

Nominees:
(a) Layered 
(b) Broker 
(c) Model-view-controller
(d) Pipe-and-Filter 
(e) Client-Server 
(f) Blackboard 
(g) Service-Oriented 
(h) Publish-Subscribe 
(i)  Map-Reduce

For Practice:
  • Wants a system that quickly can analyze enormous volumes of data by sorting the data and then analyzing the grouped data. -> Map-Reduce
  • Wants to set up a set of equal distributed computational entities that are connected via a common protocol to share their services and provide high availability and scalability. -> Peer-to-peer
Answer:

1. Multi-tier
2. Blackboard
3. Pipe-and-Filter 
4. Broker
5. Client-Server

Question:
Q.2. Write brief notes on followings:

2.1  Discuss whether this statement is true or false: “Architecture is a transferable and reusable model”.
Answer:
Yes, it is true. Architecture can be created as transferable, reusable model that forms the heart of a product line.
Below is some key-point which does prove the importance of this.
Architecture can provide the basis for evolutionary prototyping.
Architecture is the key artifact that allows the architect and project manager to reason about cost and schedule.
By restricting design alternatives, architecture channels the creativity of developers, reducing design and system complexity.
Architecture defines a set of constraints on subsequent implementation.

2.2 What parameters (inputs) are typically used in models for analyzing performance
Answer:
Parameters (inputs) for analytic modeling of performance (candidates):
Arrival rate of events
queuing discipline
scheduling algorithm
service time for events
network topology 
network bandwidth
routing algorithm 

2.3 What is the difference between reference architecture and an architectural pattern? 
Answer:

An important difference between a pattern and reference architecture is that a pattern must be a recurrent solution that was already used on existing implementations. On the other hand, reference architecture can propose new, innovative solutions in its structure, whose usage was not yet proven in existing software. As a consequence, reference architecture is more suitable to propose a structure for new domains, which are not still well established.

Patterns and reference architectures document solutions in different levels of granularity. While a pattern focus on a single problem and in a single recurrent solution, reference architecture usually considers the target domain as a whole.

Question:
Q.3. Write any five availability tactics for fault detection. Explain each one briefly. 

Answer
Below are the 5 availability tactics for fault detection:
Ping
– Client (or fault-detector) pings the server and gets response back
– To avoid less communication bandwidth- use hierarchy of fault-detectors,
the lowest one shares the same h/w as the server
Heartbeat
– Server periodically sends a signal
– Listeners listen for such heartbeat. Failure of heartbeat means that the server is dead
– Signal can have data (ATM sending the last txn)
Exception Detection
– Adding an Exception handler means error masking
Voting (TMR)
– Three identical copies of a module are connected to a voting system which compares outputs from all the three components. If there is an inconsistency in their outputs when subjected to the same input, the voting system reports error/inconsistency.
– Majority voting, or preferred component wins
Timer and Time-stamping
– If the running process does not reset the timer periodically, the timer triggers off and announces failure
- Time-stamping: assigns a timestamp (can be a count, based on the local clock) with a message in a decentralized message passing system. Used to detect inconsistency.


March 18, 2019

BDD - Digital Skill (TrendNXT L1)

Marks: 20
Set: 2


Note: Kindly prepare yourself to score good marks in BDD. This is for TrenDNXT level 1 dumps.

MCQS:




Code MCQS:





Hope you all guys do well in your exam, Feel free to post your concern in comment box in case of any changes in required question/answer template. 

February 15, 2019

Data Mining - Comprehensive Paper Solution



Note: This is just a reference paper which you can go through,  we are facing some issue with the website. If you have any more important question/answer, let us know. 
Share it on our Email - 1trickyworld1@gmail.com


Question:
For the following vectors x and y, calculate the cosine similarity and euclidean distance measures:
x =(4,4,4,4), y=(2,2,2,2)

Solution:

Cosine
x ● y = 4*2 + 4*2 + 4*2 + 4*2 = 32
||x|| = sqrt(4*4 + 4*4 + 4*4 + 4*4) = sqrt (64)   = 8
||y|| = sqrt(2*2 + 2*2 + 2*2 + 2*2) = sqrt (16) = 4
cos(x,y) = (x ● y) /  (||x||*||y||) = (32)/ (8*4) 
cos(x,y) = 1

Euclidean
d(x, y) = sqrt((4-2)^2 + (4-2)^2 + (4-2)^2 + (4-2)^2) 
Euclidean distance = 4

Question:
Consider the one-dimensional data set shown on the below table

X  
0.6  
3.2  
4.5  
4.6  
4.9  
5.2  
5.6  
5.8  
7.1  
9.5  
Y
-
-
+
+
+
-
-
+
-
-

Classify the data point x=5.0 according to its 3- and 9- nearest neighbors (Using majority Vote)

Answer:
We need to first find the difference of each data set with respect to x=5.0, Refer the below table for the same.

x
X
Difference (x & X)
Y
5.0
0.6
4.4
5.0
3.2
1.8
5.0
4.5
0.5
+
5.0
4.6
0.4
+
5.0
4.9
0.1
+
5.0
5.2
0.2
5.0
5.6
0.6
5.0
5.8
0.8
+
5.0
7.1
2.1
5.0
9.5
4.5

As asked,
Using 3- nearest neighbors method, 3 Closest points to the point x=5.0 will be the one who has least difference among them - > 4.9, 5.2, 4.6
Classes ->   +
Using Majority Vote, 3-nearest neighbor: +

Using 9- nearest neighbors method, 9 Closest points to the point x=5.0 will be the one who has least difference among them - > 4.9, 5.2, 4.6, 4.5, 5.6, 5.8, 3.2, 7.1, 0.6
Classes -> +  + +  +   
Using Majority Vote, 9-nearest neighbor: 

Question:
Suppose a group of 12 sales price records has been sorted as follows:
5; 10; 11; 13; 15; 35; 50; 55; 72; 90; 204; 215:
Partition them into three bins by each of the following methods.
(a) equal-frequency partitioning
(b) equal-width partitioning
(c) clustering

Answer:
(a) equal-frequency (equidepth) partitioning:
Partition the data into equidepth bins of depth 4: [given as n=4]
Bin 1: 5, 10, 11, 13
Bin 2: 15, 35, 50, 55
Bin 3: 72, 90, 204, 215

(b) equal-width partitioning:
Partitioning the data into 3 equi-width bins will require the width to be (215−5)/3 = 70.
We get interval like- (1,70),(71,140),(141,210),(211,280)
Bin 1: 5, 10, 11, 13, 15, 35, 50, 55
Bin 2:72, 90
Bin 3: 204
Bin 4: 215

(c) clustering:
Using K-means clustering to partition the data into three bins we get
Bin 1: 5, 10, 11, 13, 15, 35
Bin 2: 50, 55, 72, 90
Bin 3: 204, 215

February 08, 2019

Software Project Management - Comprehensive Paper Solution

Note: This is just a reference paper which you can go through,  we are facing some issue with the website. Thanks for sharing some answer key with us, let us know if you have more answer keys so we can share with others too.
Share it on our Email - 1trickyworld1@gmail.com

Question:
1. Pick the odd one out and say why?:
a. WBS
b. Gantt chart
c. Prototype
d. Slip Chart
e. Time chart

Answer: c. Other four relates to methods of project scheduling.

Question: How do you create agile processes to manage unpredictability?

Answer:  Software increments must be delivered in short time periods and Software processes must adapt to changes incrementally

Question: Which of the following does not take account of the dependencies between activities? 
a. Activity network  
b. Resource histogram 
c. Work breakdown structure   
d. Gantt chart

Answer: WBS, rest of the activities involve multiple activities linkages.

Question:  Based on what SDLC deliverable, acceptance criteria for a project be derived and why and also give one example of NFR acceptance criteria.

Answer: The acceptance criteria should be derived from the Requirements Specification, which is where the users’ stated needs are documented. Eample, ‘a response time of less than 2 seconds for 90% of transactions’ is a lot more precise than ‘a fast response time’.

Question:  Explain the difference between effort and elapsed time. What is the significance of this difference for project planning purposes?

Answer: Effort is the total volume of work involved in a task and is best thought of as how long it would take to accomplish if one person were assigned to it.  Elapsed time, on the other hand, is how long the task will take from start to finish and this will depend on the effort involved, how many people are assigned to the task and what delays or external dependencies are involved.


Question:  Compute the function point value, corresponding effort (state your assumption) and the Minimum time to develop for that effort for a project with the following information domain characteristics.
Number of user inputs.                 - 32
Number of user outputs.              - 60
Number of user inquiries.             - 24
Number of Files.                              - 8
Number of external interfaces.   - 2
Assume that all complexity adjustment values are average.                                        Marks  10

Answer: ( 4+2+4)
For Average adjustment values,               
32 X 4 = 128
60 X 5 = 300
24 X 4 = 96
8 X 10 = 80
2 X 7 = 14
So, Count Total is equal to 618.
FP = Count Total X [0.65 + 0.01 X Summation (Fi)]
FP = 618 X [0.65 + (0.01 X 30)] = 587.10.

Effort:  assumption : 1FP/person/day or any similar no. = 587.10X1= 587 persondays. (persondays is important)
Duration: use the formula :  2.5*(Effort)exponent   Exponent can be :0.32,0.35,0.38

Question: Read the following project scenario and suggest your best approach by precisely answering the questions (make your own assumptions and state them clearly)
You are currently the Project Manager (PM) for the first development project of EuroShell—the prestigious customer who has recently signed an MoU with your company—XcelPro--for a multi-million-dollar business over the next 5 years. The project spans a period of 9 months and it involves several new technologies/tools. In addition, the customer keeps changing the requirements at an average rate of 1-2 change-requests (CR) per month. You are asked to send regular weekly status reports to the customer’s PM. The customer has not raised any major issue (nor responded to your regular status reports) till the final product is delivered for acceptance testing (UAT) during which your Delivery Head (your boss) received a major escalation (mail) from the customer (with a copy to XcelPro’s CEO) citing various defects observed and in turn seriously doubting XcelPro’s capability to develop and deliver software product.


Q1) You are asked to prepare a report/PPT as response to the escalation mail by holding a meeting via video conference call with customer.  Who are all the people to be involved in the meeting? What are agenda/items in your report/PPT? What are your recommended methods/techniques for presentation of data/issues so that the meeting concludes well with renewed trust in the company’s management and its QMS?  5 Marks


Q2) What was the format/Template of your project report?  Why do you think your customer did not respond to your regular weekly status reports (and of course, jumped with an escalation only at the end of delivery)? What factors (internal/external) contributed to this escalation?  If you were to redesign your project status report to elicit frequent responses from customers, what would you do?   5 Marks

January 04, 2019

Software Project Management - MCQS 2



Question 
Which of the following describes RFP?

Select one:
Requirements for a Project issued by the customer
Request for Project issued by vendor
Request for Proposal issued by the customer
Requirements for Proposal prepared by vendor

The correct answer is: Request for Proposal issued by the customer

Question 
The following closely resembles a software contract

Select one:
Purchase Order issued by the customer
MoU between customer and vendor
Legal document containing Terms & Conditions
Requirements document prepared by customer

The correct answer is: MoU between customer and vendor

Question 
The ownership of software developed in a typical project with T&M model rests with

Select one:
Vendor
Customer
Jointly shared between customer and vendor
Escrow agency

The correct answer is: Customer

Question 
Limited Tendering process is normally used for

Select one:
Select projects with unique technology
Maintaining confidentiality
Eliminating competition
Identifying and eliminating weak vendors

The correct answer is: Select projects with unique technology

Question 
The primary goal of agile methodology is

Select one:
Reduce documentation overhead
Produce time-to-market products/services
Develop product in close collaboration with customers
All the mentioned

The correct answer is: All the mentioned

Question 
The following is one approach for Risk Transfer in projects

Select one:
Buy insurance from third-party agencies
Distribute risk equally between customer and vendor
Customer managing risk
All the mentioned

The correct answer is: Buy insurance from third-party agencies

Question 
Function Point (FP) Method of estimation is best used when

Select one:
Actual size of the final code (SLOC) is not known
Requirements are unclear
Technology/Development Tools are not yet known
Water-Fall Model is adopted as development methodology

The correct answer is: Technology/Development Tools are not yet known

Question
SCRUM Meetings are conducted in one of the variations of

Select one:
Rapid Prototyping model
Agile Model
Incremental & Iterative Model
All the mentioned

The correct answer is: Agile Model

Question 
The key role of Program Manager is one of

Select one:
Resource Leverage across projects
Escalation point above Project Manager
Project Information Reporting to Steering Committee
Relationship Management with customer

The correct answer is: Resource Leverage across projects

Question 
The major goal of RAD model of development is

Select one:
Reduce cost of development and time
Identify erroneous requirements early in the project
Prototype development before undertaking investment
Avoid Risk Management

The correct answer is: Reduce cost of development and time

Question 
Identification of regulatory standards for development is done during

Select one:
Requirements analysis
Contract preparation
Quality Planning
All the mentioned

The correct answer is: All the mentioned

Question 
Requirements for Proposal is prepared by

Select one:
Vendor as self-assessment of its capabilities
Customer as part of investigating vendor potential
Third-party agency to assess credit-worthiness of customer
Customer during the closure of the project

The correct answer is: Customer as part of investigating vendor potential

Question
Assignment of People to  activities in projects is done during the following phase

Select one:
Activity Planning
Resource Scheduling
Skill Assessment
Project Monitoring & Control

The correct answer is: Resource Scheduling

Question 
Warranty Maintenance of product commences when

Select one:
Acceptance and Delivery of the product is completed
Integration Testing is complete
A separate Maintenance contrast is issued by the customer
Defects start surfacing in the delivered product

The correct answer is: Acceptance and Delivery of the product is completed

Question 
Going by the experience of many IT projects in India, Fixed-Price Contracts are mostly advantageous to

Select one:
Customer
Vendor
Risk Manager
Finance Manager

The correct answer is: Customer

Question 
The following tool can be used for Project Status Reporting

Select one:
GANTT chart
MS-Excel
MS-Project
All the mentioned

The correct answer is: All the mentioned

Question 
Risk Analysis is done in Sprial Model of development after

Select one:
Every iteration
Requirements phase
System Testing
All the mentioned

The correct answer is: Every iteration

Question 
Software Product Quality is primarily determined by

Select one:
No. of Defects reported
Usability
Schedule/Cost overrun
Marketability

The correct answer is: No. of Defects reported

Question 
The role of Project Steering Committee is

Select one:
a. Govern day-to-day operations of the project
b. Report project status to the CEO
c. Escalation mechanism setup by the customer
d. High-level monitoring of the project by key stakeholders

The correct answer is: High-level monitoring of the project by key stakeholders

Question 
Critical Path in a project activity network diagram indicates

Select one:
Chain of activities requiring common resources
Path of least resistance to delay
Activities whose resources cannot be scheduled late
Activities which have zero or minimum float

The correct answer is: Activities which have zero or minimum float

Question 
Contingency measures in Risk Planning are provided for

Select one:
Preventing potential risks identified early on
Reduce the probability of occurrence of risk events
Reducing the impact of risk should it occur
Minimizing the cost of risk mitigation activities

The correct answer is: Reducing the impact of risk should it occur

Question 
To shorten the duration of a project, the following can be done

Select one:
Reducing the duration of activities on critical path
Eliminating non-critical activities
Providing more resources to activities with large float
By employing critical-chain analysis

The correct answer is: Reducing the duration of activities on critical path

Question 
The following method of project monitoring is more appropriate for T&M projects

Select one:
Weekly or Monthly review
Milestone based
Decision-point based
Upon acceptance criteria

The correct answer is: Weekly or Monthly review

Question
Earned Value Analysis (EVA) helps in

Select one:
Cost-monitoring of project
Monitoring of schedule overruns
Monitoring of cumulative effort overrun
All the given options are .

The correct answer is: All the given options are .

Question 
COCOMO II is a software estimation tool based on

Select one:
Parametric method of cost estimation
Function-point analysis of size
Analogical reasoning of past projects
Euclidian distance between similar projects

The correct answer is: Parametric method of cost estimation

Question
As a software manager, when you will decide the number of people required for a software project?
Select one:
a. Before the scope is determined.
b. None of the given options.
c. Before an estimate of the development effort is made.
d. After an estimate of the development effort is made.

The correct answer is: After an estimate of the development effort is made.

Question
Which of the following is an important factor that can affect the accuracy and efficacy of estimates?
Select one:
a. Project complexity
b. Degree of structural uncertainty
c. Planning process
d. Project size

The correct answer is: Project size

Question
Which of the following is a collection of component versions that make up a system?
Select one:
a. Baseline
b. None of the mentioned
c. Version
d. Codeline

The correct answer is: Baseline

Question
Earned value analysis does not integrate:
Select one:
a. Quality
b. Risk Register
c. Time
d. Cost
The correct answer is:  Quality

Question
Identify the sub-process of process improvement
Select one:
a. Process distribution
b. De-processification
c. Process analysis
d. Process introduction

The correct answer is: Process analysis

Question
During which stage of Risk planning are risks prioritized based on probability and impact?
Select one:
a. Identify Risks
b. Perform Qualitative risk analysis
c. Plan Risk responses
d. Perform Quantitative risk analysis

The correct answer is: Perform Qualitative risk analysis

Question 
The degree to which the design specifications are followed during manufacturing is known as_______. [    ]
Select one:
a. Quality of design
b. Quality of coding
c. Quality of conformance
d. Quality of testing

The correct answer is: Quality of conformance

Question 
Risk monitoring is associated with which phase of the SDLC?
Select one:
a. Project Planning
b. Project Closure
c. Project Execution
d. Project Initiation

The correct answer is: Project Execution

Question
Which of the following is not a project constraint?
Select one:
a. Scope
b. Budget
c. Team
d. Resources

The correct answer is: Team

Question
Which of the following is incorrect activity for the configuration management?
Select one:
a. System management
b. Change management
c. Internship management
d. Version management

The correct answer is: Internship management

Question
If probability of risk is 50% and the impact is 9 what is the risk priority?
Select one:
a. 4.6
b. 4.3
c. 4.4
d. 4.5

The correct answer is: 4.5

Question
Risk management is one of the most important jobs for a
Select one:
a. Project manager
b. Production team
c. Investor
d. Client

The correct answer is: Project manager

Question
Root Cause Analysis relates to:
Select one:
a. Quality Audits
b. Process Analysis
c. Performance Measurements
d. Quality Control Measurements

The correct answer is: Process Analysis

Question
Review process works best when number of members are in between:
Select one:
a. 5-7
b. 2-3
c. 5-6
d. 4-7

The correct answer is: 5-7

Question
PPP can serve its purpose, if we eliminate projects that incur excessive
Select one:
a. B: Validity
b. A: Risk
c. Both A: & C:
d. C: Cost

The correct answer is: Both A: & C:

Question
Identify artifacts you refer while writing the test cases ?
Select one:
a. C: Test case document
b. A: Functional requirement specification
c. A: & B: only
d. B: Use Cases

The correct answer is: A: & B: only

Question
Typical selection process is i. Create a job specification ii. Obtain applicants iii. Select potential candidates from CVs. iv. Other procedures. v. Further selection, including interview vi. Create a job holder profile. The order is:
Select one:
a. i, iii, v, ii, vi, iv
b. i, ii, iii, iv, v, vi
c. i, ii, vi, iii, v, iv
d. i, vi, ii, iii, v, iv

The correct answer is i, vi, ii, iii, v, iv

Question
As per Tuckman and Jensen, five basic stages of team development are Forming, Storming, Norming, Perfroming, Adjouring. The meaning of storming is
Select one:
a. The emphasis is now on the tasks in hand
b. Conflict arise as various members of the group try to exert leadership and the group’s methods of operation are being established
c. The members of the group get to know each other
d. Conflicts are largely settled and feeling of group identity emerges

The correct answer is: Conflict arise as various members of the group try to exert leadership and the group’s methods of operation are being established

Question
You are managing a project with budget at completion (BAC) $ 80,000. The actual cost to date you have seen is $ 25,000 and earned value is $ 17,000. You calculate estimate to complete (ETC) to $ 75,000 by doing bottom-up sum of all costs. After so many calculations, what is the estimate at completion (EAC) for the project?
Select one:
a. $ 60,000
b. $ 100,000
c. $ 53,000
d. $ 57,000

The correct answer is: $ 100,000

Question
What are the 2 important factors associated with Risk?

Select one:
a. Issue & Effect
b. Cause & Effect
c. Cause & Issue
d. Effect & Probability

The correct answer is: Cause & Effect

Question
When do you think Quality Assurance/planning activities should start?

Select one:
a. should start from the beginning of the project. Correct
b. should start at the end of implementation of the project.
c. should start after the development phase of the project.
d. should start after the solutioning phase of the project.


The correct answer is: should start from the beginning of the project.

Question
Which of the following is not a project factor that should be considered when planning the structure of software engineering teams?

Select one:
a. The difficulty of the problem to be solved
b. High frustration caused by personal, business, or technological factors that causes friction among team members
c. The rigidity of the delivery date
d. The degree of sociability required for the project


The correct answer is: The degree of sociability required for the project

Question
A highly cohesive team needs to guard against the problem of
Select one:
a. Social loafing
b. Bureaucratic bypass syndrome Incorrect
c. Groupthink
d. over communication


The correct answer is: Groupthink

Question


Question