Week 9
Week 9
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
How does an
NPTEL online
Assignment submitted on 2024-09-25, 14:02 IST
course work? () 1) Which of the following statements are true about mutation testing applied at the various stages of the software 1 point
development life-cycle?
Week 0 ()
Mutation can be applied to programs, input strings and to design artifacts. In all the cases, test cases are written to
Week 1 () kill the mutants.
Mutation can be only applied to programs and test cases can be written to kill the mutants.
Week 2 () Mutation can be applied to programs, inputs and to design artifacts. Test cases can be written to kill the mutants for
programs and design artifacts, not for input mutations.
Week 3 ()
Mutation can be applied only to individual methods, not for inputs and design artifacts. Test cases can be written to
kill the mutants.
Week 4 ()
Yes, the answer is correct.
Score: 1
Week 5 ()
Accepted Answers:
Mutation can be applied to programs, inputs and to design artifacts. Test cases can be written to kill the mutants for
Week 6 ()
programs and design artifacts, not for input mutations.
Week 7 ()
2) State yes or no: Are there mutation operators available for inputs that are XML files that are used in web 1 point
applications?
Week 8 ()
Yes.
Week 9 ()
No.
Mutation testing Yes, the answer is correct.
(unit? Score: 1
unit=73&lesson=74) Accepted Answers:
Yes.
Mutation Testing -
Mutation for
3) Consider a method A calling another method B, with the callee method B returning an integer back to method 1 point
integration (unit?
unit=73&lesson=75) A. In a particular mutation, the method call for B is deleted and instead of the return statement, an integer constant is added
in the same statement in method A. Which type of mutation will this be?
Mutation testing :
Grammars and Integration method replacement.
inputs (unit?
Integration method call deletion.
unit=73&lesson=76)
Integration method return value change.
Software Testing
Integration callee method change.
Course: Summary
after Week 9 (unit? Yes, the answer is correct.
unit=73&lesson=77) Score: 1
Accepted Answers:
Practice: Week 9: Integration method call deletion.
Assignment 9 (Non
https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=73&assessment=221 1/3
10/21/24, 2:58 PM Software Testing - - Unit 12 - Week 9
graded) 4) Suppose the access level for a method M in a particular class C is changed and this change denies access to 1 point
(assessment? the method M for one of the child classes of C. Which mutation operator has been applied here and has the resulting
name=207) mutant been successfully killed?
Week 9 Feedback
Overriding method change operator has been applied and the resulting mutant has been killed.
Form: Software
Testing (IIITB) (unit? Overriding method deletion operator has been applied and the resulting mutant has been killed.
unit=73&lesson=169) Method access has been changed and it need not mean that the resulting mutant has been successfully killed.
Quiz: Week 9 : Access modifier change mutation operator has been applied and the resulting mutant has been successfully killed.
Assignment 9
Yes, the answer is correct.
(assessment? Score: 1
name=221)
Accepted Answers:
Access modifier change mutation operator has been applied and the resulting mutant has been successfully killed.
Week 10 ()
5) Is method overloading different from method overriding and if yes, what is the main difference? 1 point
Week 11 ()
Method overloading and method overriding are the same.
Week 12 ()
Method overloading is different from method overriding. In the former case, the two methods are in the same class
and in the latter case, the method is present in a class and one of its descendants.
DOWNLOAD
VIDEOS () Method overloading is different from method overriding. In the former case, the method is present in a class and
one of its descendants, and in the latter case, the two methods are in the same class.
Text Transcripts () Method overloading and method overriding are nearly the same where two different pieces of code are given to the
same method.
Live sessions () Yes, the answer is correct.
Score: 1
Books () Accepted Answers:
Method overloading is different from method overriding. In the former case, the two methods are in the same class and
in the latter case, the method is present in a class and one of its descendants.
6) When a particular variable belonging to a class is such that there is only one copy of the variable for the entire 1 point
class, what is the associated declaration of the variable called?
Static.
Private.
Instance.
Protected.
7) How we say that mutation testing subsumes node and edge graph coverage criteria despite the fact that these 1 point
are two different testing techniques?
Mutation testing does not subsume node and edge coverage criteria.
Mutation testing is a weaker testing technique than node and edge coverage criteria.
We consider weak mutation and specific mutation operators for the given subsumption.
We consider strong mutation and specific mutation operators for the given subsumption.
Consider the code snippet below and answer the following two questions below.
https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=73&assessment=221 2/3
10/21/24, 2:58 PM Software Testing - - Unit 12 - Week 9
9) What will the output of the above code snippet be if the this keyword is omitted? 1 point
10) Will the mutant that is created by a mutation that deletes the this keyword be killed by any test case? State 1 point
yes or no.
Yes.
No.
https://onlinecourses.nptel.ac.in/noc24_cs91/unit?unit=73&assessment=221 3/3