Software-quality

Question 1
The cyclomatic complexity of each of the modules X and Y shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right-hand side?
A
21
B
19
C
20
D
10
Question 1 Explanation: 
Cyclomatic complexity uses 3 formulas
1. Number of regions + 1
2. Predicate + 1
3. Edges-Vertices+2

But here they already given complexity. So each module complexity is 10.
There are 2 modules named A and B having decision points are (10-1)+(10-1).
Cyclomatic complexity of the sequential integration is = Number of decision points + 1
= 18+ 1
= 19
Question 2

Which of the following statements is/are True ?

    P : Refactoring is the process of changing a software system in such a way that it does not alter the external behavior of the code yet improves the internal architecture.
    Q : An example of refactoring is adding new features to satisfy a customer requirement discovered after a project is shipped.
Code :
A
P only
B
Q only
C
Both P and Q
D
Neither P nor Q
Question 2 Explanation: 
→ Refactoring allows a software engineer to improve the internal structure of a design (or source code) without changing its external functionality or behavior of the code yet improves the internal structure. In essence, refactoring can be used to improve the efficiency, readability, or performance of a design or the code that implements a design.
→ It is a disciplined way to clean up code [and modify/simplify the internal design] that minimizes the chances of introducing bugs. In essence, when you refactor you are improving the design of the code after it has been written.
Note:
It won’t add any new featuring to satisfy a customer requirement. So, statement Q is false.
Question 3
The availability of complex software is 90% its Mean Time Between Failure(MTBF) is 200 days. Because of the critical nature of the usage, the organization deploying the software further enhanced it to obtain an availability of 95%. In the process, the Mean Time To Repair(MTTR) increased by 5 days. What is the MTBF of the enhanced software?(choose the nearest option)
A
205 days
B
300 days
C
500 days
D
700 days
Question 3 Explanation: 
Case-1:Availability of complex software =90% =0.9
Mean Time Between Failure(MTBF)=200
MTTR =?(we need to find )
Case-2:After enhancement modified ,availability= 95%=0.95,For this case,Mean Time To Repair(MTTR) increased by 5 days.
MTBF=?(we need to find )
Availability = MTBF/(MTBF + MTTR)
Case-1:
By substituting option-1 value, 0.9 = 200/(200 + MTTR) then
MTTR= 22.22
Case 2 :0.95 = MTBF/( MTBF+22.22+5)
MTBF= 517.18
There are 3 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access