NPTEL Software Testing Week 7 Assignment Answers 2024
1. Which of the following statements are true regarding input space partitioning applied to the inputs of a particular software?
- Input space partitioning is a white-box testing technique that explores giving all possible inputs to the software for testing.
- Input space partitioning is a white-box testing technique that partitions the inputs according to the underlying code and passes inputs per partition for testing.
- Input space partitioning is a black-box testing technique that explores giving all possible inputs to the software for testing.
- Input space partitioning is a black-box testing technique that partitions the inputs according to the underlying requirements and passes inputs per partition for testing.
Answer :- For Answers Click Here
2. If a particular partitioning of an input space does not meet the ‘complete’ness criterion, what could go wrong in the test cases? Identify the most accurate answer option.
- A partition that does not satisfy the completeness criterion is not well-defined and hence the test cases can be wrong.
- A partition that does not satisfy the completeness criterion might leave out certain kinds of inputs for testing, possibly resulting in missing some errors.
- A partition that does not satisfy the completeness criterion cannot be used for testing as it means that a tester does not know all the inputs.
- A partition that does not satisfy the completeness criterion ceases to be a partition and hence cannot give good test cases.
Answer :- For Answers Click Here
3. Which of the following is a list of functional testing techniques that work with inputs and requirements for defining test cases?
- Decision tables, equivalence class partitioning, data flow testing.
- Equivalence class partitioning, data flow testing, boundary value analysis.
- Equivalence class partitioning, boundary value analysis, decision tables.
- Random testing, decision tables, input sets.
Answer :-
4. Which of the following gives the most expressive and the least expressive coverage criterion for input space partitioning?
- All combinations coverage is the most expressive and base choice coverage is the least expressive criterion.
- All combinations coverage is the most expressive and each choice coverage is the least expressive criterion.
- T-wise coverage (for large T) is the most expressive and pair-wise coverage is the least expressive criterion.
- Multiple base choice coverage is the most expressive and base choice coverage is the least expressive criterion.
Answer :-
5. State true or false: Equivalence class partitioning is the same as input space partitioning, with pair-wise coverage.
- True.
- False.
Answer :- For Answers Click Here
For the next five questions, consider the input space as given below and answer the following questions.
6. How many input characteristics are there in the above table and how many blocks or partitions are there per input characteristic?
- There are four input characteristics for the first input, three each for the second and the third inputs.
- There are three inputs and four blocks per input.
- There are three input characteristics and for the first input, there are four blocks, and three each for the second and third inputs.
- There are three input characteristics and totally four blocks per input.
Answer :-
7. What is the minimum number of tests required to satisfy each choice coverage on the above table?
- Three.
- Four.
- Nine.
- Thirty six.
Answer :- For Answers Click Here
8. What is the minimum number of tests required (considering same test case to cover more than one unique pair of values) to satisfy each pairwise coverage (PWC) criterion?
- Four.
- Eight.
- Fifteen.
- Thirty six.
Answer :-
9. Suppose the base choice test is (annualIncome = 2 lakhs, age = 20, gender = ‘MALE’). What is the minimum number of tests required (including the base choice test case) to satisfy each base choice coverage (BCC) criterion?
- Four.
- Eight.
- Fifteen.
- Thirty six.
Answer :-
10. State yes or no: Will the number of tests for all combinations coverage for this table be more than the number of tests for base choice coverage, as above?
- Yes.
- No.
Answer :- For Answers Click Here