3/11/26, 6:09 PM Software Testing - - Unit 6 - Week 3
([Link] ([Link]
balajiadhiseshan@[Link]
NPTEL ([Link] » Software Testing (course)
Course Week 03: Assignment 03
outline Assignment not submitted Due date: 2026-03-11, 23:59 IST.
1) Which one of the following correlates well with the testing difficulty of a program? 1 point
About NPTEL
()
a. Number of statements in the program
b. Number of decision statements in the program
How does an
NPTEL online c. Complexity of the arithmetic expressions used in the program
course work? d. Time complexity of the program
()
e. Number of looping statements present in the program
f. Number of arithmetic operators used in the program
Week 1 ()
2) If two code segments have Cyclomatic complexities of N1 and N2 respectively, what 1 point
Week 2 ()
will be the Cyclomatic complexity of the juxtaposition of the two code segments?
Week 3 ()
a. N1+N2
Lecture 11: b. N1+N2+1
MC/DC Testing c. N1+N2-1
- Part 1 (unit?
d. N1+N2+2
unit=36&lesson
=37) e. N1*N2
Lecture 12:
3) Which one of the following is a fault-based testing technique? 1 point
MC/DC Testing
- Part 2 (unit?
a. Pair wise testing
unit=36&lesson
=38) b. Dataflow testing
c. Path testing
Lecture 13:
Path Testing d. Mutation testing
[Link] 1/4
3/11/26, 6:09 PM Software Testing - - Unit 6 - Week 3
(unit? e. Boundary value testing
unit=36&lesson
=39) 4) Which of the following subsumption relations among white-box test coverage criteria 1 point
are incorrect?
Lecture 14:
Dataflow and
a. Multiple condition coverage subsumes decision coverage
Mutation
Testing (unit? b. Basic condition coverage subsumes decision coverage
unit=36&lesson c. Basic condition coverage subsumes statement coverage
=40)
d. Path coverage subsumes MC/DC
Lecture 15: e. Modified Condition/ Decision Coverage (MC/DC) subsumes basic condition coverage
Mutation
Testing (unit?
5) Which of the following are NOT true of white box code coverage? 1 point
unit=36&lesson
=41)
a. Code coverage increases as more and more test cases are designed and exercised.
Lecture b. 100% path coverage is achieved when all the test cases have been exercised.
material of
c. 100% faults in a program are detected when full path coverage is achieved.
Week 3 (unit?
unit=36&lesson d. Test completion criteria are often specified in terms of code coverage criteria.
=42) e. As the code coverage increases, the number of test case failure increases.
Quiz: Week
03: 6) Consider the following code snippet. 1 point
Assignment
03
(assessment?
name=110)
Feedback Form
(unit?
unit=36&lesson
=43)
What would be the path coverage achieved, for a test case with the input values i=5, j=6,k=7?
Week 4 ()
a. 20%
Text b. 25%
Transcripts ()
c. 40%
Books () d. 66.6%
e. 100%
Assignment
Solution () 7) If MC/DC coverage has been achieved on a unit under test, which of the following test 1 point
coverage are implicitly implied?
a. Basis path coverage
b. Decision coverage
c. Multiple condition coverage
d. Condition/decision coverage
e. Data flow coverage
[Link] 2/4
3/11/26, 6:09 PM Software Testing - - Unit 6 - Week 3
8) Which of the following mutants are considered as equivalent mutants? 1 point
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
9) At least how many test cases are required to achieve MC/DC coverage of the following 1 point
code segment:
If((x==5) or (y<100) or (z>=500)) x=x+1;
a. 1
b. 2
c. 3
d. 4
e. 5
10) What is the McCabe’s Cyclomatic complexity for the following code segment? 1 point
int partition (int arr[], int l, int h){
int x = arr[h], i = (l - 1),t;
for (int j = l; j <= h- 1; j++) {
if (arr[j] <= x){
i++;
t=&arr[i]; &arr[i]= &arr[j]; &arr[j]=t;
t=&arr[i + 1];
&arr[i+1])= &arr[h];
&arr[h]=t;
a. 2
b. 3
c. 4
d. 5
e. 6
[Link] 3/4
3/11/26, 6:09 PM Software Testing - - Unit 6 - Week 3
You may submit any number of times before the due date. The final submission will be considered
for grading.
Submit Answers
[Link] 4/4