NPTEL Software Engineering Week 12 Assignment Answers 2024

Sanket
By Sanket

NPTEL Software Engineering Week 12 Assignment Answers 2024

1. Which one of the following statements concerning mutation testing is correct?

a. Mutation testing is used to test if a program has bugs
b. Mutation testing is used to test if it is possible to mutate the program
c. Mutation testing is used to optimize the designed suite
d. Mutation testing is used to test if the test suite is adequate
e. Mutation testing is used to count the number of mutants of the program

Answer :- For Answers Click Here 

2. Which one of the following mutants are considered as equivalent mutants?

a. Mutants which arise from the same change to the code
b. Mutants which fail with the same set test cases
c. Mutants which cannot be killed by any test case
d. Mutants which are not detected by any of the test cases
e. Mutants which are designed using equivalence class testing

Answer :- For Answers Click Here 

3. Which of the following is not a major shortcoming of the mutation testing technique?

a. Hard to automate mutant generation
b. Certain types of mutants are hard to generate
c. Presence of equivalent mutants make it difficult to automate the entire mutation testing process
d. Mutation testing is computationally very expensive, as a large number of possible mutants can be generated.
e. Multiple mutants may get killed by the same test case

Answer :- 

4. In the context of mutation testing, suppose to create a mutant you replace the instruction y=2*x in your program by y=x+x. What kind of mutant have you created?

a. Trivial mutant
b. Stillborn mutant
c. Higher-order mutant
d. Equivalent mutant
e. Erroneous mutant

Answer :- 

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

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

Answer :- 

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

a. Path coverage
b. Multiple condition coverage
c. Condition/decision coverage
d. Statement coverage
e. Data flow coverage

Answer :- For Answers Click Here 

7.

image 66
Answer :- 

8. Which one of the following can be considered as a fault-based testing technique?

a. Cause-effect graphing
b. Data flow testing
c. Orthogonal array testing
d. Mutation testing
e. Pair-wise testing

Answer :- 

9. Among the following testing techniques, which one of the following is the strongest?

a. All path coverage testing
b. Basis path coverage testing
c. Decision coverage testing
d. Basic condition coverage testing
e. MC/DC testing

Answer :- 

10. Which of the following attributes of a program can be inferred from its Cyclomatic complexity?

a. Computational complexity
b. Lines of code (LoC)
c. Understandability
d. Executable code size
e. Testability

Answer :- For Answers Click Here 
Share This Article
Leave a comment