NPTEL Software Testing Week 3 Assignment Answers 2024

Join Our WhatsApp Group Join Now
Join Us On Telegram Join Now

NPTEL Software Testing Week 3 Assignment Answers 2024

1. Which of the following pairs of white-box test techniques are complementary test techniques?

a. Statement-coverage and path coverage
b. Multiple condition coverage and MC/DC testing
c. MC/DC and Data flow testing
d. Multiple condition coverage and decision coverage
e. Path coverage and MC/DC testing

Answer :- For Answer Click Here 

2. Which of the following are the measures of the testing difficulty of a program segment?

a. Number of statements in the program segment
b. Number of decision statements in the program segment
c. Complexity of the arithmetic expressions used in the program segment
d. Me Cabe’s cyclometric complexity for the program segment
e. Number of arithmetic expressions used in the program segment

NPTEL Software Testing Week 3 Assignment Answers 2024
Answer :- For Answer Click Here 

3. At least how many test cases are needed for achieving decision coverage on the given C code?

a) 2
b) 3
c) 5
d) 6
e) 7

Answer :- For Answer Click Here 

4. At least how many test cases are needed for the given C code for achieving basic condition coverage?

a) 2
b) 3
C) 5
d) 6
e) 8

Answer :- 

5. At least how many test cases are needed for the given C code for achieving multiple condition coverage?

b) 2
6) 4
c) 8
d) 16
e) Multiple condition coverage is not achievable for the given code

Answer :- 

6. At least how many test cases are needed for the given C code for achieving MC/DC coverage?

a) 2
b) 4
c) 8
d) 16.
e) MC/DC coverage is not achievable for the given code

Answer :- For Answer Click Here 

7. At least how many test cases are needed for the given C code for achieving basis path coverage?

a) 2
b) 3
c) 5
d) 7
e) Basis path coverage is not achievable for the given code

Answer :- 

8. At least how many test cases are required to achieve multiple condition coverage of the following code segment:
If((a>5) and (b<100) and (c>50)) x=x+1;

a) 2
b) 4
с) 6
d) 8
e) 16

Answer :- 

9. For a given function, the computed McCabe’s Cyclometric complexity metric does not correlate with which of the following?

a. Number of errors existing in the function after unit testing is complete
b. Time required to find the location of an error after a failure.
c. Number of statements in the program
d. Difficulty of understanding the function.
e. Number of test cases required to achieve MC/DC

Answer :- 

10.

NPTEL Software Testing Week 3 Assignment Answers 2024
Answer :- For Answer Click Here