NPTEL Software Testing Week 3 Assignment Answers 2025

NPTEL Software Testing Week 3 Assignment Answers 2025

1. Which one of the following correlates well with the testing difficulty of a program?

a. Number of statements in the program
b. Number of decision statements in the program
c. Complexity of the arithmetic expressions used in the program
d. Time complexity of the program
e. Number of looping statements present in the program
f. Number of arithmetic operators used in the program

Answer :- For Answers Click Here 

2. If two code segments have Cyclomatic complexities of N1 and N2 respectively, what will be the Cyclomatic complexity of the juxtaposition of the two code segments?

a. N1+N2
b. N1+N2+1
c. N1+N2-1
d. N1+N2+2
e. N1*N2

Answer :- 

3. Which one of the following is a fault-based testing technique?

a. Pair wise testing
b. Dataflow testing
c. Path testing
d. Mutation testing
e. Boundary value testing

Answer :- 

4. Which of the following subsumption relations among white-box test coverage criteria are incorrect?

a. Multiple condition coverage subsumes decision coverage
b. Basic condition coverage subsumes decision coverage
c. Basic condition coverage subsumes statement coverage
d. Path coverage subsumes MC/DC
e. Modified Condition/ Decision Coverage (MC/DC) subsumes basic condition coverage

Answer :- 

5. Which of the following are NOT true of white box code coverage?

a. Code coverage increases as more and more test cases are designed and exercised.
b. 100% path coverage is achieved when all the test cases have been exercised.
c. 100% faults in a program are detected when full path coverage is achieved.
d. Test completion criteria are often specified in terms of code coverage criteria.
e. As the code coverage increases, the number of test case failure increases.

Answer :- For Answers Click Here 

6.

Answer :- 

7. If MC/DC coverage has been achieved on a unit under test, which of the following test coverage are implicitly implied?

a. Basis path coverage
b. Decision coverage
c. Multiple condition coverage
d. Condition/decision coverage
e. Data flow coverage

Answer :- 

8. Which of the following mutants are considered as equivalent mutants?

a. Mutants which arise from the same change
b. Mutants which do not cause failure with the same set of test cases
c. Mutants which cause failure for the same set of test cases
d. Mutants which are obtained from application of the same mutation operator
e. Mutants which cannot be killed by any test case

Answer :- 

9. At least how many test cases are required to achieve MC/DC coverage of the following code segment:
If((x==5) or (y<100) or (z>=500)) x=x+1;

a. 1
b. 2
c. 3
d. 4
e. 5

Answer :- 

10.

Answer :- For Answers Click Here 
Scroll to Top